DarajaMCP MCP Server

A Model Context Protocol (MCP) server designed to integrate AI applications with Safaricom's Daraja API, enabling seamless interaction with M-Pesa

Local serverstdioPython

What is the DarajaMCP MCP Server?

A Model Context Protocol (MCP) server designed to integrate AI applications with Safaricom's Daraja API, enabling seamless interaction with M-Pesa services.

What it actually does

MCP (Model Context Protocol) servers provide capabilities for LLMs to interact with external systems. MCP servers can provide three main types of capabilities:

Configuration

  • Python 3.12 - Safaricom Daraja API Credentials (Consumer Key and Secret)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
stk_push
generate_qr_code
stk_push_prompt
generate_qr_code_prompt
create_source
create_destination
create_workflow
run_workflow
get_workflow_details
fetch_documents
create_and_run_workflow_prompt

How to install the DarajaMCP MCP Server

{
  "mcpServers": {
    "daraja": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/DarajaMCP",
        "run",
        "main.py"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Python 3.12 - Safaricom Daraja API Credentials (Consumer Key and Secret)

Example prompts to try

  • “Use DarajaMCP to stk push.”
  • “Use DarajaMCP to generate qr code.”
  • “Use DarajaMCP to stk push prompt.”

Frequently asked questions

A Model Context Protocol (MCP) server designed to integrate AI applications with Safaricom's Daraja API, enabling seamless interaction with M-Pesa services. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.