MCP Server

مجتمعي المالية والمدفوعات

AlgoVoi crypto payment gateway: create checkout links, verify on-chain payments and generate MPP/x402/AP2 challenges on Algorand, VOI, Hedera and Stellar.

التثبيت

خطوات التثبيت موجودة في التوثيق أدناه. التوثيق

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. AlgoVoi MCP Server
  2. Tools
  3. Two ways to connect
  4. Testing

AlgoVoi MCP Server

An MCP (Model Context Protocol) server that exposes AlgoVoi's payment infrastructure as tools any MCP client can call — Claude Desktop, Claude Code, Cursor, Windsurf, or any other MCP-compatible assistant.

Ships as two packages:

PackageInstallCommand
**TypeScript**npm i -g @algovoi/mcp-servernpx -y @algovoi/mcp-server
**Python**pip install algovoi-mcpuvx algovoi-mcp or algovoi-mcp

Both packages now expose all 21 tools (13 Tier 1 + 8 Tier 2 standing-authority recurring tools, both shipped at v1.3.0). Pick whichever runtime your MCP client / deployment stack prefers — same surface, same JSON Schema definitions, same Pydantic-strict / extra-forbid validation.


Tools

Payment tools
#ToolWhat it does
1create_payment_linkHosted-checkout URL for a given amount + chain
2verify_paymentVerify a checkout token (optionally with a tx_id)
3prepare_extension_paymentIn-page wallet-flow params (Algorand / VOI)
4verify_webhookHMAC-SHA256 signature check for AlgoVoi webhooks
5list_networksSupported chains + asset IDs (offline, no API call)
Protocol challenge tools
#ToolWhat it does
6generate_mpp_challengeIETF MPP 402 WWW-Authenticate headers + challenge_id
7verify_mpp_receiptVerify an MPP on-chain receipt (direct indexer, no API call)
8verify_x402_proofVerify an x402 base64 payment proof (direct indexer)
9generate_x402_challengex402 X-Payment-Required 402 headers + payload
10generate_ap2_mandateAP2 v0.1 PaymentMandate for AI agent payment flows
11verify_ap2_paymentVerify an AP2 mandate payment receipt (direct indexer)
A2A agent tools (new in v1.2.0)
#ToolWhat it does
12fetch_agent_cardGET {agent_url}/.well-known/agent.json — discover an A2A agent's capabilities and payment requirements before calling it
13send_a2a_messagePOST {agent_url}/message:send — call a payment-gated A2A v1.0 agent; returns the task result on 200, or challenge_headers on 402 so Claude can pay and retry
A2A pay-and-call flow
1. fetch_agent_card("https://agent.example.com")
   → see agent costs $0.01, accepts MPP on Algorand

2. send_a2a_message(agent_url, "What is the price of ALGO?")
   → payment_required: true, challenge_headers: {WWW-Authenticate: ...}

3. generate_mpp_challenge(...)   ← use tool #6
   → user pays on-chain

4. send_a2a_message(agent_url, text, payment_proof="<proof>")
   → task result returned

Supported networks: Algorand, VOI, Hedera, Stellar (USDC on all four + native ALGO/VOI/HBAR/XLM).

Tier 2 — Standing-authority recurring tools (new in v1.3.0 — both TS and Python)

Tier 2 is "customer signs ONCE, AlgoVoi auto-pulls per cycle" — the subscription / agent-bound spending pattern. Each chain uses its native authorisation primitive (no custom escrow contracts on the merchant side):

#ToolWhat it does
14create_recurring_authorityOpen a new standing authority. Returns chain-specific customer_signing_payload for the customer's wallet to sign
15get_authorityRead current state (status, cycles_pulled, cap_remaining, etc.)
16list_authoritiesList all authorities for this tenant; filter by status / subscription_id
17confirm_authorityMark active after on-chain landing (most flows skip this — webhook does it)
18revoke_authorityChain-side revocation (customer's wallet signs the revoke tx)
19pause_authorityOff-chain pause (no chain action)
20resume_authorityOff-chain resume
21manual_pullTenant-initiated catch-up / proration pull
Per-chain authorisation primitives
ChainPrimitive
Algorand / VOISpendingCapVault (6-action atomic group)
Base / TempoERC-20 approve (single tx)
SolanaSPL Token Approve + facilitator delegate
HederaHTS AccountAllowanceApproveTransaction
StellarSoroban auth_entry (smart-contract authorisation)
Subscription flow
1. create_recurring_authority(subscription_id, chain, customer_wallet,
                              cap_amount_minor, cap_period_seconds,
                              per_cycle_amount_minor)
   → customer_signing_payload returned

2. Hand template to wallet (Pera / Defly / MetaMask / Phantom /
   HashPack / Freighter / etc.)
   → customer signs the chain-native authorisation tx

3. confirm_authority(authority_id, on_chain_address)
   → status: 'pending' → 'active'

4. AlgoVoi cycle reaper auto-pulls per cap_period_seconds.
   Each pull emits subscription.charged or subscription.payment_failed
   webhooks (verify with verify_webhook).

5. Lifecycle: revoke_authority / pause_authority / resume_authority /
   manual_pull as needed.

Per-chain wallet-side integration: see ../Recurr/<chain>/README.md for each chain's customer-side flow.

Supported networks: all 14 (7 mainnets + 7 testnets) — Algorand, VOI, Base, Tempo, Solana, Hedera, Stellar.


Two ways to connect

AlgoVoi Cloud is the control plane for all your integrations — WooCommerce, Zapier, n8n, and MCP all in one dashboard. Point ALGOVOI_API_BASE at https://cloud.algovoi.co.uk and your single algv_... API key covers every integration — no tenant ID or payout addresses needed (they're stored in the dashboard).

{
  "mcpServers": {
    "algovoi": {
      "command": "npx",
      "args": ["-y", "@algovoi/mcp-server"],
      "env": {
        "ALGOVOI_API_KEY": "algv_...",
        "ALGOVOI_API_BASE": "https://cloud.algovoi.co.uk"
      }
    }
  }
}

Every payment Claude creates appears in your Cloud dashboard alongside payments from every other platform. One place to see everything.

Sign up free at dash.algovoi.co.uk.


Option B — AlgoVoi direct

Connect straight to the AlgoVoi API with your algv_... key and tenant ID.

Both packages read the same env vars:

VarRequiredPurpose
ALGOVOI_API_KEY✅algv_... API key from the AlgoVoi dashboard
ALGOVOI_TENANT_ID✅Tenant UUID from the AlgoVoi dashboard
ALGOVOI_PAYOUT_ALGORAND✅*Algorand payout wallet address
ALGOVOI_PAYOUT_VOI✅*VOI payout wallet address
ALGOVOI_PAYOUT_HEDERA✅*Hedera payout account (e.g. 0.0.123456)
ALGOVOI_PAYOUT_STELLAR✅*Stellar payout address (G...)
ALGOVOI_PAYOUT_ADDRESS—Universal fallback if per-chain vars are not set
ALGOVOI_WEBHOOK_SECRET—For verify_webhook
ALGOVOI_API_BASE—Override the AlgoVoi API base URL (default: https://cloud.algovoi.co.uk)

\* At least one per-chain address (or ALGOVOI_PAYOUT_ADDRESS as fallback) is required.

Auth is env-var only. Secrets never pass through tool arguments — the MCP client never sees the API key.

Sign up at www.algovoi.co.uk to get your API key and tenant ID.

{
  "mcpServers": {
    "algovoi": {
      "command": "npx",
      "args": ["-y", "@algovoi/mcp-server"],
      "env": {
        "ALGOVOI_API_KEY": "algv_...",
        "ALGOVOI_TENANT_ID": "...",
        "ALGOVOI_PAYOUT_ALGORAND": "<your-algorand-address>",
        "ALGOVOI_PAYOUT_VOI":      "<your-voi-address>",
        "ALGOVOI_PAYOUT_HEDERA":   "0.0.<your-account>",
        "ALGOVOI_PAYOUT_STELLAR":  "G<your-stellar-address>"
      }
    }
  }
}

For the Python package, swap "command": "uvx", "args": ["algovoi-mcp"].

Config file locations:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Claude\claude_desktop_config.json (Windows)
  • Claude Code: ~/.claude.json
  • Cursor: ~/.cursor/mcp.json

Testing

# TypeScript unit tests (77/77)
cd typescript && npm test

# Python unit tests (85/85)
cd python && pytest

# Stdio integration smoke — boots both servers and confirms all 13 tools list
python smoke_stdio.py

Licensed under the Business Source License 1.1.

الأسئلة الشائعة

ما هو MCP Server؟

AlgoVoi crypto payment gateway: create checkout links, verify on-chain payments and generate MPP/x402/AP2 challenges on Algorand, VOI, Hedera and Stellar.

كيف أثبّت MCP Server؟

اتبع خطوات التثبيت في توثيقه المعروض في هذه الصفحة وفي مستودعه.

هل MCP Server مفتوح المصدر؟

شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.

من يصون MCP Server؟

ينشره chopmob-cloud. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من القوائم المجتمعية awesome-mcp-servers ومستودع المشروع على GitHub. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.