payments
Razorpay MCP Integration for LangGraph
Connect Razorpay to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Razorpay to LangGraph
Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.
Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with
--write=deny so LangGraph can inspect read-capable tools without receiving write access by default.
Razorpay MCP Config for LangGraph
Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.
{
"mcpServers": {
"kosmokrator-razorpay": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=razorpay",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=razorpay --write=deny Why Use KosmoKrator Here
Expose only Razorpay instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Razorpay Tools Visible to LangGraph
LangGraph sees stable MCP tool names generated from the Razorpay integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__razorpay__razorpay_list_payments | razorpay.razorpay_list_payments | Read | List payments from Razorpay. Supports pagination and date-range filters. Returns payment IDs, amounts, statuses, and methods. |
integration__razorpay__razorpay_get_payment | razorpay.razorpay_get_payment | Read | Get details of a specific Razorpay payment by its ID. Returns full payment information including amount, status, method, and metadata. |
integration__razorpay__razorpay_list_orders | razorpay.razorpay_list_orders | Read | List orders from Razorpay. Supports pagination and date-range filters. Returns order IDs, amounts, currencies, and statuses. |
integration__razorpay__razorpay_get_order | razorpay.razorpay_get_order | Read | Get details of a specific Razorpay order by its ID. Returns full order information including amount, status, and payments. |
integration__razorpay__razorpay_create_order | razorpay.razorpay_create_order | Write | Create a new payment order in Razorpay. Specify the amount (in smallest currency unit, e.g., paise for INR), currency, and an optional receipt identifier. |
integration__razorpay__razorpay_list_refunds | razorpay.razorpay_list_refunds | Read | List refunds from Razorpay. Supports pagination and date-range filters. Returns refund IDs, amounts, payment references, and statuses. |
integration__razorpay__razorpay_list_customers | razorpay.razorpay_list_customers | Read | List customers from Razorpay. Supports pagination. Returns customer IDs, names, emails, and contact numbers. |
integration__razorpay__razorpay_get_current_user | razorpay.razorpay_get_current_user | Read | Get current user information from Razorpay. Returns details about the authenticated Razorpay account. |