Safaricom Daraja MCP Server
by mboya
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DARAJA_ENV | No | Environment: sandbox or production | sandbox |
| PUBLIC_URL | No | HTTPS URL reachable by Safaricom for callbacks (e.g., ngrok URL) | |
| CALLBACK_HOST | No | Host for callback server | 127.0.0.1 |
| CALLBACK_PORT | No | Port for callback server | 3000 |
| DARAJA_PASSKEY | Yes | Passkey from Daraja app | |
| DARAJA_INITIATOR | No | Initiator username for B2C, B2B, balance, status, reversal | |
| DARAJA_SHORTCODE | Yes | Business Short Code (e.g., 174379 for sandbox) | |
| DARAJA_CONSUMER_KEY | Yes | Consumer Key from Daraja app | |
| DARAJA_CONSUMER_SECRET | Yes | Consumer Secret from Daraja app | |
| DARAJA_SECURITY_CREDENTIAL | No | Security credential for initiator |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mboya/daraja-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server