Paytm MCP Server
Provides tools for creating and managing payment links, fetching transaction details, and automating payment workflows using Paytm's Payments API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Paytm MCP Servercreate a payment link for ₹500"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Paytm MCP Server
Paytm MCP Server enables AI agents and developers to securely access Paytm's Payments and Business Payments APIs via the Model Context Protocol (MCP). It allows smart, contextual automation across all payment workflows
Features
Smart Payment Ops: Automate routine payment workflows like refunds, settlement tracking, and transaction status checks using AI agents powered by Paytm MCP
Context-Aware AI Assistants: Create intelligent tools that can fetch and explain transactions, initiate payouts, or manage payment links—all through simple natural language prompts
Developer Productivity: Supercharge developer efficiency by enabling Paytm API calls (e.g. "Create a ₹500 payment link") directly via terminals, chat-based UIs, or AI IDE plugins
Agentic AI Payments: Enable agentic AI payments, build enhanced bot led shopping experience through Paytm MCP server
Related MCP server: Juspay MCP Tools
Tools
Tool | Description | API |
| Create a new payment link | |
| Fetch details of a payment link | |
| Fetch transaction details for a link |
Prerequisites
Python 3.12 or higher
Paytm Merchant credentials:
PAYTM_MIDandPAYTM_KEY_SECRETuv (a fast Python package installer and runner)
Claude Desktop (for running and managing the server)
Installations
Option 1: Automated Setup (Recommended)
Download the setup.sh script above for automated installation and configuration and follow the below steps:
Run the following in your terminal (Mac/Unix-based):
Make the script executable
# Make the script executable
chmod +x setup.sh
# Run the setup script
./setup.shThe script will:
Check for required dependencies (Python 3.12+, uv, Claude Desktop)
Clone or update the repository
Create and activate a virtual environment
Install all required dependencies
Create a .env file template for Paytm credentials
Note: On Windows, use Git Bash or WSL to run the script, or follow manual installation.
Option 2: Manual Installation
Clone the repository:
git clone https://github.com/paytm/payment-mcp-server.git cd payment-mcp-serverCreate and activate a virtual environment:
uv venv source .venv/bin/activateInstall dependencies:
uv pip install .
Running the MCP Server with Claude Desktop
This server is designed to be launched and managed through Claude Desktop. You do not need to run the server manually from the command line.
Sample claude_desktop_config.json
Place this file in your project root or as required by Claude Desktop:
{
"mcpServers": {
"paytm-mcp-server": {
"command": "uv path",
"args": ["--directory", "path to project", "run", "paytm_mcp.py"],
"env": {
"PAYTM_MID": "****************",
"PAYTM_KEY_SECRET": "************"
}
}
}
}Tips:
On Mac:
Run
which uvto get the command pathRun
pwdto get the project path
On Windows:
Run
where uvto get the command pathRun
cdto get the project path
Ensure the paytm_mcp.py file exists in the given path.
The env section should contain your actual Paytm credentials (Paytm MID and Paytm Key Secret)
Next Steps
Update the claude_desktop_config.json with your Paytm credentials
Restart the server using Claude Desktop
Begin interacting with Paytm APIs using your AI agents
License
This project is licensed under the MIT License - see the LICENSE file for details.
The MIT License is a permissive license that allows you to:
Use the code commercially
Modify the code
Distribute the code
Use the code privately
Sublicense the code
The only requirement is that the license and copyright notice must be included in all copies or substantial portions of the software.
Need help? Raise an issue or explore the Paytm Documentation
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/santosh-chourasiya/payment-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server