M-Pesa (Safaricom Daraja API)
Summary
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.
Available Actions(8)
stk_push
Initiate an M-Pesa STK push request to prompt the customer to authorize a payment on their mobile device. Inputs: amount (int), phone_number (int)
generate_qr_code
Generate a QR code for a payment request that customers can scan to make payments. Inputs: merchant_name (str), transaction_reference_no (str), amount (int), transaction_type (Literal["BG", "WA", "PB", "SM", "SB"]), credit_party_identifier (str)
create_source
Create a connector from data source to unstructured server for processing. Inputs: connector_name (str)
create_destination
Create a connector from unstructured server to destination for data storage. Inputs: connector_name (str)
create_workflow
Create a workflow to process data from source connector to destination connector. Inputs: workflow_name (str), source_id (str), destination_id (str)
run_workflow
Execute a workflow. Inputs: workflow_id (str)
get_workflow_details
Get detailed information about a workflow. Inputs: workflow_id (str)
fetch_documents
Fetch documents analyzed during workflow execution. Inputs: None
Recensioni della Community
Nessuna recensione ancora. Sii il primo a recensire!
Accedi per unirti alla conversazione