pretium-mcp
Pay with stablecoins powered by AI agents.
Install / Use
claude mcp add derrickbundi -- npx -y github:derrickbundi/pretium-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Finance & AccountingSupported Platforms
Tags
Our assessment of pretium-mcp
pretium-mcp scores 74/100 on our quality scale, 105th of 116 Finance & Accounting skills we index.
Its MCP Server is 7.7 KB long, well organised into 21 sections with 9 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 18 days ago, so pretium-mcp is actively maintained.
- Our last check on 2026-09-12 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 75/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-03. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
pretium-mcp compared with similar skills
All 4 of these similar skills score higher than pretium-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| pretium-mcp (this skill)by derrickbundi | 74 | 3 | 18d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 88.6k | 17d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.3k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.7k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.2k | today | CLAUDE.md |
Frequently asked questions
- How do I install pretium-mcp?
- Run
claude mcp add derrickbundi -- npx -y github:derrickbundi/pretium-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does pretium-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is pretium-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It declares no license and scores 75/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is pretium-mcp still maintained?
- The repository was last updated 18 days ago, so pretium-mcp is actively maintained.
Skill content
View source on GitHubPretium MCP
Model Context Protocol (MCP) server for Pretium — pay with stablecoins and let AI agents send fiat across 7+ African markets via M-Pesa, MTN, Airtel Money, paybills, till numbers, and bank transfers.
Overview
pretium-mcp exposes Pretium's payment API as MCP tools. Agents can:
- Register and configure Pretium agents with spend policies
- Send fiat payouts via M-Pesa, MTN, Airtel Money, paybill, buy goods, and bank transfer
- Transfer USDT/USDC on Celo, Base, BNB, Polygon, Arbitrum, Avalanche, Solana, or Stellar
- Run off-ramp orders (stablecoin settlement → fiat disbursement)
- Validate recipients, check balances, poll payout status, and fetch FX rates
Payment rails
| Rail | Markets | |------|---------| | M-Pesa | Kenya (paybill, till, mobile money) | | MTN Mobile Money | Uganda, Ghana, and more | | Airtel Money / AirtelTigo | Kenya, Uganda, Malawi, and more | | Bank transfers | Nigeria, Kenya, Uganda, and more | | Stablecoins | USDT/USDC on Celo, Base, BNB, Polygon, Arbitrum, Avalanche, Solana, Stellar |
Markets (7+)
Pretium operates across 7+ African markets, including Kenya (KES), Uganda (UGX), Nigeria (NGN), Ghana (GHS), Zambia (ZMW), Malawi (MWK), DR Congo (CDF), and more.
MCP agent fiat tools currently support KES, UGX, and NGN. Other corridors are available via the Pretium Payment API and pretium.africa consumer app.
Cursor Directory
Published for discovery on cursor.directory. To install in Cursor:
- Clone this repo and configure
.env(see Quick start) - Run
npm run dev - Add to
~/.cursor/mcp.jsonor.cursor/mcp.json:
{
"mcpServers": {
"pretium-mcp": {
"url": "http://localhost:3000/mcp"
}
}
}
- Restart Cursor — 13 tools should appear under pretium-mcp
Or submit https://github.com/derrickbundi/pretium-mcp at cursor.directory/plugins/new for one-click discovery.
Quick start
Prerequisites
- Node.js 18+
- Pretium partner account with API key
- Access to the Pretium payment API
Partner onboarding
pretium-mcp requires a Pretium partner API key. Tools will not work without one.
- Apply or sign up — pretium.africa
- Complete partner setup in the Pretium partner portal (wallet, currencies, compliance)
- Copy your API key from the partner dashboard (sent as
x-api-keyto the payment API) - Optional — agents: request an agent
secret_keyfrom Pretium to useregister_agent - Documentation — docs.pretium.africa
For integration help: hello@pretium.africa
Install
git clone <repo-url>
cd pretium-mcp
npm install
Run
npm run dev
The server listens on PORT (default 3000).
Transports
This server exposes two MCP transports on the same host. Both serve the same 13 tools — pick the one your client supports.
Streamable HTTP
Stateless MCP over HTTP. Each request is independent; no session ID.
| Method | Path | Role |
|---|---|---|
| POST | /mcp | Send MCP JSON-RPC; response returned in the same HTTP response |
| GET | /mcp | Optional SSE keep-alive (: ping every 15s) — not for tool calls |
Client URL: http://localhost:3000/mcp (use POST for MCP traffic)
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Recommended for Cursor and other clients with Streamable HTTP support.
SSE
Session-based MCP: one long-lived SSE connection plus a message POST endpoint.
| Step | Method | Path | Role |
|---|---|---|---|
| 1 | GET | /sse | Open SSE stream; server issues a sessionId |
| 2 | POST | /messages?sessionId={sessionId} | Send MCP JSON-RPC for that session |
Client pretium-mcp
│ GET /sse │
│────────────────────────────────>│
│ SSE (sessionId in transport) │
│<────────────────────────────────│
│ POST /messages?sessionId=… │
│────────────────────────────────>│
│ MCP result │
│<────────────────────────────────│
The session lives while the /sse connection is open. Disconnecting clears the session.
Connect URL: http://localhost:3000/sse
Messages URL: http://localhost:3000/messages?sessionId=…
Use for MCP clients that only support the SSE transport.
Choosing a transport
| Transport | When to use |
|---|---|
| Streamable HTTP (POST /mcp) | Modern MCP clients; simplest setup |
| SSE (GET /sse + POST /messages) | Legacy or SSE-only MCP clients |
Tools
13 tools are registered across three modules:
| Module | Tools |
|---|---|
| Rates | get_exchange_rates |
| Transactions | create_order, confirm_order, get_order_status, validate_bank_account, validate_phone_number |
| Agent | register_agent, create_agent_spend_policy, get_agent, get_agent_balance, agent_create_fiat_order, get_agent_fiat_order_status, agent_create_stablecoin_order |
For full workflows, field requirements, and currency restrictions, see skills.md.
Example flows
Register an agent and send UGX:
register_agent → create_agent_spend_policy → agent_create_fiat_order → get_agent_fiat_order_status
Off-ramp (crypto → fiat):
create_order → on-chain payment → confirm_order → get_order_status
Discovery (MCP, A2A, OASF, ERC-8004)
This server exposes three machine-readable discovery endpoints:
| Protocol | URL | Purpose |
|----------|-----|---------|
| MCP | POST /mcp | 13 callable payment tools |
| A2A | GET /.well-known/agent-card.json | Agent card with 8 skills |
| OASF | GET /.well-known/oasf-record.json | Open Agentic Schema Framework record |
Static copy for GitHub indexing: oasf-record.json
curl -sS https://mcp.pretium.africa/.well-known/oasf-record.json | python3 -m json.tool | head -30
Project structure
pretium-mcp/
├── index.js # Express + MCP server entrypoint
├── agent-card.js # A2A agent card (/.well-known/agent-card.json)
├── oasf-record.js # OASF record builder (/.well-known/oasf-record.json)
├── oasf-record.json # Static OASF record for GitHub discovery
├── mcp.json # Cursor MCP config (auto-detected by cursor.directory)
├── .mcp.json # Alternate path scanned by cursor.directory
├── .cursor-plugin/
│ └── plugin.json # Cursor plugin manifest
├── tools/
│ ├── rates.js # FX rate tools
│ ├── transactions.js # Orders, validation, status
│ └── agent.js # Agent lifecycle and payouts
├── skills/
│ └── pretium-payments/
│ └── SKILL.md # Agent skill (auto-detected by cursor.directory)
├── skills.md # Full agent capabilities guide
├── README.md
├── SECURITY.md
├── package.json
└── .env # Local config (not committed)
Security
See SECURITY.md for vulnerability reporting (GitHub issues) and self-hosting guidance.
Do not expose this server publicly without authentication — it uses your partner API key for all tool calls.
API
All tools call the Pretium payment API using PRETIUM_API_BASE_URL and authenticate with PRETIUM_API_KEY via the x-api-key header.
Agent endpoints are under /agent/*; standard payment endpoints include /create-order, /confirm-order, /order-status, and /rates.
License
ISC
Related Skills
Agent-Reach
88.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.7k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.2kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
