Skip to main content

momo-mcp

CI License: MIT

MTN Mobile Money sandbox tools for AI agents, over MCP.

momo-mcp lets Claude Code, Cursor, Codex and other MCP clients test MTN MoMo flows without reading a 200-page API spec first. It runs in demo mode by default: no credentials, no network calls, no real money.

Ask your agent:

Create a sandbox collection of 100 EUR for +237650000000, then check its status.

The agent gets a reference id, a PENDING status, and a clear next step. The first status check moves the demo transaction to SUCCESSFUL so the full flow is visible without any network call.

Why

AI agents are good at calling tools, but payment APIs are still awkward: authentication, product-specific endpoints, reference ids, status polling and sandbox setup. momo-mcp exposes a small, safe tool surface so an agent can:

  • inspect the active product and configuration;
  • list MoMo products and capabilities;
  • read a balance;
  • check whether a number is active;
  • create a sandbox collection request;
  • read a transaction status.

It is built on top of the published mtn-momo-collection SDK.

Quick start

git clone https://github.com/G2on61/momo-mcp.git
cd momo-mcp
uv run momo-mcp

The server speaks MCP over stdio. It starts in demo mode.

Claude Desktop / Cursor

Add this to your MCP client configuration:

{
  "mcpServers": {
    "momo": {
      "command": "uv",
      "args": ["run", "--directory", "/absolute/path/to/momo-mcp", "momo-mcp"],
      "env": {
        "MOMO_MCP_MODE": "demo"
      }
    }
  }
}

After the package is published to PyPI, the command can be shortened to:

{
  "mcpServers": {
    "momo": {
      "command": "uvx",
      "args": ["momo-mcp"],
      "env": {
        "MOMO_MCP_MODE": "demo"
      }
    }
  }
}

Tools

Tool What it does
momo_get_config Shows mode, product and whether live credentials are present.
momo_list_products Lists collections, disbursements and remittances capabilities.
momo_get_balance Reads the active product balance.
momo_check_msisdn Checks whether a number is active.
momo_request_collection Creates a collection request and returns a reference id.
momo_get_transaction_status Reads a collection, disbursement or remittance status.
momo_list_demo_transactions Lists transactions created in the current demo process.

Demo mode vs live sandbox

Demo mode is the default and is intentionally fake:

MOMO_MCP_MODE=demo uv run momo-mcp

Live sandbox mode calls the MTN sandbox API. You need a subscription key and sandbox API user/key:

export MOMO_MCP_MODE=live
export MOMO_PRODUCT=collections
export MOMO_SUBSCRIPTION_KEY="..."
export MOMO_API_USER="..."
export MOMO_API_KEY="..."
export MOMO_TARGET_ENVIRONMENT="sandbox"
uv run momo-mcp

Live mode only accepts MOMO_TARGET_ENVIRONMENT=sandbox. Any other target is refused unless MOMO_MCP_ALLOW_PRODUCTION=1 is set explicitly. Collection amounts are capped by MOMO_MCP_MAX_AMOUNT, which defaults to 1000.00.

Optional variables:

Variable Default Description
MOMO_PRODUCT collections collections, disbursements or remittances.
MOMO_TARGET_ENVIRONMENT sandbox MTN target environment.
MOMO_BASE_URL MTN sandbox URL Override the API base URL.
MOMO_TIMEOUT 30 Request timeout in seconds.
MOMO_MAX_RETRIES 2 Retry count for transient failures.
MOMO_MCP_MAX_AMOUNT 1000.00 Maximum collection amount accepted by this server.
MOMO_MCP_ALLOW_PRODUCTION unset Must be 1 to allow a non-sandbox target environment.

Security

  • Demo mode is the default. It never contacts MTN and never moves money.
  • Live mode refuses non-sandbox targets unless MOMO_MCP_ALLOW_PRODUCTION=1.
  • Collection amounts are capped by MOMO_MCP_MAX_AMOUNT (default 1000.00).
  • Secrets are read from environment variables and are never returned by tools.
  • momo_get_config reports whether credentials exist, not their values.
  • If a live collection request loses its response, the tool returns the original reference_id with status: UNKNOWN and tells the agent to verify that reference id instead of creating a second request.
  • A rejected request returns status: FAILED and must not be polled.
  • Do not point this server at production without an explicit review of limits, approvals, idempotency and audit logging.

Development

uv sync --extra dev
uv run ruff check .
uv run mypy
uv run pytest

License

MIT

Metadata

Release files for momo-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for momo-mcp 0.1.0
File Size Uploaded Provenance Actions
momo_mcp-0.1.0.tar.gz 9.7 kB With provenance Details for momo_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for momo-mcp 0.1.0
File Interpreter ABI Platform Actions
momo_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for momo_mcp-0.1.0-py3-none-any.whl

Total release size: 18.7 kB

Release files / momo_mcp-0.1.0.tar.gz

Download URL momo_mcp-0.1.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a37f78a3ae3cc86f10c613ba7dfcf54bf1b8b8ca29c36775666988f7cde95e7f
BLAKE2b-256 checksum
How to use checksums
e681046394bb847b21d18fe7525400089b035b70600d867aadf25da4522a147e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / momo_mcp-0.1.0-py3-none-any.whl

Download URL momo_mcp-0.1.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2991e77e2d42c1dadf331631235090c9f325c8bbfaf09501d1b4e34ae353249d
BLAKE2b-256 checksum
How to use checksums
300a4463132858901aa21f10b5ec0a5528cce62238e63519f0b730163ba260a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for momo-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for momo_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page