payments
Razorpay MCP, CLI, and Lua Integration for AI Agents
Razorpay integration docs for AI agents: MCP gateway setup, Razorpay CLI commands, Lua API reference, credentials, and function schemas.
8 functions 7 read 1 write API key auth
Razorpay for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
razorpay- route_slug
razorpay- package
razorpay- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Razorpay CLIHeadless setup and direct function calls. Razorpay MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Razorpay MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Razorpay.
Claude Code Razorpay MCP setup for Claude Code. Cursor Razorpay MCP setup for Cursor. Codex Razorpay MCP setup for Codex. OpenAI Agents Razorpay MCP setup for OpenAI Agents SDK. Claude Agent SDK Razorpay MCP setup for Claude Agent SDK. Vercel AI SDK Razorpay MCP setup for Vercel AI SDK. LangChain Razorpay MCP setup for LangChain. LangGraph Razorpay MCP setup for LangGraph. CrewAI Razorpay MCP setup for CrewAI. MCP clients Razorpay MCP setup for Generic MCP Clients.
Razorpay CLI Matrix
Use these pages for direct Razorpay CLI workflows in scripts, CI, cron, and agent wrappers.
CI Razorpay CLI for CI. Cron Jobs Razorpay CLI for cron jobs. Shell Scripts Razorpay CLI for shell scripts. Headless Automation Razorpay CLI for headless automation. Coding Agents Razorpay CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
razorpay.razorpay_list_payments | Read read | 4 | List payments from Razorpay. Supports pagination and date-range filters. Returns payment IDs, amounts, statuses, and methods. |
razorpay.razorpay_get_payment | Read read | 1 | Get details of a specific Razorpay payment by its ID. Returns full payment information including amount, status, method, and metadata. |
razorpay.razorpay_list_orders | Read read | 4 | List orders from Razorpay. Supports pagination and date-range filters. Returns order IDs, amounts, currencies, and statuses. |
razorpay.razorpay_get_order | Read read | 1 | Get details of a specific Razorpay order by its ID. Returns full order information including amount, status, and payments. |
razorpay.razorpay_create_order | Write write | 4 | 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. |
razorpay.razorpay_list_refunds | Read read | 4 | List refunds from Razorpay. Supports pagination and date-range filters. Returns refund IDs, amounts, payment references, and statuses. |
razorpay.razorpay_list_customers | Read read | 2 | List customers from Razorpay. Supports pagination. Returns customer IDs, names, emails, and contact numbers. |
razorpay.razorpay_get_current_user | Read read | 0 | Get current user information from Razorpay. Returns details about the authenticated Razorpay account. |