← Index

M-Pesa Daraja

io.github.Mr-Macharia/mpesa-daraja-mcpv0.1.6Other

Safaricom M-Pesa Daraja tools: STK Push, C2B, B2C, B2B, QR, Ratiba. Sandbox-first, idempotent.

The current version, v0.1.6, was published to the official MCP registry on 2026-10-29. It is distributed as mpesa-daraja-mcp on PyPI, filed under Other by this index, and declares 26 environment variables. Removals and unreachable sources are measured across every server this index tracks, contract drift across the servers that answer in consecutive snapshots; the index's current counts put this record in context.

In-path gate · all MCP tools

Using M-Pesa Daraja in Claude, Cursor, Gemini CLI, Cline, or Zed?

MCP tool contracts can change remotely with no version bump. The mcpindex gate pins each contract and HOLDs the call when it drifts-before your agent acts. Zero credentials. This is not the package install for this server itself (use Install this server for that).

Install the mcpindex gate (one command)

Rewrites your MCP host config so each server launches behind the gate. Inspect first: curl -fsSL https://mcpindex.ai/install.sh | less

uv tool install mcpindex-gate && mcpindex-config-wire
Trust verdict · v1 advisory · method
REVIEWstatus: PARTIALfresh until 2026-11-23 20:32 UTC
screened 2026-10-21tier: scannedgranularity: description-levelsource: registry

Semantic screen found no manipulation pattern in the description. Conformance probe not yet run.

mcpindex.integrity.descriptionpassINFO

evidence“Tool provides M-Pesa Daraja payment functions.”via static_description

Limits of this verdict
  • - Semantic screen only - the deterministic conformance probe has not run on this server
  • - Confidence is reported but not yet calibrated (v1)
  • - Screen reads the tool description, not the live behavior
  • - advisory
  • - registry description only no input schema
  • - screen model 8b
  • - Still current: the description we screened is unchanged, re-checked against the registry
  • - The registry listing (version, packages, links) changed after this screen ran - the description we assessed did not

Semantic screen: an LLM judge reads the tool description for hidden instructions (status PARTIAL). A pass means the description is not lying, not that the tool is safe: a high-capability tool with an honest description still warrants caution. The deterministic conformance probe has not been run on this server yet, so the screen here is semantic-only. Posture: advisory. Confidences are reported but not yet calibrated (calibrated=false at v1). Full verdict history is not shown on this page.

Own this server? Test a description on the public screen → It is a separate check from the verdict above, so the two can differ.

That verdict was true at screening time (snapshot 2026-11-16).

Contracts can change after screening, with no version bump. The gate pins M-Pesa Daraja’s tool contracts on first sight and holds any silent change before your agent acts - the check that keeps being true on Tuesday.

See your first HOLD in 2 minutes →

Related: how to trust an MCP server · screen before install · silent contract drift

Cite this record

People vet a server before wiring it in. One line on your project site or docs answers that with an independent record: screening verdict, registry provenance, contract drift history. It stays current as new screens and drift events land.

Markdown
[Independent trust record for M-Pesa Daraja](https://mcpindex.ai/server/io-github-mr-macharia-mpesa-daraja-mcp) - screening verdict, registry provenance, and contract drift monitoring.
HTML
<a href="https://mcpindex.ai/server/io-github-mr-macharia-mpesa-daraja-mcp">Independent trust record for M-Pesa Daraja</a> - screening verdict, registry provenance, and contract drift monitoring.
Embed this badge

A live verdict badge for your README or listing. It reflects the current screen, links back here, and updates when the verdict does.

Markdown
[![mcpindex](https://mcpindex.ai/api/v1/badge/io-github-mr-macharia-mpesa-daraja-mcp)](https://mcpindex.ai/server/io-github-mr-macharia-mpesa-daraja-mcp)
HTML
<a href="https://mcpindex.ai/server/io-github-mr-macharia-mpesa-daraja-mcp"><img src="https://mcpindex.ai/api/v1/badge/io-github-mr-macharia-mpesa-daraja-mcp" alt="mcpindex verdict" height="20" /></a>
Environment variables
DARAJA_CONSUMER_KEY
requiredsecret

Daraja app Consumer Key

DARAJA_CONSUMER_SECRET
requiredsecret

Daraja app Consumer Secret

DARAJA_ENV

sandbox (default) or production

DARAJA_SHORTCODE

Paybill / store number (174379 in sandbox)

DARAJA_PASSKEY
secret

M-Pesa Express passkey (STK Push)

DARAJA_INITIATOR_NAME

API operator username (B2C, B2B, status, balance, reversal)

DARAJA_SECURITY_CREDENTIAL
secret

Encrypted initiator password

DARAJA_CALLBACK_BASE_URL

Public HTTPS base for callback URLs

DARAJA_CALLBACK_LISTEN

host:port for the built-in callback receiver

DARAJA_CALLBACK_TOKEN
secret

16+ random characters; secret path for callbacks

DARAJA_TOOLSETS

Comma list: stk,c2b,payouts,ops,qr,ratiba,billmanager

DARAJA_READ_ONLY

true hides every tool that moves money or writes

DARAJA_APPROVAL_THRESHOLD

Payouts above this many shillings need approval in the chat

DARAJA_ALLOWED_RECIPIENTS

Comma list of phones/shortcodes that payouts may go to

DARAJA_ALLOW_LIVE_MONEY_MOVEMENT

true to allow production charges and payouts

DARAJA_INITIATOR_PASSWORD
secret

Initiator password, encrypted into SecurityCredential at startup (alternative to DARAJA_SECURITY_CREDENTIAL)

DARAJA_CERT_PATH

Path to Safaricom's public certificate, used with DARAJA_INITIATOR_PASSWORD

DARAJA_STATE_DB

Path of the SQLite file that stores request state and callbacks

DARAJA_OUTPUT_DIR

Directory where generated QR PNGs are saved

DARAJA_CONFIG_DIR

Directory holding the saved config (default: user config dir)

DARAJA_DOTENV

Path of a .env file to load instead of the project one

DARAJA_MCP_TOKEN
secret

Bearer token for HTTP mode (32+ random characters)

DARAJA_MCP_HOST

HTTP mode bind address (default 127.0.0.1)

DARAJA_MCP_PORT

HTTP mode port (default 8000)

DARAJA_FORWARD_URL

Your app's URL: every callback is POSTed on to it, HMAC-signed

DARAJA_FORWARD_SECRET
secret

HMAC secret for forwarded callbacks (16+ characters)

MCP quality score · maturity, not trust · methodology
freshness
25
completeness
15
installability
25
documentation
15
stability
5
Alternatives in Other