Model Context Protocol
Let agents work across your MoPay account
The MoPay MCP server gives AI agents controlled access to payment links, sandbox payments, subscriptions, transactions, and revenue reporting through one hosted endpoint.
Hosted endpoint
Streamable HTTP MCP
POST https://mopay.co.ls/api/mcp
Authentication: OAuth 2.1 + browser consent
Create and update payment links across your projects
Monitor transactions, payment-link activity, and revenue
Create sandbox M-Pesa and EcoCash payment sessions
Create, list, and cancel manual subscriptions
Built for permissioned platform automation
01
Connect your MCP client
Point it at the hosted MoPay endpoint. No project API key needs to be copied into agent secrets.
02
Sign in and approve
MoPay opens in your browser, uses your existing session or asks you to sign in, then shows every requested permission.
03
Automate across MoPay
One revocable connection works across all projects you own or have joined, with tools limited by consent.
Scoped by permission
Only approved tools appear, and every action stays within projects you can access.
Works with docs
Use MoPay docs for API details and the MCP for agent actions.
Sandbox first
Use simulated payments before connecting real payment workflows.