
PayRam Helper MCP Server
io.github.PayRam由 GitHub 账号 PayRam 发布v1.1.0更新于 Nov 2, 2026
Remote MCP server to integrate and validate self-hosted PayRam deployments.
发布方自己的服务:PayRam
概览
远程 MCP 服务器,帮助 AI 助手规划、安装、诊断并运维自托管的 PayRam 加密货币支付网关。
- 可以做什么
- 规划与诊断 PayRam 部署:有序安装计划、免凭据的 URL 健康检查、故障排查与管理手册
- 获取直接调用 API 的运维配方:健康、节点同步、未归集资金、支付、打款、Webhook 与日志
- 生成集成代码:支付、打款、推荐与签名 Webhook 的代码片段和路由,覆盖 Express、Next.js、FastAPI、Gin、Laravel、Spring Boot
- 产出安装样板、环境变量模板、检查清单与脚手架,并提供内联 PayRam 文档与概念讲解
- 仅在本地模式自托管时提供实时数据工具:支付查询、支付链接、节点同步、重启 worker、项目评估
- 适用场景
- 适合正在部署或维护自托管 PayRam 加密货币/稳定币支付网关的场景,希望助手引导安装、按 URL 检查服务器,或生成各框架的支付、打款与 Webhook 代码。不运行 PayRam 则无需使用。
- 运行要求
- 托管端点为 mcp.payram.com,使用 Streamable HTTP,无需认证头。本地模式需要 Node.js(22.12 以上)、Yarn,以及 PAYRAM_BASE_URL 和 PAYRAM_API_KEY、JWT 变量(PAYRAM_ACCESS_TOKEN、PAYRAM_REFRESH_TOKEN)供数据工具使用;可选 PAYRAM_EXTERNAL_PLATFORM_ID。非回环绑定需设置 MCP_ALLOWED_HOSTS 与 MCP_SERVER_TOKEN。
安装
在 SourceWeft 中
- 打开 控制台中的 PayRam Helper MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.PayRam%2Fpayram-helper-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"payram-helper": {
"type": "http",
"url": "https://mcp.payram.com/"
}
}
}README
PayRam MCP Server — Self-Hosted Crypto Payments for AI Agents
Self-hosted crypto and stablecoin payments: no account lock, no fund freeze, customer data never shared. Your AI agent can plan, install and operate it over MCP. Hosted endpoint:
https://mcp.payram.com/mcp· Website · Docs · Agentic · OpenClaw
An MCP (Model Context Protocol) server that lets any MCP-aware AI agent — OpenClaw, Hermes, Claude, Cursor, GitHub Copilot, and others — deploy, integrate, and operate a self-hosted PayRam crypto-payment stack.
Start here: four tools lead the catalog:
Around them sit codebase assessment, starter-app scaffolds, multi-language snippets and inline docs.
The hosted server (mcp.payram.com) never holds merchant credentials. Day-2 operations run through payram_ops_playbook: the agent calls your PayRam API directly, and the credentials never leave its machine. The live data tools (payment search, payment links, node sync, worker restart) and assess_payram_project exist only when you run the MCP yourself in local mode.
For agents & crawlers: server card · skills index · llms.txt · sitemap. The server also answers Accept: text/markdown on / with an agent-readable summary.
What is PayRam? · PayRam 是什么?
PayRam is a self-hosted, multi-chain crypto payment gateway you own outright — with no signup and no KYC/KYB to run it. An AI agent (or a developer) can stand up a store and start accepting payments without registering an account with PayRam, a bank, or any payment processor. Deploy on your own VPS, generate API keys locally, go live.
What makes it different:
- Nobody can lock you out — there is no account to lock and no funds to freeze. Customer data is never shared, and nothing is reported or monitored. The reason is simple: PayRam runs on your server and funds land in your own wallet.
- Permissionless setup — no signup, no KYC, no KYB. Nobody approves you; nobody can switch you off. Ideal for agents spinning up stores autonomously, and for markets like China where registering with a Western processor isn't an option.
- Card-to-crypto checkout — shoppers without crypto can pay with a credit/debit card and you receive crypto, settled straight into your self-custodied wallet. It is a built-in channel you switch on from the Payments page; the card provider runs its own checks on the shopper.
- Multi-chain — accept BTC, ETH, USDT, USDC, and TRX natively across Bitcoin, Ethereum, Base, Polygon, and Tron, with automatic deposit detection, on-chain confirmation, sweeps to cold storage, and signed webhooks. Smart Bridge rails also take payments on Solana, Bitcoin, Tron (USDT) and BNB Chain and settle them as USDC on Base.
- No deposit keys on the server — smart contracts sweep deposits to your cold wallet, so a compromised server cannot redirect them. The server's hot wallet pays gas and signs payouts, so keep its balance small.
PayRam 是一个你完全自托管、自主拥有的多链加密货币支付网关——运行它无需注册、无需 KYC/KYB。 AI 智能体(或开发者)无需在 PayRam、银行或任何支付处理商处注册账户,即可搭建店铺并开始收款。在自己的 VPS 上部署,本地生成 API 密钥,即刻上线。
核心差异:
- 没有人能把你锁在门外 — 没有可被封禁的账户,也没有可被冻结的资金;客户数据从不外泄,也没有任何上报或监控。原因很简单:PayRam 运行在你自己的服务器上,资金直接进入你自己的钱包。
- 免注册、免许可 — 无需注册、无需 KYC、无需 KYB。没有人审批你,也没有人能关停你。非常适合自主搭建店铺的智能体,以及像中国这样难以在西方支付处理商处注册的市场。
- 银行卡转加密货币结算 — 没有加密货币的买家也能用信用卡/借记卡付款,你直接收到加密货币并结算到自托管的钱包。这是内置的支付渠道,在「Payments(支付)」页面开启;银行卡服务商会对买家进行其自身的审核。
- 多链支持 — 原生支持在 Bitcoin、Ethereum、Base、Polygon、Tron 上接受 BTC、ETH、USDT、USDC、TRX,自动检测充值、链上确认、归集冷钱包并发送带签名的 Webhook。Smart Bridge 通道还可接收 Solana、Bitcoin、Tron(USDT)和 BNB Chain 上的付款,并以 Base 上的 USDC 结算。
- 服务器上没有充值私钥 — 智能合约把充值资金归集到你的冷钱包,即便服务器被攻破也无法改变资金去向。服务器上的热钱包负责支付 Gas 并签署出款,请只保留少量余额。
How AI agents use PayRam · AI 智能体如何使用 PayRam
PayRam is agent-first infrastructure. Because integration is over MCP, it works with any MCP-aware runtime — OpenClaw, Hermes, Claude Desktop, Cursor, GitHub Copilot, n8n, LangChain, and more. A typical agent flow:
- Connect — add
https://mcp.payram.com/mcpto the agent's MCP config (no API key needed just to connect). - Plan — call
payram_setup_plan. It returns the ordered steps, who runs each one, and where the agent must stop for the human (cold wallet, mainnet gas, root-only settings). - Install — on the VPS, in an interactive terminal once, run
bash <(curl -fsSL https://payram.com/setup_payram_agents.sh) --testnet(or--mainnet; the installer default is mainnet, so always pass the flag). Never pipe it intobash. - Hand off — the human claims the root account right away and saves Settings → Site URL from the public domain; until then, payment links point at
http://localhost. - Check —
payram_doctorwith the public URL (no credentials needed). - Accept payments — drop in framework-specific integration code from the snippet tools. Webhooks are signed (
X-Payram-Signature, HMAC-SHA256 of the raw body with the project API key). - Operate —
payram_ops_playbook(daily_check,payment_options,node_sync,unswept_funds,create_payment_link, …) gives the agent the exact API calls to run with its own credentials.payram_runbookcovers admin changes.
For the OpenClaw-specific walkthrough (registration, testnet on Base Sepolia, chat-commerce patterns for WhatsApp/Telegram/Discord) see the payram-openclaw-integration skill and payram.com/openclaw.
PayRam 是智能体优先(agent-first)的基础设施。由于集成基于 MCP 协议,它可与任何兼容 MCP 的运行时配合使用——OpenClaw、Hermes、Claude Desktop、Cursor、GitHub Copilot、n8n、LangChain 等。典型的智能体使用流程:连接 MCP 端点 → 调用
payram_setup_plan规划安装 → 在交互式终端中用bash <(curl …) --testnet部署网关 → 由人工立即创建 root 账户并在公网域名下保存 Site URL → 用payram_doctor检查 → 用集成代码收款(Webhook 带X-Payram-Signature签名)→ 通过payram_ops_playbook用智能体自己的凭证运维。托管的 MCP 服务器从不保存商户凭证。
If GitHub is hard to reach from your network, you can mirror this repository to another Git host (
git clone --mirror https://github.com/PayRam/payram-mcp.git). 如果你的网络难以访问 GitHub,可以把本仓库镜像到其他 Git 托管平台(git clone --mirror https://github.com/PayRam/payram-mcp.git)。
Table of Contents
- What is PayRam?
- How AI agents use PayRam
- Agent Skills
- Project Goals
- Quick Start
- Connect from your MCP client
- Local mode
- Credentials
- Tool Catalog
- Guided Workflows
- Development
- Troubleshooting
Agent Skills
Agent front door: https://mcp.payram.com/SKILL.md — a single root skill that describes PayRam and routes agents to the four start-here tools. Also served: /llms.txt.
This repository includes 19 Agent Skills for AI coding assistants. Install them via skills.sh:
Install individually
Project Goals
- Accelerate onboarding with a personalised setup plan, runbooks, env templates and per-framework playbooks.
- Operate without holding credentials: the hosted server checks a PayRam by URL (
payram_doctor) and hands agents exact API recipes (payram_ops_playbook) to run with their own credentials. - Retrofit existing repos via the project assessment tool (local mode), which scans package manifests and
.envfiles, then recommends the right integration snippets. - Provide copy/paste snippets spanning Payments, Payouts, Referrals, Webhooks, and multi-language backends (Express, Next.js, FastAPI, Laravel, Gin, Spring Boot, etc.).
- Keep docs local so Copilot can explain PayRam concepts, flows, and referral dashboards without leaving the editor.
- Validate connectivity with read-only probes that never create payments (
payram_doctor,test_payram_connection).
Quick Start
Most agents only need the hosted endpoint, https://mcp.payram.com/mcp (see Connect from your MCP client). To run the server yourself:
- Install dependencies
This repo uses Yarn 1. Node 25 and later no longer ship Corepack, so on Node 26 install Yarn first with
npm install -g yarn. - Configure environment (only needed for the local-mode data tools)
- Copy
.env.exampleto.env. - Set
PAYRAM_BASE_URLto your PayRam URL, the same origin as the dashboard (e.g.https://pay.example.com). - Set
PAYRAM_API_KEY, plus the JWT variables for the data tools. See Local mode.
- Copy
- Run the server
- Add the MCP server to your client: see Connect from your MCP client. The local-mode URL is
http://localhost:3333/mcp. - Health check
Tip: When you tell Copilot "test payram" it will automatically run the readiness checklist, ensure
.envexists, and only then calltest_payram_connectionwith your real credentials. The behavior is defined by the Copilot automation prompt—no manual prompting required.
Connect from your MCP client
Endpoint: https://mcp.payram.com/mcp (Streamable HTTP, JSON-RPC over POST). There is no SSE endpoint, and /mcp/sse returns 410. No auth headers: the hosted server never holds merchant credentials, so yours stay on your machine and never go into chat.
Verify: the tool list should start with payram_setup_plan, payram_doctor, payram_troubleshoot, payram_runbook and payram_ops_playbook, followed by scaffold_payram_app and the generate_* snippet tools. Then try: "plan a PayRam install on pay.example.com", "check https://pay.example.com", "generate a FastAPI create-payment route", "give me a Next.js webhook handler".
Prompts: setup-payram, setup-payram-agent, integrate-payment, troubleshoot-payment, daily-ops.
Resources: payram://docs/setup-guide, payram://docs/api-reference, and the templates payram://ops/playbook/{task} and payram://runbooks/{task}.
Copilot automation prompt
Paste this once into a fresh workspace to make "test payram" run the full readiness flow automatically:
Local mode
Run the MCP next to your own PayRam to get the live data tools:
list_platforms,search_payments,lookup_payment,get_payment_summary,get_daily_volume,get_unswept_balances,list_currencies,list_recipientscreate_payment_link,check_payment_readiness,check_node_sync,restart_payram_workerassess_payram_project
- Mode:
PAYRAM_MCP_MODE=localselects local mode. It is also the default whenever the server is not running on Vercel.PAYRAM_MCP_MODE=hostednever reads credentials. - Binding: local mode binds to
127.0.0.1by default (portPORT, default 3333). - Non-loopback binds: set
HOST(e.g.HOST=0.0.0.0), then:- Set
MCP_ALLOWED_HOSTS(comma-separated hostnames accepted in theHostheader). - Set
MCP_SERVER_TOKEN; clients then sendAuthorization: Bearer <token>. - If
PAYRAM_*credentials are set, the server refuses to start on a non-loopbackHOSTwithoutMCP_SERVER_TOKEN. Prefer loopback plus an SSH tunnel.
- Set
- Credentials: the data tools read
PAYRAM_*from the environment (or.env):PAYRAM_BASE_URLPAYRAM_API_KEY(payment links)PAYRAM_ACCESS_TOKEN/PAYRAM_REFRESH_TOKEN(JWT, data tools)PAYRAM_EXTERNAL_PLATFORM_ID(optional default project)
Example client config for a local server (local mode only):
Credentials: which key for what
PayRam has two credentials — agents stall when they conflate them:
The one-step setup flow (bash <(curl -fsSL https://payram.com/setup_payram_agents.sh) --testnet) produces both automatically and prints where they live. The API is same-origin with the dashboard, on port 80/443 (https://<your-domain>/api/v1/..., or http://localhost on the server, never :8080). The API key can create payouts, so keep it server-side and never put it in browser code or chat. Use payram_ops_playbook task connect to set both up for direct API calls.
Tool Catalog
Tool registrations live in
src/tools/index.ts; individual implementations sit insrc/tools/**with language-specific templates undertemplates/folders.
Guided Workflows
0. Install PayRam
- Ask: "Set up PayRam on pay.example.com" (or use the
setup-payram/setup-payram-agentprompts). - The assistant calls
payram_setup_planand walks the phases, stopping at every human step (root account, Site URL, cold wallet, mainnet gas). - It finishes with
payram_doctor, backups (payram_runbookbackup) and the daily check (payram_ops_playbookdaily_check).
1. Assess and Retrofit an Existing Project
- Ask Copilot: "Can you integrate PayRam into this project?"
- The assistant runs
assess_payram_project(local mode), reviewing dependency manifests and.env. - Follow the recommended steps (install
payram, request Express/FastAPI/Spring route snippets, add webhooks, etc.). - Use
test_payram_connectiononce credentials are real to ensure the backend can reach your self-hosted server.
2. Scaffold a Fresh Sample
- "Create a PayRam Express demo" →
scaffold_payram_appbuilds an Express project with payments, payouts, webhooks, and a UI console. - Drop the generated files into an empty repo or compare against your existing directory for reference wiring.
3. Run the "Test PayRam" Readiness Flow
- Say "test payram". The assistant automatically:
- Calls
prepare_payram_testto share the readiness checklist. - Ensures
.envexists (creating it if missing) usinggenerate_env_template. - Waits for real credentials before invoking
test_payram_connection.
- Calls
- Review the structured JSON result to confirm the PayRam API is reachable.
4. Wire Payments, Payouts, Referrals, and Webhooks
- Payments:
generate_payment_sdk_snippet(JS SDK) orgenerate_payment_http_snippet(Python/Go/PHP/Java). - Multi-language routes:
snippet_nextjs_payment_route,snippet_fastapi_payment_route, etc. - Payouts:
generate_payout_sdk_snippetfor create +generate_payout_status_snippetfor polling. - Referrals:
generate_referral_route_snippet,generate_referral_validation_snippet. - Webhooks:
generate_webhook_handlerplusgenerate_webhook_event_routerfor fan-out +generate_mock_webhook_eventto test each status.
Development
Project is TypeScript-first (ESM). Prettier config lives in .prettierrc.json; ESLint is configured via eslint.config.mjs. Smooth contributions follow the commit helper in Makefile → make commit.
Troubleshooting
Start with
payram_doctor— one read-only call that walks reachability → health → TLS → version → workers and returns ranked causes with exact fixes. For deeper checks, followpayram_ops_playbook(stuck_payment,node_sync,webhooks,logs).
- Copilot doesn’t call the right tool: Check the Copilot automation prompt is installed and your MCP client loaded the server. Re-run "test payram" or "assess my project" to trigger the expected automation.
test_payram_connectionfails with 401: Confirm the key is an active project API key (sent as theAPI-Keyheader, notAuthorization).- A data tool says credentials are unavailable: the hosted server never holds merchant credentials. Use the matching
payram_ops_playbooktask, or run the MCP in local mode. - Payment links show
http://localhost: the human must save Settings → Site URL from the public domain (payram_runbooktaskset_site_url). - Docs tool says a file is missing: Verify your local
docs/payram-docs-live/tree contains the requested markdown (get_payram_doc_by_idrejects paths with..). - Server won’t start: Ensure Node 22.12+ and run
yarn install. In local mode with a non-loopbackHOSTandPAYRAM_*credentials set, the server refuses to start untilMCP_SERVER_TOKENis set (see Local mode).
For anything else, inspect the structured logs emitted from src/utils/logger.ts (set LOG_LEVEL=debug) and open an issue/PR with reproduction details.
来源:README.md,提交 686eb23
工具
0版本历史
1- v1.1.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式必需10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。