cashfree-mcp
The Cashfree MCP server allows AI tools and agents to integrate with Cashfree APIs (Payment Gateway, Payouts, and SecureID) using the Model Context Protocol (MCP). It offers easy setup with sample configurations, requires Node.js, and supports both sandbox and production environments through API key configuration.
GitHub Stars
8
User Rating
Not Rated
Favorites
0
Views
32
Forks
3
Issues
2
Installation
Difficulty
IntermediateEstimated Time
10-20 minutes
Requirements
Node.js: 14.x以上npm: バージョンは指定なしInstallation
Installation
Prerequisites
Please specify required software and versions:Node.js: 14.x or higher
npm: Version not specified in README
Installation Steps
1. Clone Repository
bash
git clone https://github.com/cashfree/cashfree-mcp.git
cd cashfree-mcp
2. Install Dependencies
bash
npm install
3. Start Server
bash
npm start
Troubleshooting
Common Issues
Issue: Server won't start Solution: Check Node.js version and reinstall dependencies. Issue: Not recognized by Claude Desktop Solution: Verify configuration file path and syntax.Configuration
Configuration
Basic Configuration
Claude Desktop Setup
Editclaude_desktop_config.json to add the MCP server:
json
{
"mcpServers": {
"cashfree": {
"command": "node",
"args": ["/path/to/cashfree-mcp/src/index.js"],
"env": {
"PAYMENTS_APP_ID": "YOUR_PG_CLIENT_ID",
"PAYMENTS_APP_SECRET": "YOUR_PG_CLIENT_SECRET",
"PAYOUTS_APP_ID": "YOUR_PAYOUTS_CLIENT_ID",
"PAYOUTS_APP_SECRET": "YOUR_PAYOUTS_CLIENT_SECRET",
"TWO_FA_PUBLIC_KEY_PEM_PATH": "/path/to/public_key.pem",
"SECUREID_APP_ID": "YOUR_SECUREID_CLIENT_ID",
"SECUREID_APP_SECRET": "YOUR_SECUREID_CLIENT_SECRET",
"TOOLS": "pg,payouts,secureid",
"ENV": "sandbox"
}
}
}
}
Environment Variables
Set the following environment variables as needed:bash
export PAYMENTS_APP_ID="YOUR_PG_CLIENT_ID"
export PAYMENTS_APP_SECRET="YOUR_PG_CLIENT_SECRET"
export PAYOUTS_APP_ID="YOUR_PAYOUTS_CLIENT_ID"
export PAYOUTS_APP_SECRET="YOUR_PAYOUTS_CLIENT_SECRET"
export TWO_FA_PUBLIC_KEY_PEM_PATH="/path/to/public_key.pem"
export SECUREID_APP_ID="YOUR_SECUREID_CLIENT_ID"
export SECUREID_APP_SECRET="YOUR_SECUREID_CLIENT_SECRET"
Examples
Examples
Basic Usage
Here are basic usage examples for the MCP server:Using with Claude Desktop
1Verify MCP Server Startup
Open Claude Desktop and confirm that the configuration has been loaded correctly.
2Execute Basic Commands
Available tools from this MCP server:
- tool1: Description of tool1
- tool2: Description of tool2
Programmatic Usage
javascript
// JavaScript example (Node.js)
const { MCPClient } = require('@modelcontextprotocol/client');
const client = new MCPClient();
await client.connect();
// Execute tool
const result = await client.callTool('toolName', {
parameter1: 'value1',
parameter2: 'value2'
});
console.log(result);
Use Cases
An AI chatbot utilizing Cashfree's payment functionalities
Automated scripts performing payout processes
Real-time payment verification from an application
Utilizing 2FA for enhanced security in authentication
Data analysis tools fetching data using Cashfree APIs