What does the Mpesa Daraja MCP Server do?
It generates OAuth access tokens for the Safaricom Mpesa Daraja API, handling authentication so you can make further API calls.
@jameskanyiri
Basic information
No overview available yet
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mpesa_mcp_server": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
A Python-based server that implements the Mpesa Daraja API functionality using FastMCP. It provides a simple interface to interact with Safaricom's Mpesa Daraja API, starting with OAuth access token generation.
pip install -r requirements.txt. 2. Create a .env file with your Mpesa Daraja credentials: MPESA_CONSUMER_KEY, MPESA_CONSUMER_SECRET, PASSKEY, BUSINESS_SHORTCODE, and CALLBACK_URL. 3. Start the server by running python server.py. The server then listens for FastMCP client requests.It generates OAuth access tokens for the Safaricom Mpesa Daraja API, handling authentication so you can make further API calls.
Python 3.7 or higher, Mpesa Daraja API credentials (Consumer Key and Secret), and pip.
`MPESA_CONSUMER_KEY`, `MPESA_CONSUMER_SECRET`, `PASSKEY`, `BUSINESS_SHORTCODE`, and `CALLBACK_URL`.
It uses the FastMCP protocol. You start `python server.py` and interact via a FastMCP client.
Credentials are read from a `.env` file in the project root, which is excluded from version control. All API communications use HTTPS.

B2B competitive intelligence, live sales battlecards, 5-axis ICP prospect fit scoring, and tech stack teardowns over MCP and REST with cited public-web evidence.
๐ The fast, Pythonic way to build MCP servers and clients.
A search tool helps dev to solve the naming things problem.

A good sequence diagram can solve almost any communication problem in engineering. Volley lets your agent write them as plain text, with the real request and response payloads on every arrow. It checks its own syntax wi

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student โ in a fraction of the time. What once took a week, now takes one free period.
Comments