Pretium
  • Products
  • Agentic Payments
  • Why Pretium
  • Earn $PRT
  • Contact
Download App Book a Demo
  • Products
  • Agentic Payments
  • Why Pretium
  • Earn $PRT
  • Contact
Download App Book a Demo
Back to home
Developers

AI agents — Pretium MCP

Give Cursor, Claude, ChatGPT, and other MCP clients the tools to pay across Africa — mobile money, paybills, banks, and USDT/USDC — under spend policies you control.

Reading Sections hello@pretium.africa

Remote MCP server

Streamable HTTP endpoint. Add it once to your client, authenticate if prompted, then register an agent with a Pretium secret key.

Add to Cursor Setup for every client

On this page

MCP endpoint

Use the full URL, including /mcp. This is a remote Streamable HTTP server — nothing to install locally.

mcp.pretium.africa
Need an agent key?

Registering an agent requires a secret key provisioned by Pretium.

Book a demo
Questions?

Reach our team for MCP access, spend policies, or client setup help.

hello@pretium.africa
Jump to section

Pretium exposes a hosted Model Context Protocol (MCP) server so AI agents can call payment tools the same way they call any other tool — from Cursor, Claude, ChatGPT, or any MCP-compatible client. You do not run a local process. Point the client at the remote URL, authenticate if asked, and the tools appear in the agent session.

1. What MCP is and why it matters

MCP is an open protocol that lets AI assistants discover and call external tools over a standard interface. Pretium's MCP server is the agent-native layer on top of our payment rails: instead of writing REST calls by hand, your assistant can look up rates, validate a phone number or bank account, register an agent, set spend limits, and send fiat or stablecoins.

The server lives at:

https://mcp.pretium.africa/mcp

Use that full URL, including /mcp. Transport is Streamable HTTP over HTTPS. Local npx / stdio setups are not required.

2. Cursor

Fastest path: click Add to Cursor (Cursor must be installed so the cursor:// link can open). Cursor will prompt you to confirm the server, then you can authenticate if asked.

Or add it from the UI: Cursor Settings → Tools & MCP → New MCP Server.

Or paste this into ~/.cursor/mcp.json (all projects) or .cursor/mcp.json in a repo (that project only):

{
  "mcpServers": {
    "pretium-mcp": {
      "url": "https://mcp.pretium.africa/mcp"
    }
  }
}

Save the file and reload MCP servers in Cursor Settings. When the server is connected, Pretium tools show up in Agent chat. If the client prompts you to authenticate, complete that step so the tools can run.

3. Claude

Claude connects to Pretium as a custom remote connector (claude.ai, Claude Desktop, Cowork, and Claude mobile). The connection is made from Anthropic's infrastructure, so the URL must be the public HTTPS endpoint above.

Claude.ai / Claude Desktop (Connectors)

  1. Open Settings → Connectors (on Team/Enterprise, organization owners add connectors first).
  2. Choose Add custom connector.
  3. Name it Pretium and paste https://mcp.pretium.africa/mcp.
  4. Complete authentication if Claude detects it, then enable the connector in a chat.

Free Claude plans typically allow one custom connector; Pro, Max, Team, and Enterprise support more.

Claude Code

From a terminal:

claude mcp add --transport http pretium-mcp https://mcp.pretium.africa/mcp

Then start a Claude Code session and ask it to use Pretium tools (for example, fetch KES rates or register an agent).

4. ChatGPT

ChatGPT talks to remote MCP servers only (HTTPS). Pretium already hosts that endpoint, so no local tunnel is needed. Custom connectors require a paid plan (Plus, Pro, Business, Enterprise, or Edu) with Developer mode enabled.

  1. In ChatGPT, open Settings and turn on Developer mode (under Apps & Connectors → Advanced, or Security and login — OpenAI moves this toggle occasionally).
  2. Go to Settings → Connectors (or Apps) and create a custom connector.
  3. Name it Pretium, set the connector URL to https://mcp.pretium.africa/mcp, and complete auth if prompted.
  4. In a new chat, enable the Pretium connector from the plus / apps menu before asking it to pay or look up rates.

ChatGPT may ask you to confirm write actions (creating orders, sending payouts) each conversation. That is expected.

5. Other MCP clients

Any client that supports remote Streamable HTTP can use the same URL. A few common shapes:

VS Code (Copilot / MCP)

Create .vscode/mcp.json in the workspace:

{
  "servers": {
    "pretium-mcp": {
      "type": "http",
      "url": "https://mcp.pretium.africa/mcp"
    }
  }
}

Windsurf and similar IDEs

Add a remote MCP server with URL https://mcp.pretium.africa/mcp. If the client uses Cursor-style config, the mcpServers JSON in the Cursor section above works as-is.

Generic HTTP client

Point the client at https://mcp.pretium.africa/mcp with Streamable HTTP (not legacy SSE-only, and not stdio). If the client asks for a transport type, choose http. Do not drop the /mcp path.

6. Register an agent and set limits

Connecting the server only exposes tools. To send money, register an agent with a secret key provisioned by Pretium, then attach a spend policy.

  1. Ask Pretium for an agent secret key — hello@pretium.africa or book a demo.
  2. In your AI client, call register_agent with that key and a wallet category: ERC-20 (EVM), SOLANA, or STELLAR. One agent per category.
  3. Call create_agent_spend_policy with max auto-approve amount, and optional daily / monthly caps, for fiat and/or stablecoin.
  4. Check get_agent and get_agent_balance before sending.
  5. Create payouts with agent_create_fiat_order (mobile money, paybill, buy goods, bank) or agent_create_stablecoin_order (USDT/USDC on Celo, Base, BNB, and other supported networks).

Agents auto-approve only inside the policy. Keep limits tight until you trust the workflow.

7. Tools on the server

Once the client is connected, these tools are available:

  • Market data — get_exchange_rates for KES, UGX, and NGN against USD.
  • Validation — validate_phone_number, validate_bank_account.
  • Orders — create_order, confirm_order, get_order_status.
  • Agents — register_agent, get_agent, get_agent_balance, create_agent_spend_policy.
  • Agent payouts — agent_create_fiat_order, agent_create_stablecoin_order, get_agent_fiat_order_status.

REST remains available at docs.pretium.africa if you want the same rails without MCP.

Ready to let agents pay?

Add the Pretium MCP server to your AI client, then register an agent with a spend policy.

Add to Cursor Book a demo
Pretium

Pay with stablecoins across Africa — wallets, APIs, and AI agents with instant settlement to mobile money and banks.

Get it on Google Play Download on the App Store Coming Soon
Company
  • Home
  • Contact
  • Community
Resources
  • Privacy Policy
  • Terms & Conditions
  • Earn $PRT

Services
  • Buy USDT
  • Buy USDC
Developers
  • Payment API
  • Checkout API
  • Fees & Pricing

AI Agents
  • Agent Tools

© XWIFT, Inc. All Rights Reserved