jami-mcp
You can use jami-mcp to manage JamiDev payment operations from an MCP client.
Create and monitor ETB checkouts for products or custom amounts via Telebirr, M-Pesa, or CBE Birr, using direct phone prompts or payment links.
Check checkout status or wait for completion, including failure reasons.
Create, update, fetch, and list products.
List orders, filter by status, and get withdrawable balance/eligibility.
Quote withdrawal fees/tax/net offline and list/get existing withdrawals; the create-withdrawal tool is not present in this schema (README says it is opt-in).
Verify webhook signatures and generate signed test webhook deliveries, optionally POSTing them to a local handler.
Search and read the live JamiDev docs without a token.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jami-mcp Create a 1,237 birr Telebirr checkout for order #1042 and wait."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jami-mcp
The official Model Context Protocol server for JamiDev, the SDK for Jami's creator payouts. Connect it to Claude, Cursor, VS Code, Codex or any MCP client and your agent can create ETB checkouts, watch them settle, reconcile orders, preview and send payouts, debug webhooks, and read the Jami docs while it writes your integration. Payments are processed by ArifPay.
Built on the official jami-sdk, so every tool
behaves exactly like the SDK and the REST API.
npx -y jami-mcpQuick start
Get a token: Jami dashboard → JamiDev → Developer → API Tokens. Start with a sandbox org — its
jamidev_test_…token moves no real money.Add the server to your client (below), with the token as
JAMI_TOKEN.Ask: "Charge buyer@example.com 1,237 birr for order #1042 on Telebirr, phone 251900000001, and wait for it."
No token yet? The server still runs. The docs, withdrawal-quote and webhook tools work without one, so you can start building right away.
Claude Code
claude mcp add jami -e JAMI_TOKEN=jamidev_test_xxx -- npx -y jami-mcpClaude Desktop · Cursor · Windsurf
Add to claude_desktop_config.json, ~/.cursor/mcp.json or ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"jami": {
"command": "npx",
"args": ["-y", "jami-mcp"],
"env": { "JAMI_TOKEN": "jamidev_test_xxx" }
}
}
}VS Code
.vscode/mcp.json — VS Code prompts for the token and stores it securely:
{
"inputs": [
{ "type": "promptString", "id": "jami-token", "description": "JamiDev API token", "password": true }
],
"servers": {
"jami": {
"type": "stdio",
"command": "npx",
"args": ["-y", "jami-mcp"],
"env": { "JAMI_TOKEN": "${input:jami-token}" }
}
}
}Codex
~/.codex/config.toml:
[mcp_servers.jami]
command = "npx"
args = ["-y", "jami-mcp"]
env = { JAMI_TOKEN = "jamidev_test_xxx" }Related MCP server: app.wishpool/usa-payments-mcp
Tools
Tool | What it does | Needs token |
| Charge a product ( | ✓ |
| Create or edit products; each comes back with its public page and | ✓ |
| Read the catalog. | ✓ |
| Check a session once, with the failure reason when it expired. | ✓ |
| Wait for the buyer to finish, with progress updates. Never hangs: returns | ✓ |
| Orders, newest first, paginated and filterable by status. | ✓ |
| Withdrawable earnings and whether the org can withdraw. | ✓ |
| Fee, tax and net for an amount, plus auto-pay and cap checks. Offline. | — |
| Pay out to Telebirr, M-Pesa or CBE Birr. Opt-in (see Safety). | ✓ |
| Track payouts. | ✓ |
| Check a captured delivery's signature, and why it fails. | — |
| Build a correctly signed test event, and optionally POST it to your local handler. | — |
| Search and read the live docs at dev.jami.bio. | — |
Every tool returns a readable markdown summary plus typed structuredContent. Pass
response_format: "json" for the raw payload. Money is always integer santim, and
every parameter that takes money ends in _minor: amount_minor: 15000 = 150.00 ETB.
Prompts: integrate_jami (build a full integration in your stack), go_live_checklist,
debug_payment. Resource: jami://reference — fees, limits, sandbox numbers, failure
codes and webhook rules in one page.
Safety
The defaults are set so an agent can't move money by accident.
Withdrawals are off until you start the server with
--enable-withdrawals(orJAMI_ENABLE_WITHDRAWALS=true). When they're on, clients that support elicitation ask you to confirm each payout, and every payout needs anidempotency_key, so a retry can never pay twice. Sandbox tokens are refused before any request is made.--read-onlyregisters only the tools that read data. Use it for reporting agents.Live mode is announced. With a
jamidev_live_token, the server tells the agent that checkouts charge real buyers and to confirm first.Tokens stay in the environment. They never appear in tool output.
Options
--http Streamable HTTP on POST /mcp instead of stdio
--port <n> HTTP port (default 3333)
--host <addr> HTTP bind address (default 127.0.0.1)
--read-only Only read tools
--enable-withdrawals Register jami_create_withdrawal
--base-url <url> Override the API base (default https://jami.bio/api/jamidev)
--docs-url <url> Override the docs origin (default https://dev.jami.bio)Env | Purpose |
|
|
| Default secret for the webhook tools |
| Same as the flags |
Remote (HTTP) mode
npx -y jami-mcp --http --port 3333
# → http://127.0.0.1:3333/mcp (health check: /healthz)The HTTP server is stateless, so any number of clients can share one process. Without
JAMI_TOKEN, each request authenticates with its own Authorization: Bearer jamidev_…
header, which makes one deployment safe to share across teams. On loopback it rejects
foreign Host headers (DNS-rebinding protection). In HTTP mode, jami_create_test_webhook
never sends requests; it only returns the signed payload and a curl command.
Embedding
import { createJamiServer } from 'jami-mcp';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
const server = createJamiServer({ token: process.env.JAMI_TOKEN, docsUrl: 'https://dev.jami.bio', readOnly: true, withdrawals: false });
await server.connect(new StdioServerTransport());Development
npm install
npm test # in-memory MCP client against a mocked API
npm run build
npm run inspect # opens the MCP Inspector on dist/index.jsFull guide: dev.jami.bio/docs/mcp · Support: support@jami.bio
MIT © Jami
Available Tools
16 toolsjami_create_checkoutCreate checkoutA
Start a checkout and get back how the buyer pays — either for one of the organization's published products, or for ANY amount with no product ("charge this buyer 1,237 ETB for order #1042").
Buyers pay in ETB via Telebirr, M-Pesa or CBE Birr; nothing is added on top. In LIVE mode a "direct" checkout pushes a real payment prompt to the buyer's phone, so only call this when the user actually wants to charge someone.
What to charge:
Product: product_id (p_… token or 24-char id, must be published). amount_minor only for flexible-price (pwyw) products.
Custom amount: omit product_id, pass amount_minor (≥ 100 = 1.00 ETB) and description (what the buyer sees, ≤ 120 chars).
How to collect it:
Direct push: pass gateway + customer_email + customer_phone. The prompt goes straight to the buyer's phone (kind 'direct').
Payment link: omit gateway. You get a Jami link in checkout_url (kind 'redirect') to send the buyer by SMS/Telegram/email; they pick the method and enter their details there, and can retry a failed attempt until the link expires (30 min). customer_* is optional.
Args:
customer_email / customer_phone: required for a direct push; optional for a link. Phone like "251911223344" or "0911223344". Sandbox magic numbers: 251900000001 = instant success, 251900000002 = instant failure.
gateway: 'telebirr' | 'mpesa' | 'cbe'. Omit for a payment link.
amount_minor: integer santim. 123700 = 1,237.00 ETB.
metadata: optional string map (e.g. { "orderId": "1042" }) stored on the order and sent back on order webhooks.
Returns: { session_id, kind: 'free' | 'redirect' | 'direct', checkout_url, order_id }.
free: completed instantly; order_id is set.
redirect: send the buyer to checkout_url.
direct: the buyer confirms on their phone; call jami_wait_for_checkout next.
Inputs: gateway, metadata, product_id, description, +8 more. Returns: kind, order_id, session_id, checkout_url
jami_create_productCreate productA
Create a product the organization sells, and get its public Jami page (url) and p_… token. Published by default, so the page and checkouts work immediately.
Pricing (can't be changed after creation; the amounts can):
fixed: amount_minor is the price, e.g. 250000 = 2,500.00 ETB.
pwyw (flexible): minimum_amount_minor; each checkout then sends its own amount.
free: no price.
Args: title (1–120 chars), pricing_model, amount_minor / minimum_amount_minor, description?, status? ('published' | 'draft').
Returns: { product_id, token, url, title, status, pricing_model, price }. To charge for it, call jami_create_checkout with product_id = token (omit gateway for a payment link).
Inputs: title (required), pricing_model (required), status, description, +3 more. Returns: url, price, title, token, +5 more
jami_create_test_webhookCreate test webhookA
Build a correctly signed JamiDev webhook delivery for testing a handler locally — no real event needed.
Args:
type: 'order.created' | 'order.completed' | 'benefit.granted' | 'checkout.session.expired' | 'withdrawal.paid' | 'withdrawal.failed'.
secret: signing secret (defaults to JAMI_WEBHOOK_SECRET; any string works for a local test).
data: optional fields to merge over the realistic sample payload.
livemode: default false (sandbox).
target_url: optional. When set, the delivery is POSTed there (e.g. "http://localhost:3000/webhooks/jami") and the response status is reported.
Returns: { payload, signature, headers, curl } — the exact body and X-JamiDev-Signature to send, plus delivery_status when target_url is set. Handlers must verify the RAW body and reply 2xx within 10 seconds.
Inputs: type (required), data, secret, livemode, +1 more. Returns: curl, headers, payload, signature, +2 more
jami_get_balanceGet balanceARead-onlyIdempotent
Get the organization's withdrawable JamiDev earnings — the ceiling on what jami_create_withdrawal can pay out.
Returns: { balance_minor, balance, eligible, currency }. eligible is false (and balance 0) when the org can't withdraw yet: it's a sandbox org, Developer Mode is off, or KYC isn't approved. The money itself sits in the owner's unified Jami wallet, so a withdrawal can still fail with 402 if that wallet was spent elsewhere.
Inputs: response_format. Returns: balance, currency, eligible, balance_minor
jami_get_checkout_statusGet checkout statusARead-onlyIdempotent
Check a checkout session once. The server reconciles with the payment provider on every call, so this resolves even when webhooks are late.
Args:
session_id: from jami_create_checkout.
Returns: { session_id, status: 'open' | 'completed' | 'expired', order_id, order_status, amount_minor, amount, expires_at, failure }. When status is 'expired', failure.code explains why: payment_rejected · payment_failed · payment_canceled · payment_timed_out · initiate_failed · session_expired.
Use jami_wait_for_checkout instead if you want to block until the buyer finishes.
Inputs: session_id (required), response_format. Returns: amount, status, failure, order_id, +4 more
jami_get_productGet productARead-onlyIdempotent
Fetch one product by its p_… token or id: price, status, and its public page url.
Inputs: product_id (required), response_format. Returns: url, price, title, token, +5 more
jami_get_withdrawalGet withdrawalARead-onlyIdempotent
Fetch one withdrawal by id to track it from pending → processing → completed (or rejected).
Args:
withdrawal_id: from jami_create_withdrawal or jami_list_withdrawals.
Inputs: withdrawal_id (required), response_format. Returns: net, note, amount, status, +9 more
jami_list_ordersList ordersARead-onlyIdempotent
List the organization's orders, newest first, one page at a time.
Args:
status: 'paid' | 'pending' | 'failed' (optional filter).
page: 1-based page (default 1).
limit: 1–100 per page (default 20).
Returns: { orders: [{ order_id, status, amount_minor, amount, product: { id, title }, customer: { id, email, name }, paid_at, created_at, metadata }], total, page, limit, count, has_more, next_page }.
To total revenue or find a specific buyer, page through with next_page until has_more is false. Amounts are integer santim (100 = 1.00 ETB); this is what buyers paid, before any withdrawal fee.
Inputs: page, limit, status, response_format. Returns: page, count, limit, total, +3 more
jami_list_productsList productsARead-onlyIdempotent
List the organization's products, newest first.
Args: status ('published' | 'draft' | 'archived', optional), page (default 1), limit 1–100 (default 20).
Returns: { products: [{ product_id, token, url, title, status, pricing_model, price }], total, page, limit, count, has_more, next_page }.
Inputs: page, limit, status, response_format. Returns: page, count, limit, total, +3 more
jami_list_withdrawalsList withdrawalsARead-onlyIdempotent
List the organization's withdrawals, newest first.
Args:
status: 'pending' | 'reviewing' | 'approved' | 'rejected' | 'processing' | 'completed' (optional).
page (default 1), limit 1–100 (default 20).
Returns: { withdrawals: [...], total, page, limit, count, has_more, next_page }.
Inputs: page, limit, status, response_format. Returns: page, count, limit, total, +3 more
jami_quote_withdrawalQuote withdrawalARead-onlyIdempotent
Preview what reaches the destination for a withdrawal — offline, no API call, works without a token.
The JamiDev usage fee (7% unless Jami set a custom rate on the account) and any government tax are cut FROM the amount: you withdraw amount, the account receives net. Rounding is round-half-up per component. The server is authoritative; the real breakdown comes back on the withdrawal.
Args:
amount_minor: gross santim (min 10000 = 100.00 ETB).
fee_rate / tax_rate: optional overrides (0–1) if you know the account's real rates.
Returns the breakdown plus whether the amount auto-pays (≤ 10,000 ETB) or goes to manual review, and the per-org 100,000 ETB rolling-24h cap.
Inputs: amount_minor (required), fee_rate, tax_rate, response_format. Returns: fee_rate, tax_rate, fee_minor, net_minor, +5 more
jami_read_docRead Jami doc pageARead-onlyIdempotent
Read one JamiDev docs page as markdown, with every code sample intact.
Args:
path: a docs path from jami_search_docs, e.g. "/docs/webhooks", "api/checkout", or a full URL. Use "/docs" for the overview.
offset: character offset for long pages (default 0); the result says where to continue.
Returns: { title, url, markdown, offset, next_offset? }.
Inputs: path (required), offset. Returns: url, title, offset, markdown, +1 more
jami_search_docsSearch Jami docsARead-onlyIdempotent
Search the official JamiDev developer docs (https://dev.jami.bio/docs) — the source of truth for integrating Jami payments. Works without an API token.
Use this before writing integration code: SDK usage, REST endpoints, webhooks and signature checks, sandbox magic numbers, Sign in with Jami (OAuth/OIDC), the wallet API, the browser storefront, fees and limits.
Args:
query: what you need, e.g. "verify webhook signature express", "pay what you want amount", "withdrawal fee".
limit: 1–10 results (default 5).
Returns: { results: [{ title, path, url, snippet }] }. Read a full page with jami_read_doc(path).
Inputs: query (required), limit. Returns: results
jami_update_productUpdate productAIdempotent
Change a product's title, description, status or price amount. The pricing model itself is locked.
Args: product_id (p_… token or id), and any of: title, description, status ('published' | 'draft' | 'archived' — archived stops new sales), amount_minor (fixed price), minimum_amount_minor (flexible floor).
Inputs: product_id (required), title, status, description, +3 more. Returns: url, price, title, token, +5 more
jami_verify_webhookVerify webhookARead-onlyIdempotent
Check whether a webhook delivery is genuine — the same timing-safe HMAC check and replay guard the SDK runs. Use it to debug "signature mismatch" errors in a handler.
Args:
payload: the RAW request body exactly as received (not re-serialized JSON — whitespace matters).
signature: the X-JamiDev-Signature header, "t=,v1=".
secret: the subscription's webhook secret (defaults to JAMI_WEBHOOK_SECRET).
tolerance_seconds: max age of the timestamp (default 300). Raise it to check an old captured delivery.
Returns: { valid, reason, event_type, event_id, livemode }. An invalid signature is a normal result (valid: false), not an error.
Inputs: payload (required), signature (required), secret, tolerance_seconds. Returns: valid, reason, event_id, livemode, +1 more
jami_wait_for_checkoutWait for checkoutARead-onlyIdempotent
Poll a checkout session until it's paid or ends, up to timeout_seconds. Reports progress while it waits.
If the buyer hasn't finished when the timeout hits, this returns status 'open' (not an error) — call it again to keep waiting. Sessions expire 30 minutes after creation.
Args:
session_id: from jami_create_checkout.
timeout_seconds: 5–300 (default 90).
interval_seconds: 2–30 between polls (default 3).
Returns the same shape as jami_get_checkout_status.
Inputs: session_id (required), response_format, timeout_seconds, interval_seconds. Returns: amount, status, failure, order_id, +4 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool targets a distinct resource+action, and the trio of checkout tools (create/get_status/wait) is explicitly differentiated in the descriptions ("use jami_wait_for_checkout instead if you want to block"). Product, order, withdrawal, webhook, and docs tools occupy clearly separate niches with no real overlap.
Every tool uses the jami_ prefix followed by a consistent verb_noun pattern (create_checkout, get_product, list_products, verify_webhook, read_doc). No mixed conventions or vague verbs anywhere in the set.
16 tools is well-scoped for a payments platform spanning checkout, products, orders, withdrawals, webhooks, and docs. Each tool earns its place; nothing is redundant padding.
The withdrawal lifecycle is notably incomplete: descriptions reference jami_create_withdrawal ("from jami_create_withdrawal or jami_list_withdrawals") but no such tool is exposed, so agents can quote/get/list withdrawals but never initiate one. Orders also lack a single-get or refund operation, though the core checkout and product CRUD flows are covered.
Related MCP Connectors
Gemmein docs, API reference, error explainers and a live integration check for coding agents.
Directory of APIs, merchants, and tools AI agents can actually use.
Discover, inspect and run 63,000+ agent tools from one balance. Pay per call, no subscriptions.
Agent tools for discovery, payment safety, data extraction, and DeFi.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to create hosted checkouts, charge mobile wallets, query transactions, and process refunds via the JazzCash payment API.573MIT
- AlicenseNot gradedqualityBmaintenanceLets AI agents accept US payments (cards, Apple Pay, Google Pay) via Stripe hosted checkout. Includes tools to create payment links and query payment status.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage PIX and card payments, product catalog and checkout, subscriptions, balances, payouts, refunds, and webhooks through the Korbit API. Money-moving tools are disabled by default and require an explicit environment flag.10 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to add stablecoin checkout, payment links, payment status checks, webhook verification, and webhook-based entitlement logic to applications. It also provides tools for workspace registration, settlement and webhook configuration, paylink creation, and crypto payment status checks.-