Overview
The Model Context Protocol (MCP) is an open standard that enables AI applications to securely connect to external data sources and APIs. The Dodo Payments MCP Server provides AI assistants like Claude, Cursor, and other MCP-compatible clients with structured access to your payment infrastructure.Key capabilities
- Payment Operations: Create, retrieve, and manage payments and refunds
- Subscription Management: Handle recurring billing, upgrades, and cancellations
- Customer Administration: Manage customer data and portal access
- Product Catalog: Create and update products, pricing, and discounts
- License Management: Activate, validate, and manage software licenses
- Usage-Based Billing: Track and bill for metered usage
Installation
Choose the installation method that best fits your workflow.Remote MCP Server (Recommended)
Access the hosted MCP server without any local setup or installation. This is the fastest way to get started.1
Access the remote server
Navigate to https://mcp.dodopayments.com in your browser.
2
Configure your MCP client
Copy the provided JSON configuration for your specific client. For Cursor or Claude Desktop, add this to your MCP settings:
3
Authenticate and configure
The OAuth flow will prompt you to:
- Enter your Dodo Payments API key
- Select your environment (test or live)
- Choose your MCP client type
Keep your API key secure. Use test mode keys during development.
4
Complete setup
Click Login and Approve to authorize the connection.
Once connected, your AI assistant can interact with the Dodo Payments API on your behalf.
NPM Package
Install and run the MCP server locally using NPM.- NPX (No Installation)
- MCP Client Configuration
Use
@latest to always pull the most recent version, or pin to a specific version like @1.0.0 for stability.Docker
Run the MCP server in a containerized environment for consistent deployment.Docker images are available on GitHub Container Registry.
Client Configuration
Configure the Dodo Payments MCP server in your preferred AI client.- Cursor
- Claude Desktop
- Cline (VS Code)
- Zed
- Other Clients
Set up the Dodo Payments MCP server in Cursor to enable conversational access to your payments data.
1
Open Cursor settings
Navigate to Cursor Settings > Features > Model Context Protocol or press
Cmd/Ctrl + Shift + P and search for “MCP Settings”.2
Edit configuration
Click Edit Config to open the
mcp_config.json file.3
Add Dodo Payments configuration
Choose one of the following configurations:Remote Server (Recommended)Local NPX
4
Save and restart
Save the configuration file and restart Cursor.
Verify the connection by asking the AI assistant about your Dodo Payments data.
Tool Filtering
Control which API operations are exposed to your AI assistant to optimize performance and maintain security.Filter by operation type
Restrict access to read-only or write operations.Use
--operation=read during development to prevent accidental modifications to your data.Filter by resource
Limit tools to specific API resources.Include or exclude specific tools
Fine-tune which individual tools are available.Combine filters
Apply multiple filters simultaneously for precise control.Advanced Usage
Programmatic integration
Build custom MCP servers or extend the existing one programmatically.Custom tool development
Extend the MCP server with your own tools and business logic.Security Best Practices
Protect your API credentials and maintain secure integrations.API Key Management
API Key Management
Never commit credentials to version controlStore API keys in environment variables or secure secret management systems.Rotate keys regularlyGenerate new API keys periodically and revoke old ones through your Dodo Payments dashboard.Use test keys for developmentAlways use test mode API keys during development to avoid affecting production data.
Access Control
Access Control
Apply tool filtering in productionLimit exposed operations to only what your AI assistant needs.Implement authentication for custom endpointsValidate requests and enforce authorization in your custom tool handlers.Monitor API usageTrack MCP server activity through your Dodo Payments dashboard and set up alerts for unusual patterns.
Network Security
Network Security
Use HTTPS for remote serversAlways deploy remote MCP servers behind HTTPS endpoints.Implement rate limitingProtect against abuse by implementing rate limits at both the MCP server and API levels.Restrict network accessConfigure firewall rules to limit which clients can connect to your MCP server.
Troubleshooting
Connection issues
Connection issues
Verify your API keyEnsure your API key is correctly set and has the necessary permissions.Check your network connectionVerify you can reach the Dodo Payments API endpoints.Review client logsEnable verbose logging in your MCP client to diagnose connection problems.
Authentication errors
Authentication errors
Confirm API key environmentEnsure you’re using test keys with test endpoints and live keys with production endpoints.Check key permissionsVerify your API key has permissions for the operations you’re attempting.Regenerate credentialsIf issues persist, generate a new API key through your dashboard.
Tool execution failures
Tool execution failures
Validate input parametersEnsure the AI assistant is providing correctly formatted parameters for each tool.Review error messagesCheck the error response from the API for specific guidance on what went wrong.Test with API directlyVerify the operation works when calling the Dodo Payments API directly via curl or Postman.