Razorpay Local MCP Server Setup
Complete guide to set up and run the Razorpay MCP Server locally using Docker.
The Razorpay Local MCP Server is a self-hosted solution that provides complete control over your infrastructure and access to all available tools without restrictions. Choose this option if you need full functionality or have specific security requirements.
Refer to the
section and then choose a setup method to proceed. You can use or .Before setting up the Razorpay Local MCP Server, ensure you have:
- Docker: Container platform for running the MCP server.
- Git: Version control system for cloning repositories (if building from source).
- Golang (Go): Programming language runtime (if building from source).
- Razorpay API Keys: Generate from your Dashboard.
- AI-assisted Application: Claude Desktop, VS Code, or similar AI-assisted application.
- Clone the repository:
git clone https://github.com/razorpay/razorpay-mcp-server.gitcd razorpay-mcp-server
- Build the Docker image:
docker build -t razorpay-mcp-server:latest
The resulting image razorpay-mcp-server:latest
will be available in your local Docker registry.
- Clone the repository:
git clone https://github.com/razorpay/razorpay-mcp-server.gitcd razorpay-mcp-server
- Build the Go binary:
go build -o razorpay-mcp-server ./cmd/razorpay-mcp-server
The resulting binary razorpay-mcp-server
will be created in your current directory.
Follow the integration steps given below:
To use the Razorpay MCP Server with Claude Desktop:
- Install .
- Go to Settings → Developer → Edit Config.
- Add the following to your
claude_desktop_config.json
file:
{"mcpServers": {"razorpay-mcp-server": {"command": "docker","args": ["run","--rm","-i","-e","RAZORPAY_KEY_ID","-e","RAZORPAY_KEY_SECRET","razorpay-mcp-server:latest"],"env": {"RAZORPAY_KEY_ID": "your_razorpay_key_id","RAZORPAY_KEY_SECRET": "your_razorpay_key_secret"}}}}
Handy Tips
- Replace
your_razorpay_key_id
andyour_razorpay_key_secret
with your actual Razorpay API credentials.
Restart your AI assistant application after configuration. You should see
become available. Test the connection by asking: Show me available Razorpay tools.If successful, you should see the complete list of Razorpay MCP tools, including tools that are restricted in the Remote MCP Server.
Once your Local MCP Server is running:
- Explore Advanced Features: Access all tools including refunds and settlements.
- Configure Advanced Options: See for detailed settings.
- Review Use Cases: Check that leverage local-only tools.
Was this page helpful?