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 .

Prerequisites

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.
  1. Clone the repository:
    git clone https://github.com/razorpay/razorpay-mcp-server.git
    cd razorpay-mcp-server
  2. 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.

Build From Source Instructions

  1. Clone the repository:
    git clone https://github.com/razorpay/razorpay-mcp-server.git
    cd razorpay-mcp-server
  2. 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:

  1. Install .
  2. Go to SettingsDeveloperEdit Config.
  3. 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

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:

  1. Explore Advanced Features: Access all tools including refunds and settlements.
  2. Configure Advanced Options: See for detailed settings.
  3. Review Use Cases: Check that leverage local-only tools.

Was this page helpful?


razorpay local mcp server
docker setup
self-hosted mcp server