Skip to content
Weavz
Menu
M-Pesa Daraja

M-Pesa Daraja MCP integration

Initiate Safaricom M-Pesa Daraja STK Push, C2B, B2C, B2B, reversal, status, balance, and callback workflows.

Sign in, add M-Pesa Daraja in Apps, then choose the account your AI can use.

9 tools
1 trigger
Use withChatGPTClaudeClaude CodeCursorCodexMCP clientsSetup guide

Tools

Name
initiate_stk_push

Create an M-Pesa Express STK Push checkout request.

query_stk_push

Query the current status of an M-Pesa Express STK Push request.

register_c2b_urls

Register confirmation and validation callback URLs for C2B payments.

simulate_c2b_payment

Run the Daraja sandbox C2B simulation endpoint. This action is disabled for production credentials.

request_b2c_payment

Initiate a Daraja Business-to-Customer disbursement such as salary, business, or promotional payment.

request_b2b_payment

Initiate a Daraja Business-to-Business payment between shortcodes.

query_transaction_status

Request Daraja transaction status for a transaction ID or originator conversation ID.

query_account_balance

Request the Daraja account balance for a shortcode.

reverse_transaction

Request a Daraja transaction reversal.

Triggers

Name
callback_received

Receive M-Pesa Daraja STK or C2B callback payloads. Public Daraja docs do not define a general HMAC signature for these callbacks.

Quick Start

TypeScript
import { WeavzClient } from '@weavz-io/sdk'

const weavz = new WeavzClient({ apiKey: 'wvz_...' })

const result = await weavz.actions.execute('mpesa-daraja', 'initiate_stk_push', {
  workspaceId: '550e8400-e29b-41d4-a716-446655440000',
  integrationAlias: 'mpesa-daraja',
  input: { /* ... */ },
})

Related Integrations

Works well with

Frequently Asked Questions

Is there a M-Pesa Daraja MCP server through Weavz?

Yes. Add the M-Pesa Daraja integration to a Weavz workspace, enable the actions you need and connect any required account. Weavz provides the workspace MCP endpoint in Tool Mode or Code Mode. The catalog currently lists 9 M-Pesa Daraja actions.

What can an AI agent do with M-Pesa Daraja?

Available actions include Initiate STK Push, Query STK Push, Register C2B URLs, Simulate C2B Payment, Request B2C Payment, and more. Your workspace exposes only the actions you enable. The agent also needs the intended account access and any required input values.

How do I connect M-Pesa Daraja to Claude or ChatGPT?

Use a compatible remote MCP client, add the Weavz connector and choose a workspace. Add M-Pesa Daraja, connect the required account and review the enabled actions. Client availability and account requirements vary; adding the connector does not authorize every app automatically.

Can I use M-Pesa Daraja through an API or SDK?

Yes, supported actions can run through the Weavz REST API, TypeScript SDK or Python SDK. Configure a workspace and the required connections, use scoped access, and pass the intended end-user context when acting for a customer.

What authentication does M-Pesa Daraja require?

The catalog lists custom credentials for M-Pesa Daraja. Use Hosted Connect to authorize the intended account. Required permissions, provider app access and available connection methods depend on the integration.

How do I review sensitive M-Pesa Daraja actions?

Limit enabled actions, scope credentials to the intended user and configure Human Gates for the operations that need review. A matching policy can pause a send, record change or other sensitive action for an approver before execution.

What limits or costs apply to M-Pesa Daraja?

Weavz plan limits apply to the actions and resources you use. The external provider may also require an account, a paid plan, API credits or specific permissions, and may enforce its own rate limits. Check current Weavz pricing and the provider’s terms before rollout.

What M-Pesa Daraja triggers are available?

The catalog lists 1 triggers, including Callback Received. Configure the trigger and your event handler before using incoming events to start work.

Connect M-Pesa Daraja in minutes

Get 20,000 free action executions every month. No credit card required.