Skip to main content
Screenshot of the paid API example app.
See the live example: mdk-api-example.vercel.app This is an example for building a simple paid API with moneydevkit. We’ll build an orbital tracking API that uses L402 payments so AI agents can pay for access to current demo data about satellites, space stations, rockets in transit, orbital debris, and other Earth-orbit traffic.

Step 1: Install the MCP server

The MCP server lets your coding agent connect to your existing moneydevkit account and wire up your app for you. Pick your coding agent below:
Run this in your project directory:
claude mcp add moneydevkit --transport http https://mcp.moneydevkit.com/mcp/account/
Run this in your project directory:
codex mcp add moneydevkit --url https://mcp.moneydevkit.com/mcp/account/

Step 2: Start a new project

Create an empty folder and open it in your coding agent. This will be the root of your new Next.js project.

Step 3: Prompt your coding agent

Paste the following prompt into your coding agent to scaffold the paid orbital tracking API:

Scaffold a moneydevkit paid API in Next.js.

Step 4: Preview and deploy

When your coding agent finishes, you can preview your app. The agent will give you a link that you can open in your browser to preview the app locally. When you’re ready to ship it, head to Vercel to deploy.