Mpesa Daraja MCP Server
@jameskanyiri
Mpesa Daraja MCP Server について
概要はまだありません
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mpesa_mcp_server": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Mpesa Daraja MCP Server?
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.
How to use Mpesa Daraja MCP Server?
- Install Python 3.7+, clone the repository, create and activate a virtual environment, and install dependencies with
pip install -r requirements.txt. 2. Create a.envfile with your Mpesa Daraja credentials:MPESA_CONSUMER_KEY,MPESA_CONSUMER_SECRET,PASSKEY,BUSINESS_SHORTCODE, andCALLBACK_URL. 3. Start the server by runningpython server.py. The server then listens for FastMCP client requests.
Key features of Mpesa Daraja MCP Server
- OAuth token generation for Mpesa Daraja API
- Secure credential management via environment variables
- Comprehensive error handling and logging
- FastMCP-based server implementation
Use cases of Mpesa Daraja MCP Server
- Authenticating with Safaricom's Mpesa Daraja API for subsequent transactions
- Automating access token refresh in M-Pesa integrations
- Building AI-powered M-Pesa applications via the Model Context Protocol
FAQ from Mpesa Daraja MCP Server
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.
What are the prerequisites?
Python 3.7 or higher, Mpesa Daraja API credentials (Consumer Key and Secret), and pip.
What environment variables are required?
MPESA_CONSUMER_KEY, MPESA_CONSUMER_SECRET, PASSKEY, BUSINESS_SHORTCODE, and CALLBACK_URL.
How does the server communicate?
It uses the FastMCP protocol. You start python server.py and interact via a FastMCP client.
Where are credentials stored?
Credentials are read from a .env file in the project root, which is excluded from version control. All API communications use HTTPS.
「その他」の他のコンテンツ
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
ghidraMCP
LaurieWiredMCP Server for Ghidra
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
コメント