payments
Razorpay MCP Integration for Codex
Connect Razorpay to Codex through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Razorpay to Codex
Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy.
Register kosmo mcp:serve as a local stdio server and choose the integration allowlist. The gateway is local, scoped to this integration, and starts with
--write=deny so Codex can inspect read-capable tools without receiving write access by default.
Razorpay MCP Config for Codex
Keep write access denied or ask-based unless the workspace is trusted.
{
"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 Codex
Codex 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. |