|
| 1 | +# Razorpay MCP Server |
| 2 | + |
| 3 | +Razorpay's Official MCP Server. |
| 4 | + |
| 5 | +[What is an MCP Server?](https://www.anthropic.com/news/model-context-protocol) |
| 6 | + |
| 7 | +## Characteristics |
| 8 | +Attribute|Details| |
| 9 | +|-|-| |
| 10 | +**Image Source**|Official Image |
| 11 | +**Docker Image**|[mcp/razorpay](https://hub.docker.com/repository/docker/mcp/razorpay) |
| 12 | +**Author**|[razorpay](https://github.com/razorpay) |
| 13 | +**Repository**|https://github.com/razorpay/razorpay-mcp-server |
| 14 | +**Dockerfile**|https://github.com/razorpay/razorpay-mcp-server/blob/main/Dockerfile |
| 15 | +**Docker Image built by**|Docker Inc. |
| 16 | +**Docker Scout Health Score**|  |
| 17 | +**Licence**|MIT License |
| 18 | + |
| 19 | +## Available Tools |
| 20 | +Tools provided by this Server|Short Description |
| 21 | +-|- |
| 22 | +`create_order`|Create a new order in Razorpay| |
| 23 | +`create_payment_link`|Create a new payment link in Razorpay with a specified amount| |
| 24 | +`fetch_order`|Fetch an order's details using its ID| |
| 25 | +`fetch_payment`|Use this tool to retrieve the details of a specific payment using its id.| |
| 26 | +`fetch_payment_link`|Fetch payment link details using it's ID.Response contains the basic details like amount, status etc| |
| 27 | + |
| 28 | +--- |
| 29 | +## Tools Details |
| 30 | + |
| 31 | +#### Tool: **`create_order`** |
| 32 | +Create a new order in Razorpay |
| 33 | +Parameters|Type|Description |
| 34 | +-|-|- |
| 35 | +`amount`|`number`|Payment amount in the smallest currency sub-unit (e.g., for ₹295, use 29500) |
| 36 | +`currency`|`string`|ISO code for the currency (e.g., INR, USD, SGD) |
| 37 | +`first_payment_min_amount`|`number` *optional*|Minimum amount for first partial payment (only if partial_payment is true) |
| 38 | +`notes`|`object` *optional*|Key-value pairs for additional information (max 15 pairs, 256 chars each) |
| 39 | +`partial_payment`|`boolean` *optional*|Whether the customer can make partial payments |
| 40 | +`receipt`|`string` *optional*|Receipt number for internal reference (max 40 chars, must be unique) |
| 41 | + |
| 42 | +--- |
| 43 | +#### Tool: **`create_payment_link`** |
| 44 | +Create a new payment link in Razorpay with a specified amount |
| 45 | +Parameters|Type|Description |
| 46 | +-|-|- |
| 47 | +`amount`|`number`|Amount to be paid using the link in smallest currency unit(e.g., ₹300, use 30000) |
| 48 | +`currency`|`string`|Three-letter ISO code for the currency (e.g., INR) |
| 49 | +`description`|`string` *optional*|A brief description of the Payment Link explaining the intent of the payment. |
| 50 | + |
| 51 | +--- |
| 52 | +#### Tool: **`fetch_order`** |
| 53 | +Fetch an order's details using its ID |
| 54 | +Parameters|Type|Description |
| 55 | +-|-|- |
| 56 | +`order_id`|`string`|Unique identifier of the order to be retrieved |
| 57 | + |
| 58 | +--- |
| 59 | +#### Tool: **`fetch_payment`** |
| 60 | +Use this tool to retrieve the details of a specific payment using its id. Amount returned is in paisa |
| 61 | +Parameters|Type|Description |
| 62 | +-|-|- |
| 63 | +`payment_id`|`string`|payment_id is unique identifier of the payment to be retrieved. |
| 64 | + |
| 65 | +--- |
| 66 | +#### Tool: **`fetch_payment_link`** |
| 67 | +Fetch payment link details using it's ID.Response contains the basic details like amount, status etc |
| 68 | +Parameters|Type|Description |
| 69 | +-|-|- |
| 70 | +`payment_link_id`|`string`|ID of the payment link to be fetched(ID should have a plink_ prefix). |
| 71 | + |
| 72 | +--- |
| 73 | +## Use this MCP Server |
| 74 | + |
| 75 | +```json |
| 76 | +{ |
| 77 | + "mcpServers": { |
| 78 | + "razorpay": { |
| 79 | + "command": "docker", |
| 80 | + "args": [ |
| 81 | + "run", |
| 82 | + "-i", |
| 83 | + "--rm", |
| 84 | + "-e", |
| 85 | + "RAZORPAY_KEY_ID", |
| 86 | + "-e", |
| 87 | + "RAZORPAY_KEY_SECRET", |
| 88 | + "mcp/razorpay" |
| 89 | + ], |
| 90 | + "env": { |
| 91 | + "RAZORPAY_KEY_ID": "your_razorpay_key_id", |
| 92 | + "RAZORPAY_KEY_SECRET": "your_razorpay_key_secret" |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | +} |
| 97 | +``` |
| 98 | + |
| 99 | +[Why is it safer to run MCP Servers with Docker?](https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/) |
0 commit comments