{
  "markdown": "# razorpay-mcp\n\nAn MCP (Model Context Protocol) server that connects AI assistants like Claude directly to your Razorpay account. Once configured, you can ask your AI to fetch payments, analyze revenue trends, inspect failed transactions, monitor subscriptions, and get a real-time business dashboard — all in natural language, with no code required.\n\n## Quick Start\n\n```bash\n# Clone\ngit clone https://github.com/indiamcp/razorpay-mcp\n\n# Install\ncd razorpay-mcp\nnpm install\n\n# Configure\ncp .env.example .env\n# Add your Razorpay API keys to .env\n\n# Build\nnpm run build\n\n# Run\nnpm start\n```\n\n## Claude Desktop Setup\n\nAdd this to your `claude_desktop_config.json` (usually at `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS or `%APPDATA%\\Claude\\claude_desktop_config.json` on Windows):\n\n```json\n{\n  \"mcpServers\": {\n    \"razorpay\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/razorpay-mcp/dist/index.js\"],\n      \"env\": {\n        \"RAZORPAY_KEY_ID\": \"rzp_test_xxxxxxxxxxxx\",\n        \"RAZORPAY_KEY_SECRET\": \"your_secret_here\"\n      }\n    }\n  }\n}\n```\n\nOr use `npx` (once published):\n\n```json\n{\n  \"mcpServers\": {\n    \"razorpay\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@indiamcp/razorpay-mcp\"],\n      \"env\": {\n        \"RAZORPAY_KEY_ID\": \"rzp_test_xxxxxxxxxxxx\",\n        \"RAZORPAY_KEY_SECRET\": \"your_secret_here\"\n      }\n    }\n  }\n}\n```\n\n## Available Tools\n\n| Tool | Description | Key Parameters |\n|------|-------------|----------------|\n| `get_payment` | Fetch a specific payment by ID | `payment_id` |\n| `list_payments` | List payments with filters | `from`, `to`, `count`, `status` |\n| `get_payment_analytics` | Revenue, success rate, method breakdown | `from`, `to` |\n| `get_order` | Fetch a specific order by ID | `order_id` |\n| `list_orders` | List orders with filters | `from`, `to`, `count`, `status`, `receipt` |\n| `get_customer` | Fetch a specific customer by ID | `customer_id` |\n| `list_customers` | List customers | `count`, `skip` |\n| `get_subscription` | Fetch a specific subscription by ID | `subscription_id` |\n| `list_subscriptions` | List subscriptions with filters | `from`, `to`, `count`, `status` |\n| `get_subscription_analytics` | Active count, churn rate, upcoming renewals | `from`, `to` |\n| `get_refund` | Fetch a specific refund | `payment_id`, `refund_id` |\n| `list_refunds` | List refunds for a payment | `payment_id`, `count` |\n| `get_dashboard_summary` | Business health check — revenue today/week/month | _(none)_ |\n| `get_failed_payment_analysis` | Failure reasons, by method and bank | `from`, `to` |\n\n## Example Prompts\n\nOnce connected, try asking Claude:\n\n- \"Show me all failed payments in the last 7 days and why they failed\"\n- \"What's my total revenue this month?\"\n- \"List all active subscriptions\"\n- \"Which payment method do my customers prefer?\"\n- \"Show me customers who signed up this week\"\n- \"What's my subscription churn rate this month?\"\n- \"Find payment pay_xxxxx\"\n- \"How many refunds are pending?\"\n- \"Give me a dashboard summary of my business today\"\n- \"Analyze payment failures for the last 30 days\"\n\n## Security Note\n\n- **Environment variables only** — API keys are read from env vars and never hardcoded or logged\n- **Read-only in v1** — this server only fetches data; it cannot create payments, issue refunds, or modify any records\n- **No data storage** — payment data is never persisted or cached by this server\n- **Use test keys during development** — Razorpay test keys (`rzp_test_*`) are safe and make no real charges\n\n## Development\n\n```bash\n# Run in dev mode (no build needed)\nnpm run dev\n\n# Type check\nnpm run lint\n\n# Run tests\nnpm test\n```\n\n---\n\n## Part of IndiaMCP\n\nThis server is part of **IndiaMCP** — a suite of open-source MCP servers for the Indian API stack.\n\n[github.com/indiamcp](https://github.com/indiamcp)\n",
  "bytes": 3808,
  "sha": "5b67eb31c9b9b7d7155320fbe53be0e4c2cdb9e406a7e3aef412f7186f20c486",
  "repo_slug": "indiamcp/razorpay-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_indiamcp_razorpay_d06a53b2/readme"
}