- Local MCP server: Use the local MCP server when you need complete control over the runtime environment. You must clone the repository, install dependencies, and configure the client manually. This setup is suitable for offline development, debugging, and custom testing scenarios.
- Remote MCP server: Use the remote MCP server to reduce setup time and infrastructure overhead. Cashfree hosts the server and provides access over HTTPS using streamable HTTP transport. You only need to configure endpoint URLs and authentication headers. Use this option for production environments and teams that prefer a cloud-hosted solution.
- Local MCP
- Remote MCP
Use the following steps to set up the MCP server locally on your machine:
Clone the repository
Use the following steps to clone the MCP repository to your local system:- Open a terminal window.
-
Run the following command to clone the repository:
-
Navigate to the project directory:
Install dependencies
Install the following project dependencies:- Install Node.js version 14.x or later on your system if it’s not already installed.
-
Run the following command to install the project dependencies:
Configure the client
You can configure the MCP server in your preferred MCP client. The following examples show how to configure Claude and Visual Studio Code (VS Code).Configure Claude
Follow these steps to configure Claude with the Cashfree MCP server:-
Open the
claude_desktop_config.jsonfile. -
Add the following configuration block:
Configure Visual Studio Code
Follow these steps to configure Visual Studio Code with the Cashfree MCP server:-
Open the
settings.jsonfile in Visual Studio Code. -
Add the following configuration block:
Configuration details
Set the following environment variables to authenticate your MCP server. Payment GatewayPAYMENTS_APP_ID: Specify your Payment Gateway client ID.PAYMENTS_APP_SECRET: Specify your Payment Gateway client secret.
PAYOUTS_APP_ID: Specify your Payouts client ID.PAYOUTS_APP_SECRET: Specify your Payouts client secret.TWO_FA_PUBLIC_KEY_PEM_PATH: Provide the path to your 2FA public key.
SECUREID_APP_ID: Specify your SecureID client ID.SECUREID_APP_SECRET: Specify your SecureID client secret.TWO_FA_PUBLIC_KEY_PEM_PATH: Provide the path to your 2FA public key.
ENV: Set tosandboxfor testing orproductionfor live environments. Default issandbox.
TOOLS: Provide a comma-separated list of modules to enable:pg: Payment Gatewaypayouts: Payoutssecureid: SecureID
Verify the configuration
To verify the setup:- Restart the MCP client to apply your configuration.
- Check that the tools are loaded successfully.
-
Use the tools for tasks such as:
- Creating a payment link
- Checking payout transfer status
- Generating KYC links
Use cases
The following examples show how you can use Cashfree MCP with large language models (LLMs) to automate payments and identity verification using natural language.- Process invoices from PDFs using Claude: Upload invoice PDFs directly to Claude. Claude extracts the payment details and triggers payouts using Cashfree MCP. You don’t need to set up complex workflows.
- Convert natural language into payment or KYC links: Ask an LLM: “Create a ₹2,000 payment link for mobile 9999999999.” Cashfree MCP generates the link instantly. You don’t need to write code or configure the setup manually.
- Automate KYC from onboarding emails: When onboarding requests arrive by email, use Gmail with Cashfree MCP to generate KYC verification links automatically. Your LLM generates the response in real time.
- Combine Cashfree MCP with other tools: Use Cashfree MCP with other MCP-compatible tools such as WhatsApp, Gmail, or GitHub to automate workflows. You can generate payment or KYC links, process invoices, and trigger actions using natural language. You don’t need to do any additional setup.