https://mcp.dodopayments.com/mcp. We recommend naming it dodopayments in your client.
The MCP server uses OAuth. When you add the server, your client opens your browser so you can sign in and approve access. You never copy an API key into your agent.
Connect Your Agent
The Dodo Agent Plugin (0.7.0 and later) adds this server and thedodo-payments skill for you. To connect a client yourself, pick it below.
- Claude Code
- Cursor
- VS Code
- Codex
- OpenCode
- Gemini CLI
- Claude Desktop and claude.ai
- Windsurf and other clients
Run:To sign in, run
/mcp inside Claude Code and pick dodopayments.Approve the Connection
The first sign-in opens the Dodo Payments consent page in your browser. Your team role caps what you can grant, so a connection can never do more than you can.- Choose the business the AI client can use.

- Choose the mode: test mode or live mode.

- Set the permissions: Read, Write, or Customise to pick a level for each resource.

- Review and authorize the connection.
How the Sign-In Is Secured
- Access tokens expire after 1 hour. Refresh tokens rotate on each use.
- Your client never holds an API key. For each call, the MCP server exchanges your token for an API token that lasts 5 minutes and carries only the permissions you approved.
- You can revoke a connection at any time in Settings → Connected Apps. Revoke stops new tokens at once, and tokens already issued stop working within about a minute. See Connected Apps.
How the Tools Work
Dodo Payments has many API operations. Instead of sending every operation and its input schema to your agent at the start of every conversation, the server gives it a few tools. The agent finds what it needs, then writes a short TypeScript snippet to call it. This is code mode.
The server asks your client to sign in before it lists the tools, so your client starts the OAuth sign-in when you add the server.
1. Search
The agent calls
search_docs to find the right guide and read_docs_page to read it. It calls search to find the SDK methods for its task, such as “list a customer’s active subscriptions”, and their exact parameters.
2. Execute
The agent calls execute with code that defines async function run(client) { ... }, where client is an authenticated Dodo Payments SDK client. It can chain calls, page through results and return only the fields it needs.
What execute Can Do
execute gives your agent the Dodo Payments TypeScript SDK, limited to the permissions you approved. The SDK covers these resources:
Use the
search tool to see the exact methods and parameters available for each resource. See the API Reference for the full list of endpoints.
Telemetry and Feedback
Thefeedback tool lets your agent tell us what worked and what didn’t, about Dodo Payments, the MCP tools or these docs. It needs sign-in. Before the text is stored, the server removes emails, IDs and keys from it. The Dodo Payments team reads and triages each message, with your business ID so we can follow up. The tool returns a reference ID.
Ask your agent to write feedback without customer names, emails or IDs. Removal matches the shape of an identifier, not its meaning, so a name written in plain words can still pass.
Docs-Only Access
If your client can’t sign in with OAuth, or you only want docs search, connect tohttps://mcp.dodopayments.com/mcp?auth=optional. Then search_docs, read_docs_page and search work without an account, and execute and feedback ask you to sign in. https://knowledge.dodopayments.com/mcp is another docs-only address that needs no account.
Advanced: Local Server with an API Key
Run the MCP server yourself when you need a stdio server, an air-gapped setup, or a fixed API key. This setup uses an API key from Developer → API Keys and does not use the OAuth sign-in. Install the server with NPM or Docker.NPM Package
Install and run the MCP server locally.- NPX (No Installation)
- MCP Client Configuration
Docker
Run the MCP server in a container.Docker images are available on GitHub Container Registry.
Environment Variables
Configure the MCP server behavior using environment variables.Running Remotely
Deploy the MCP server as a remote HTTP server for web-based clients or agentic workflows.Remote Server Configuration
Once deployed, clients can connect using the server URL:Authorization Headers
The remote server accepts authentication via the following headers:Resources
API Reference
Explore the complete Dodo Payments API documentation
MCP Protocol
Learn more about the Model Context Protocol standard
GitHub Repository
View the MCP server source code and contribute
NPM Package
Install the MCP server from NPM