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 "Deploy 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 Server create 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: nice
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
Available Tools
3 toolscreate_payment_linkA
Create a new payment link for receiving payments.
This operation generates a unique payment link that can be shared with customers
for accepting payments. The link can be customized with recipient details,
purpose, customer details and amount.
Required Parameters:
recipient_name (str): Name of the person or entity receiving the payment
purpose (str): Description or reason for the payment
customer_email (str): Email address of the customer
customer_mobile (str): Mobile number of the customer
Either customer_email or customer_mobile must be provided if else please ask from the user
Optional Parameters:
amount (float): Fixed amount for the payment
Note:
- Amount can be left optional for customer to decide
- Generated link will be valid according to system's expiry settings
- Please ask all the required fields from the user don't assume any fields
IMPORTANT NOTE:
- if user is not providing customer_email or customer_mobile, please ask for the same don't call any tool before asking for the same
Inputs: recipient_name (required), purpose (required), customer_email, customer_mobile, +1 more.
fetch_payment_linksA
Retrieve all payment links created by the merchant.
This operation returns a comprehensive list of all payment links created,
including both active and expired links. Each link entry contains details
such as:
- Link ID
- Link Name
- Short URL
- Status
- Creation Date
- Expiry Date
Returns:
List[PaymentLink]: A list of PaymentLink objects containing link details
str: Error message in case of failure
Inputs: no named parameters.
fetch_transactions_for_linkA
Retrieve all transactions associated with a specific payment link.
This operation provides detailed transaction history for a given payment link,
including successful and failed transactions.
Parameters:
link_id (str): Unique identifier of the payment link
Returns:
List[Transaction]: List of transactions containing details such as:
- Transaction ID
- Order ID
- Amount
- Status
- Completion Time
- Customer Contact Information
str: Error message in case of failure
Inputs: link_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: creating a payment link, fetching all payment links, and fetching transactions for a specific link. There is no overlap or ambiguity.
All names start with verbs (create, fetch) and use underscores, but the structure varies: singular vs plural and preposition 'for' in fetch_transactions_for_link. Mostly consistent but not perfectly uniform.
With only 3 tools, the server feels thin for a payment gateway, but it is scoped to payment link management. This is borderline; more tools would improve coverage.
Covers create and read operations for payment links and transactions, but misses essential update/delete functionalities for payment links, leaving gaps in the lifecycle.
Maintenance
Related MCP Connectors
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Discover and call 10,000+ production APIs from one MCP server. Pay-per-call billing for AI agents.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Related MCP Servers
FlicenseNot gradedqualityDmaintenanceEnables AI tools and agents to integrate with Cashfree's payment services (Payment Gateway, Payouts, and SecureID) using the Model Context Protocol, allowing transactions and account management through natural language.42 npm15-- AlicenseNot gradedqualityDmaintenanceProvides a secure MCP gateway for AI agents to access APIs without exposing raw credentials, with scoped access, audit logging, and OAuth support.MIT
- FlicenseNot gradedqualityBmaintenanceEnables Razorpay merchants to become AI-transactable by letting MCP-compatible agents search catalogs, create real Razorpay orders, and complete purchases with enforced wallet limits and audit trails.-
- FlicenseNot gradedqualityBmaintenanceEnables conversational AI agents to manage Razorpay payments directly, including payment lookups, order creation, refunds, UPI QR generation, and real-time webhook triage via the Model Context Protocol.-