Skip to main content
Use the Dodo Payments remote Model Context Protocol (MCP) server to give AI agents access to the Dodo Payments docs and your account. Agents can look up how a feature works, then create payments, manage subscriptions, issue refunds and more. The server lives at 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 the dodo-payments skill for you. To connect a client yourself, pick it below.
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.
  1. Choose the business the AI client can use.
Consent page, step 1 of 4: choose the business that the app can access
  1. Choose the mode: test mode or live mode.
Consent page, step 2: Choose a Mode, with one choice of Live Mode or Test Mode
  1. Set the permissions: Read, Write, or Customise to pick a level for each resource.
Consent page, step 3 of 4: Set Permissions, with Read, Write, and Customise options and resource groups such as Payments and Catalog
  1. Review and authorize the connection.
Start with test mode and Read access. Approve live mode or Write access only when you need them.
Each connection holds one mode. To work in the other mode, add a second connection and approve the other mode.

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.
Code runs in an isolated sandbox. It can only call the Dodo Payments SDK, with the access you approved on the consent page.
Agents can chain several API calls, handle conditional logic and do calculations in one script, without a round trip to the model for each step.

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

The feedback 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 to https://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.
The local server runs your code in a Deno sandbox. Install Deno 2.8 or earlier and make sure deno is on your PATH; the sandbox fails to start on Deno 2.9 and later. Local code execution works on macOS and Linux only. On Windows, use the remote server or run the local server under WSL2.
Use @latest to always pull the most recent version, or pin to a specific version like @2.51.0 for stability.

Docker

Run the MCP server in a container.
Docker images are available on GitHub Container Registry.
Never commit API keys to version control. Keep them in environment variables or a secret manager, use test mode keys during development, and rotate keys from the dashboard. If you run the server remotely, always require the Authorization or x-dodo-payments-api-key header and serve it over HTTPS.

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
Last modified on November 9, 2026