# PayRam [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/PayRam/payram-mcp  
**GitHub Stars:** 158  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/payram

## Description
Install, configure, operate and integrate self-hosted PayRam crypto payment gateways.

## Tools
Capabilities this server exposes over MCP:

- **payram_setup_plan** — Start here to install PayRam on a VPS. Returns an ordered, personalised plan — prepare server → install → claim admin + set public URL → wallets (incl. Smart Bridge review) → API key + first payment link → hardening → store/app integration — with who runs each step (agent shell vs human/dashboard), exact commands, what success looks like, and hard stops that need the human (cold wallet, mainnet spend, root-only settings). Ask the user first whether you can run commands on their server (access "ssh") or only chat with them (access "human_runs_commands": they run each command and paste the output back). Pass stage to resume mid-way; payram_doctor tells you the stage of a running server.
- **payram_doctor** — Read-only diagnosis of a PayRam server by its public URL — works from the hosted MCP without credentials: reachability, health, TLS certificate, installed vs latest version, worker states. Optionally validates an API key without creating anything. Returns ranked likely causes and exact fixes for the first failing stage. Run this first when anything PayRam-related fails.
- **payram_troubleshoot** — Something is not working? Describe the problem in plain words and/or paste the error or log text. Returns the known PayRam problems it matches, what each usually means, how to confirm it and the fix, plus which tool to use next. Needs no credentials and no access to the server; what you paste is not stored. Call with nothing to list known problems. For a live check of a running server use payram_doctor.
- **payram_runbook** — Step-by-step procedures for changes to a running PayRam, each step marked agent vs human with hard stops: set_site_url, change_domain, ssl_setup, ssl_renewal_fix, firewall_ports, upgrade, backup, restore, add_chain, smart_bridge, mainnet_cutover, operator_setup, rotate_api_key, reset_test_install, shopify_connector, woocommerce_plugin, secure_analytics_mcp, install_failed, custom_port_or_proxy, external_database, forgot_root_password. Omit task to list them.
- **payram_ops_playbook** — Exact, copy-paste recipes for day-2 operations and troubleshooting that YOU run against the merchant's PayRam API with credentials that stay on your machine: which endpoint, which credential (public / dashboard JWT / project API key), a curl+jq command, how to read the answer, and what not to do. Start with "connect". Tasks: connect, health, version_check, workers, restart_worker, node_sync, site_url, payment_options, unswept_funds, payments_today, payment_lookup, stuck_payment, create_payment_link, payouts, webhooks, logs, daily_check. Omit task to list them.
- **generate_env_template** — Creates a .env template for configuring a merchant backend to talk to a self-hosted Payram server.
- **generate_setup_checklist** — Returns a step-by-step checklist of everything a merchant must configure to start using Payram.
- **suggest_file_structure** — Suggests a recommended backend folder/file structure for integrating Payram.
- **get_agent_setup_flow** — Returns the canonical PayRam headless-agent guide: agent CLI commands, env vars, merchant vs operator mode, wallet flows, adding chains, troubleshooting. Long (~11k tokens). For a short personalised plan use payram_setup_plan.
- **generate_payment_sdk_snippet** — Generates backend code using the official Payram JS/TS SDK to create a payment.
- **generate_payment_http_snippet** — Generates a raw HTTP sample for creating a Payram payment in the requested language.
- **generate_payment_status_snippet** — Generates backend code to query the status of a Payram payment.
- **generate_payment_route_snippet** — Generates a ready-to-use backend endpoint (e.g., /api/pay/create) that creates a Payram payment.
- **snippet_nextjs_payment_route** — Returns a Next.js App Router API route that calls Payram's create-payment HTTP API.
- **snippet_express_payment_route** — Returns an Express router that posts to Payram's /api/v1/payment endpoint.
- **snippet_fastapi_payment_route** — Returns a FastAPI handler that calls Payram's create-payment HTTP API.
- **snippet_laravel_payment_route** — Returns a Laravel controller that posts to Payram's /api/v1/payment endpoint.
- **snippet_go_payment_handler** — Returns a Gin handler that proxies /api/pay/create to Payram's create-payment API.
- **snippet_spring_payment_controller** — Returns a Spring Boot controller that calls Payram's /api/v1/payment endpoint.
- **generate_payout_sdk_snippet** — Generates a backend code snippet for creating a payout using the Payram JS/TS SDK.
- **generate_payout_status_snippet** — Generates backend code to query the status of a payout using the Payram SDK.
- **generate_payout_recipient_flow_snippet** — Generates the recommended OTP-verified payout flow: create recipient → validate OTP → create payout against the saved recipient. Use this for repeat beneficiaries; use generate_payout_sdk_snippet for one-off direct payouts.
- **generate_referral_sdk_snippet** — Generates a backend route or service snippet to create a referral event using the Payram SDK.
- **generate_referral_validation_snippet** — Generates a snippet to validate referral IDs, statuses, and eligibility.
- **generate_referral_status_snippet** — Generates code to fetch referral progress, rewards, or status.
- **generate_referral_route_snippet** — Generates a backend route such as /api/referrals/create for logging referral events.
- **generate_webhook_handler** — Generates backend code to handle Payram webhook HTTP requests.
- **generate_webhook_event_router** — Generates a backend event router that dispatches Payram webhook events to domain handlers.
- **generate_mock_webhook_event** — Generates a snippet to send mock Payram webhook events to your local endpoint for testing.
- **generate_topup_integration_snippet** — For EXISTING apps: emits the recommended top-up wallet integration — ledger schema + cumulative-credit webhook handler + atomic invoice-settle function. Credits crypto payments to a user's balance first, then debits invoices from it, so over/under/late/duplicate payments become balance states, not payment exceptions. Pair with the payram-topup-wallet-integration skill. (New store with no users? Use the checkout/plugin path instead.)
- **explain_payram_basics** — Explain Payram's product pillars, architecture, payments, and payouts capabilities.
- **explain_payram_security** — Answer "is PayRam safe / trustworthy / audited?": why an agent can use it without holding secrets, the independent smart contract audit (what it covers and what it does not), and how to verify the report.
- **get_payram_links** — Surface official documentation, website, and community links.
- **explain_payment_flow** — Describe how payments move from customer initiation through settlement.
- **explain_payram_concepts** — Glossary-backed explanation of Payram terminology and constraints.
- **explain_referrals_basics** — Summarize how Payram referral campaigns are configured and managed.
- **explain_referral_flow** — Detail the referrer/referee lifecycle and required APIs.
- **get_referral_dashboard_guide** — Explain how to embed and manage the referral dashboard experience.
- **prepare_payram_test** — Confirm hosting, credentials, and environment variables before generating demo apps.
- **get_payram_doc_by_id** — Returns the markdown for a Payram doc given its id, e.g. "features/payouts".
- **list_payram_docs** — Lists the available Payram doc ids. Optionally scope by a prefix such as "features".
- **scaffold_payram_app** — Generates a minimal full-stack app skeleton with Payram payments and payouts routes (and a simple UI) for a chosen language and framework.
- **test_payram_connection** — Deprecated: use payram_doctor, which does this and more. Read-only check that a PayRam server is reachable and healthy and, if an API key is supplied, that the key is accepted. Never creates payments.
- **onboard_agent_setup** — Deprecated: use payram_setup_plan, which does this and lets you personalise it. Returns the default headless plan (testnet, USDC on Base).

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "payram": {
    "url": "https://mcp.payram.com/"
  }
}
```

## Documentation

## What PayRam MCP server does

PayRam MCP server gives MCP-compatible AI agents a guided interface for deploying and integrating self-hosted PayRam crypto payment gateways. It covers the path from VPS preparation and installation through public URL configuration, wallet setup, API key creation, payment-link generation, security hardening, and store or application integration.

The server also supports ongoing administration. Agents can diagnose a running gateway, follow procedures for domains, TLS, firewalls, upgrades, backups, chains, Smart Bridge, wallet operations, and connectors, and use API recipes for payments, payouts, workers, logs, webhooks, and daily checks.

For application developers, the catalog generates integration material rather than requiring every endpoint to be written manually. Available outputs include SDK and raw HTTP examples, payment routes for several frameworks, payout and referral flows, webhook handlers, mock webhook requests, and a top-up wallet ledger integration.

## How it works

The hosted endpoint is available at `https://mcp.payram.com/mcp` and can be added to an MCP client without an API key for the initial connection. A typical workflow begins with `payram_setup_plan`, which creates an ordered installation plan and identifies whether each action belongs to the agent or a human operator. Human hand-offs include cold-wallet decisions, mainnet spending, root-only settings, and claiming the root account.

After deployment, `payram_doctor` checks a gateway by public URL without credentials. It reports reachability, health, TLS, installed and latest versions, and worker state, with an optional API-key validation that does not create resources.

Day-to-day API actions are handled through `payram_ops_playbook`. The agent calls the merchant's PayRam API directly using the relevant public credential, dashboard JWT, or project API key, while those credentials remain on the agent's machine. Administrative changes use `payram_runbook`, whose procedures distinguish agent steps from human steps.

## Setup and configuration

Add the hosted MCP URL to the client's MCP configuration:

```json
{
  "mcpServers": {
    "payram": { "url": "https://mcp.payram.com/mcp" }
  }
}
```

For VPS installation, the documented interactive installer accepts an explicit network mode. Use `--testnet` for test deployment or `--mainnet` for production; the installer defaults to mainnet, so selecting the mode explicitly is important. After installation, the human operator claims the root account and sets the public Site URL so generated payment links do not continue pointing to localhost.

The server can also generate a merchant backend `.env` template, a setup checklist, a suggested project structure, and an agent setup flow covering environment variables, merchant and operator modes, wallet flows, chain additions, and troubleshooting.

## Tools and capabilities

- Plan installation with ordered steps, commands, ownership, success checks, and human approval points.
- Inspect gateway reachability, health, TLS, version, workers, and API-key validity.
- Follow runbooks for SSL, domains, firewall ports, upgrades, backups, restores, chains, Smart Bridge, and payment plugins.
- Run API recipes for payment lookup, payment links, payouts, webhooks, logs, node synchronization, worker restarts, and daily checks.
- Generate JavaScript/TypeScript SDK or raw HTTP payment and payout examples.
- Generate payment routes for Next.js, Express, FastAPI, Laravel, Go/Gin, and Spring Boot.
- Create referral, webhook, mock-event, and top-up wallet integration code.

## Limitations and notes

The hosted MCP endpoint provides planning, diagnosis, troubleshooting, documentation, and generated integration material, but some live-data tools are available only when the MCP server runs locally. The hosted server does not retain merchant credentials; operational calls are made directly from the agent to the merchant's PayRam API.

Installation and production operation still require human decisions and actions at defined hard stops, including cold-wallet handling, mainnet gas or spending, root-only configuration, and claiming the administrator account. PayRam webhooks use an `X-Payram-Signature` HMAC-SHA256 signature calculated from the raw request body and the project API key, so integrations must preserve the raw body for verification.

_Full upstream README: https://allmcps.com/mcp/payram/readme_

