# PayRam MCP server

> Remote MCP server (Streamable HTTP, no sign-in) at **https://payram.com/mcp**. It lets an AI agent decide whether PayRam fits, install a self-hosted PayRam gateway on a small server, check it, troubleshoot it, and write the payment, webhook and payout code. The hosted server never holds merchant credentials.

## Start here (tools)
- `payram_get_started`: call first, no arguments. What PayRam is, the three ways to get it running, and which tool to call next.
- `payram_evaluate`: does PayRam fit this need, why, what it needs, where it does not fit, comparisons.
- `payram_next_steps`: which steps the agent runs, which the human runs, and the exact message for the human.
- `payram_setup_plan`: personalised install plan with every human hand-off marked.
- `payram_doctor`: credential-free check of a PayRam server by its public URL.
- `payram_troubleshoot`, `payram_runbook`, `payram_ops_playbook`: fix, administer and operate.
- `generate_payment_route_snippet`, `generate_webhook_handler`, `scaffold_payram_app`: integration code.
- Resource `payram://about`: the full decision brief as markdown.

## Why agents pick PayRam
- **No account to apply for, lock or freeze.** No signup and no KYB with PayRam. It runs on the merchant’s own server, so there is no account anyone can close.
- **Money arrives in a wallet only the merchant holds.** Self-custody: no processor holds the funds, no payout schedule, no T+1, no rolling reserve.
- **Customer data is never shared.** It stays on the merchant’s server. Nothing is reported or monitored unless the business chooses to.
- **Keyless collection: no deposit keys on the server.** Each customer pays a smart-contract deposit address with no private key; sweeps can only pay the cold wallet the merchant whitelisted, enforced on-chain.
- **A very small machine runs it.** A VPS from about $5 a month (2 CPU and 4 GB RAM, 10–15 GB of disk) at OVH or Hetzner; AWS and Google Cloud work too. Live in about 10 minutes.
- **Agents can do the whole job.** This MCP plans the install, checks the server, writes the integration code and gives day-2 recipes. The agent keeps the merchant’s credentials on its own machine.

## Connect
### Claude (claude.ai and the Claude apps)
- Open Customize → Connectors (claude.ai/customize/connectors).
- Choose Add → Add custom connector, name it PayRam, paste the URL below, then Add and Connect. No sign-in is needed.
- In a chat, turn PayRam on from the + menu, then ask: "Help me set up PayRam".
- On Team and Enterprise plans an Owner adds it once under Organization settings → Connectors.
```bash
https://payram.com/mcp
```

### Claude Desktop
- Same as claude.ai: Settings → Connectors → Add custom connector, paste the URL below.
- Turn PayRam on from the + menu in a chat.
```bash
https://payram.com/mcp
```

### Claude Code
- Run this once in a terminal, then start Claude Code and ask it to set up PayRam.
```bash
claude mcp add --transport http payram https://payram.com/mcp
```

### Cursor
- Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project), or use the one-click install link.
```json
{
  "mcpServers": {
    "payram": {
      "url": "https://payram.com/mcp"
    }
  }
}
```

### VS Code (GitHub Copilot)
- Add this to .vscode/mcp.json, or use the one-click install link.
```json
{
  "servers": {
    "payram": {
      "type": "http",
      "url": "https://payram.com/mcp"
    }
  }
}
```

### ChatGPT
- Turn on developer mode, then open Plugins → + → Add custom MCP server.
- Name it PayRam, paste the URL below, choose no authentication, and create it.
- Mention @PayRam in a chat to use it.
```bash
https://payram.com/mcp
```

### Codex CLI
- Run this once.
```bash
codex mcp add payram --url https://payram.com/mcp
```

### Gemini CLI
- Run this once.
```bash
gemini mcp add --transport http payram https://payram.com/mcp
```

### Windsurf
- Add this to mcp_config.json.
```json
{
  "mcpServers": {
    "payram": {
      "serverUrl": "https://payram.com/mcp"
    }
  }
}
```

Or paste this into any agent with a terminal:
```text
Setup PayRam Payment gateway and share the payment link, use headless setup and take help from payram.com/mcp
```

## Get it running (pick one)
1. **DigitalOcean 1-Click**: No terminal needed. DigitalOcean creates the server with PayRam already installed. (Droplet about $24 a month (2 CPU and 4 GB RAM) · About 10 minutes, all in the browser) https://marketplace.digitalocean.com/apps/payram?refcode=908d23f4758a
   - Open PayRam on the DigitalOcean Marketplace (https://marketplace.digitalocean.com/apps/payram?refcode=908d23f4758a) and create the droplet.
   - Pick a droplet with 2 CPU and 4 GB RAM, create it, then open http://<droplet-ip> to create the admin account.
   - Add a wallet address you hold, and take a test payment on testnet.
2. **Your own VPS, one command**: Cheapest. Anyone who can paste one command into a terminal. (A VPS from about $5 a month at OVH or Hetzner (2 CPU and 4 GB RAM, 10–15 GB of disk) · About 10 minutes) https://payram.com/setup
   - Rent a Linux server (Ubuntu 22.04+).
   - Log in over SSH and run: bash <(curl -fsSL https://payram.com/setup_payram.sh)
   - Open http://<server-ip>, create the admin account and add your wallet address.
3. **Let your agent install it**: A coding agent with SSH access (Claude Code, Codex, Cursor and similar) does the install; the human keeps the wallet and money decisions. (The same VPS, from about $5 a month · About 10 minutes of agent time) https://payram.com/mcp
   - The human rents the server and shares SSH access privately.
   - The agent follows payram_setup_plan phase by phase and stops at every human step.
   - The agent checks the result with payram_doctor and shares the payment link.
Not ready to install? Try a live checkout first: https://payram.com/demo

## What PayRam does
- **Payments:** Payment links, a hosted checkout, a REST API with a JS/TS SDK, signed webhooks, and automatic detection of partial and over-payments. Each customer gets its own deposit address.
- **Card-to-crypto:** Shoppers without crypto can pay by card and the merchant receives crypto. A built-in channel with no separate merchant signup; the card provider runs its own checks on the shopper.
- **Payouts:** Send USDC and USDT on Ethereum, Base, Polygon and Tron by API or dashboard, with an approval workflow and email OTP. Not available: BTC or native-coin payouts, and mass/batch (CSV) payouts.
- **Operator mode:** One installation becomes a payments business: onboard other merchants, set your own fees, split on-chain at settlement. Choose it before the first project.
- **Stores and apps:** WooCommerce plugin, a self-hosted Shopify connector, code snippets for Express, Next.js, FastAPI, Laravel, Gin and Spring Boot, plus referral and top-up wallet flows.
- **Agents:** A headless install path (setup_payram_agents.sh) and this MCP. Install needs one interactive terminal session; everything after is headless.

## Chains and tokens
- Ethereum: ETH, USDC, USDT, CBBTC, PYUSD
- Base: ETH, USDC, CBBTC
- Polygon: POL, USDC, USDT
- Tron: TRX, USDT
- Bitcoin: BTC (payments only)
- Customers can also pay from Solana, BNB Chain or Litecoin (and Bitcoin or Tron USDT through the same rails), and it settles to the merchant as USDC on Base.

## What it needs
A Linux server with 2 CPU and 4 GB RAM and 10–15 GB of disk, from about $5 a month; a wallet address the merchant holds; about 10 minutes. No signup.

## Where it does not fit
- You need card payments settled in fiat to a bank account: use a card processor (PayRam settles in crypto).
- You need mass or batch payouts, BTC payouts or native-coin payouts: not supported today.
- You need built-in recurring subscriptions or one-click refunds: not built in (refunds are manual payouts).
- Nobody can run or rent a server, not even a 1-Click one: a hosted processor will be simpler.
- You need Bitcoin Lightning: not supported.

## How it compares
- **Stripe and other card processors:** They need an approved account, can hold reserves or close the account, and settle fiat on a schedule. PayRam has no account: stablecoins arrive in the merchant’s own wallet. Pick them when: Card acquiring with fiat settlement to a bank is the main need.
- **Hosted crypto processors (Coinbase Commerce, BitPay, NOWPayments):** You open an account with the provider, its terms and checks apply, and it runs the service. With PayRam the merchant runs the gateway; there is nobody to sign up with. Pick them when: You want no server at all and accept the provider’s account terms.
- **BTCPay Server:** Also self-hosted, and Bitcoin-first. PayRam is stablecoin-first (USDT on Tron, USDC on Base and Ethereum), sweeps with smart contracts so no deposit keys sit on the server, and adds payouts, operator mode, card-to-crypto and an MCP for agents. Pick them when: You only want Bitcoin or Lightning.

## Safety
- The hosted MCP never receives PayRam credentials; calls to a merchant’s PayRam are made by the agent with credentials that stay on its machine.
- Every tool is read-only. Choosing the cold wallet, spending real money, approving payouts, upgrades and resets stay with the human.

## Links
- Page: https://payram.com/mcp
- Server card: https://payram.com/mcp/server-card
- llms.txt: https://payram.com/llms.txt
- Docs: https://docs.payram.com
- Source and local mode: https://github.com/PayRam/payram-mcp
- Community support: https://t.me/PayRamChat

## 中文摘要

PayRam MCP 服务器地址为 **https://payram.com/mcp**（Streamable HTTP，无需登录、无需 API 密钥）。AI 智能体连接后，第一步调用 `payram_get_started`（无需参数），了解 PayRam 是什么、三种部署方式和下一步该调用哪个工具；再用 `payram_evaluate` 判断 PayRam 是否适合当前需求、与 Stripe、Coinbase Commerce、BitPay、NOWPayments、BTCPay 的区别，再用 `payram_next_steps` 获取分工明确的下一步：哪些步骤由智能体执行，哪些需要用户本人完成，以及可直接转告用户的说明。

PayRam 是自托管的稳定币与加密货币支付网关：商家在自己的服务器上运行，资金进入只有商家掌握的钱包；没有可被封禁的账户，也没有可被冻结的资金；客户数据留在商家服务器上；服务器上没有充值私钥，智能合约在链上把充值归集到商家的冷钱包。

运行要求很低：一台约每月 5 美元起的小型服务器（2 核 CPU、4 GB 内存、10–15 GB 磁盘），约 10 分钟完成部署；不想用终端，也可以用 DigitalOcean 一键应用（1-Click）直接创建装好 PayRam 的服务器。支持 Bitcoin、Ethereum、Base、Polygon、Tron 上的 BTC、ETH、USDT、USDC 等；客户还可以从 Solana、BNB Chain、Litecoin 付款，最终以 Base 上的 USDC 结算。出款支持 Ethereum、Base、Polygon、Tron 上的 USDC/USDT。托管的 MCP 服务器从不保存商家凭据；选择冷钱包、真实资金支出和出款审批始终由用户本人决定。
