# PayRam MCP: let an AI coding assistant help you integrate crypto payments

> Connect PayRam's integration knowledge to your AI assistant and save time on documentation. But never give it your keys, and always review the code it generates.

- Canonical URL: https://payramhost.com/en/docs/payram-mcp/
- Other languages: 中文: https://payramhost.com/docs/payram-mcp/
- Published: 2026-11-09 · Last updated: 2026-11-29
- Site: PayRamHost (independently operated; not affiliated with PayRam)

> PayRamHost hosted merchant onboarding has been paused since 29 November 2026. Where this guide mentions PayRamHost, it describes the situation before the pause; the PayRam usage it explains still applies.

> **The short version:** PayRam offers an official hosted MCP (Model Context Protocol) server at `https://mcp.payram.com/mcp`. Add it to an MCP-capable AI assistant such as GitHub Copilot, Cursor or Claude Desktop, and the assistant can explain PayRam’s payment flow and help you generate integration code for creating payments, payouts and webhook verification. According to the official documentation, the hosted endpoint needs no authentication headers. **But remember: never give an API key or webhook secret to an AI assistant, and always review and test the code an AI writes.**

## 1. What it is and what it does

MCP (Model Context Protocol) is a protocol that lets AI assistants connect to external tools and information. PayRam’s MCP server lets an AI assistant connect to PayRam and help businesses set up and manage crypto payments. The official documentation lists these capabilities:

- **Payment operations:** create payment intents, track payment status and manage end-to-end payment flows.
- **Payout management:** initiate and monitor payouts across multiple blockchains and supported currencies.
- **Webhook handling:** receive and process webhook events, including signature verification and status updates.
- **Referral system:** configure referral campaigns, track referral activity and manage reward distribution.
- **Integration assistance:** guided setup instructions, recommended best practices and implementation examples.
- **Multi-framework support:** integration snippets for commonly used backend frameworks.

In plain terms, it connects PayRam’s integration knowledge and examples to your AI assistant. You do not need it to integrate PayRam: calling the REST API directly works perfectly well, as in the [API integration guide](https://payramhost.com/en/docs/create-payment-api/). The value of MCP is that it saves you time looking things up while you work in an AI coding tool.

## 2. How to add it to your AI tool

Prerequisite: an MCP-capable client that can register a custom MCP server by HTTP address. According to the official documentation the hosted endpoint needs no authentication headers. For the common clients the official parameters are the same:

| Parameter | Value |
| --- | --- |
| Name | `payram` |
| Type | HTTP server |
| URL | `https://mcp.payram.com/mcp` |
| SSE URL (optional, recommended) | `https://mcp.payram.com/mcp/sse` |
| Headers | Leave empty |

### VS Code (GitHub Copilot)

1. Make sure your GitHub Copilot extension version supports MCP.
2. Open VS Code Settings, search for **Copilot: Model Context Protocol** and select **Add Server**.
3. Choose **HTTP Server** and fill in the table above.
4. After saving, Copilot detects and lists the PayRam tools automatically.

### Cursor

1. Open Settings and go to **MCP Servers**.
2. Click **Add** and choose **HTTP** as the type.
3. Enter the name, URL and SSE URL from the table.
4. Save. If needed, restart the chat pane so the server loads correctly.

### Claude Desktop

1. Open Settings and go to **MCP Servers**.
2. Add a new server and choose **HTTP** as the type.
3. Fill in the table. Enter the SSE URL only if the client supports Server-Sent Events; otherwise leave it blank.
4. Save, then reopen a chat session so the MCP server loads.
5. Ask Claude to perform a PayRam-specific action to confirm the tool list is available.

### Other MCP clients

If the client lets you register an HTTP MCP endpoint manually, configure it with the table above, reload the client or reopen the chat, then verify by asking it to perform a PayRam-specific action.

## 3. What to ask

The sample prompts from the official documentation:

- “Test the PayRam MCP connection.”
- “How does PayRam work? Explain the payment flow.”
- “Help me integrate PayRam payments into my project.”
- “Create a simple application to test PayRam payments.”
- “Create a payment and show how to check its status.”

In Copilot the documentation also mentions prompts such as “test payram” or “assess my project”, and in Cursor “integrate payram into this repo”.

Our suggestion: first ask it to “explain the payment flow”, compare the answer with our [payment statuses](https://payramhost.com/en/docs/payment-statuses/) and [webhook guide](https://payramhost.com/en/docs/webhook-guide/) to confirm it is right, and only then let it write code.

## 4. Security considerations

The security notes in the official documentation:

- Do not share **PayRam API keys**, **webhook secrets** or any other sensitive credentials in client-side code or AI prompts.
- Allow only **trusted AI clients and applications** to connect to the PayRam MCP server.
- Validate and review all actions triggered through MCP, especially those related to **payment creation** and **payout execution**.
- Use **separate PayRam credentials** for development and production environments to reduce operational risk.

> **A direct way to do this:** have the AI assistant generate code that always reads secrets from environment variables (for example `process.env.PAYRAM_API_KEY`), set the values yourself on the server, and never paste a real key into the conversation. Above all, never send a hot wallet private key or a cold wallet seed phrase to any AI.

## 5. A checklist for AI-generated code

Integration code written by an AI assistant may run without being safe. Before going live, check each of these (our recommendations):

1. **Is the signature verified?** The webhook handler must verify `X-Payram-Signature`, computed over the **raw request body** and not over re-serialised JSON. See the [webhook guide](https://payramhost.com/en/docs/webhook-guide/#verify).
2. **Is it idempotent?** A notification that arrives twice must not ship twice or credit twice, and payouts must carry an idempotency key; see [starting payouts through the API](https://payramhost.com/en/docs/payouts-api/#idempotency).
3. **Does it ship only on receipt?** It should rely on the `FILLED` or `OVER_FILLED` status, not on a user clicking “I have paid”.
4. **Where is the key?** Server side only, from environment variables, never in front-end code, logs or the repository.
5. **Does the server decide the amount and coin?** Do not create a payment straight from an amount sent by the browser, to prevent tampering.
6. **Is error handling right?** No retry on 4xx; retry 5xx with the same idempotency key.
7. **Test with a real 1 USD payment.** Run it end to end, from creating the payment to receiving the webhook and seeing the order status change. See the [go-live checklist](https://payramhost.com/en/docs/go-live-checklist/).

## 6. A related tool: Analytics MCP

PayRam also has an “Analytics MCP”, which connects PayRam analytics to a Telegram bot so authorised users can query payments, users, payouts and activity in a chat. Its characteristics:

- You need to **provide** a server (a VPS) with Docker installed and run the official setup script on it.
- Setup asks for the public URL of the PayRam server, the **PayRam dashboard admin email and password**, an **OpenAI API key** and a Telegram bot token.
- The bot replies only in allowlisted chats.

Because it needs dashboard admin credentials, it suits operators who run the whole PayRam installation. As a merchant on PayRamHost you normally do not have admin access, and in any case **do not hand dashboard credentials to a third-party script or bot you do not know**.

## 7. FAQ

### Does using MCP cost money?

The official documentation does not mention a charge for the MCP server itself. The AI assistant you use (Copilot, Cursor, Claude and so on) has its own pricing, which applies.

### Can I integrate without MCP?

Yes. MCP is only a helper. Call the REST API directly or use the official SDK; see [getting started with the TypeScript SDK](https://payramhost.com/en/docs/typescript-sdk/).

### Can the MCP server collect or pay out money for me?

According to the documentation it can help with the flows for creating payments and starting payouts, but you supply the credentials and review every action. Our advice: do not authorise an AI to pay out automatically in production, and confirm every step that moves money by hand.

### How do I confirm the connection works?

After configuring it, ask the assistant to do something PayRam-specific, for example “Test the PayRam MCP connection.”, and see whether it lists PayRam’s tools and responds.

## Related reading

- [Create payments via API](https://payramhost.com/en/docs/create-payment-api.md): Add crypto payments to your own site with the PayRam API: create a payment and get a payment link, send the customer to the payment page, confirm receipt with webhooks and the status endpoint, and reconcile by order number. With curl, Node.js and Python examples.
- [TypeScript SDK](https://payramhost.com/en/docs/typescript-sdk.md): Use the official TypeScript / JavaScript SDK to integrate PayRam: install, create a client, create payments, check status, receive webhooks (Express, Fastify, Next.js), how it verifies requests and what you should add.
- [Webhook guide](https://payramhost.com/en/docs/webhook-guide.md): How to receive PayRam webhooks: register an endpoint, verify X-Payram-Signature, understand retry rules and payment states, handle duplicates, with Node.js and Python examples.
- [Go-live checklist](https://payramhost.com/en/docs/go-live-checklist.md): PayRam mainnet has no sandbox, so test with small real amounts before launch. This checklist covers, in order: checking the configuration, one payment per chain and coin, verifying sweeping, under- and overpayment and expiry, webhooks, refunds and payouts, the card channel, and where to look when something fails.

## Sources

This guide is based on the PayRam official documentation below, checked on 2026-11-09. PayRamHost is an independently operated service and is not affiliated with PayRam. If anything differs, the official documentation prevails.

- [PayRam MCP](https://docs.payram.com/mcp/payram-mcp)
- [Analytics MCP](https://docs.payram.com/mcp/analytics-mcp)
