# M-Pesa (Safaricom Daraja API)

> Use this tool when you need to integrate mobile payment capabilities into conversational AI applications, particularly in Kenya, to solve problems like seamless transaction authorization and payment processing. It takes user payment requests as input and outputs transaction status, handling authentication and payment flow through the Safaricom M-Pesa API. Ideal for use cases requiring convenient, in-conversation payment processing without redirecting users to external platforms.

Canonical page: https://skillsregistry.net/skills/jameskanyiri-daraja-mpesa  
JSON: https://api.skillsregistry.net/v1/skills/jameskanyiri-daraja-mpesa

## Description

DarajaMCP provides a bridge to the Safaricom M-Pesa mobile payment API, enabling AI assistants to initiate STK Push transactions directly from conversations. Built on FastMCP, it handles authentication with the Daraja API and manages the complete payment flow, from generating access tokens to processing transaction requests. The implementation is particularly valuable for applications requiring seamless mobile payment integration in Kenya, allowing users to authorize payments on their mobile devices without leaving their conversation with an AI assistant.

## Trust

- **Trust score (0–1):** 0.50
- **Verification tier:** unverified

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** finance
- **Updated:** 2026-04-25

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/jameskanyiri-daraja-mpesa)
- **Repository:** <https://github.com/jameskanyiri/darajamcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "jameskanyiri-daraja-mpesa"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/jameskanyiri-daraja-mpesa` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/jameskanyiri-daraja-mpesa/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
