mpesa-daraja SKILL.md skillA
mpesa-daraja from mr-macharia/mpesa-daraja-skills-and-mcp is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/mpesa-daraja@git:20261027.a2d753dPins git:20261027.a2d753d in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mr-macharia/mpesa-daraja-skills-and-mcp
- Path
skills/mpesa-daraja/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261027.a2d753d, committed Oct 27, 2026
- First version recorded
- Oct 20, 2026
- Size
- 5,692 bytes
- Repository stars
- 3
- License
- MIT
Entry point for Safaricom M-Pesa Daraja API work. Explains the async request/callback model, base URLs and the conventions every API shares, validates request bodies with a script, and routes to the specific daraja-* skill. Use whenever the user mentions M-Pesa, Mpesa, Daraja, Safaricom payments, Lipa na M-Pesa, Paybill, Till/Buy Goods, or Kenyan mobile-money integration.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# M-Pesa Daraja Daraja is Safaricom's REST gateway to M-Pesa. Every API follows the same three steps: 1. **Get a token**: an OAuth client-credentials request returns a bearer token that is valid for about 1 hour → `daraja-auth` 2. **Send the request**: the synchronous reply `ResponseCode: "0"` means **accepted for processing**. It does **not** mean the payment succeeded. 3. **Receive the result asynchronously** on your CallBackURL or ResultURL → `daraja-callbacks` **Rule #1: never mark money as moved based on the synchronous response.** Only the callback, `stk_query` or `transaction_status` can confirm it. | Environment | Base URL | |---|---| | Sandbox | `https://sandbox.safaricom.co.ke` | | Production | `https://api.safaricom.co.ke` | Credentials, passkeys and certificates only work in the environment they were issued for. Mixing environments is the most common cause of errors. ## Route to the right skill | Goal | Skill | |---|---| | Tokens, 401s, caching | `daraja-auth` | | Charge a customer via a phone prompt (M-Pesa Express / STK Push) | `daraja-stk-push` | | Receive Paybill/Till payments the customer starts; Pull missed transactions | `daraja-c2b` | …
Read the whole file at its exact version.
How to install
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/mpesa-daraja@sha256:4b2d0a8cccb18b60The line at the top of this page pins the label git:20261027.a2d753d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_f3buaoqt3sv4htxq)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Oct 20, 2026 and Oct 27, 2026, about one every 2 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261027.a2d753d latest | 2026-10-27 | a2d753d | 5,692 B | A | view · diff |
| git:20261027.d560781 | 2026-10-27 | d560781 | 5,611 B | A | view · diff |
| git:20261027.b5b270e | 2026-10-27 | b5b270e | 5,158 B | A | view · diff |
| git:20261027.7be656f | 2026-10-27 | 7be656f | 4,932 B | A | view · diff |
| git:20261020.f2e8fad | 2026-10-20 | f2e8fad | 4,936 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5692 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mr-macharia/mpesa-daraja-skills-and-mcp · 3 stars · license MIT · pushed 2026-11-03 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_f3buaoqt3sv4htxq GET https://markdownregistry.com/api/v1/resolve?ref=mr-macharia/mpesa-daraja-skills-and-mcp/mpesa-daraja GET https://markdownregistry.com/api/v1/blob/4b2d0a8cccb18b609af5355082486938094eb4d805ab4b11c3bc10973beaef06
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.