payments
Razorpay MCP Integration for Vercel AI SDK
Connect Razorpay to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Razorpay to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
Razorpay MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"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 Vercel AI SDK
Vercel AI SDK 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. |