moolre-mcp
OfficialProvides tools for sending WhatsApp messages, managing templates, and checking message status through the Moolre API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@moolre-mcp check my account balance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
moolre-mcp (Node.js)
MCP server exposing Moolre's API — accounts, transfers, payments, SMS, WhatsApp — as 24 tools an AI agent can call. This is the Node.js port of the original PHP implementation (mcp_php/mcp.php); behavior is a 1:1 match, verified against it directly.
Built on the official @modelcontextprotocol/sdk for protocol handling (JSON-RPC validation, session management, SSE framing) — Moolre-specific logic (the REST client and 24 tool definitions) is the only custom code.
Requirements
Node.js 18 or later (uses the built-in
fetch; developed and tested on Node 22).npm install(pulls in@modelcontextprotocol/sdk).
Related MCP server: M-Pesa MCP Server
Running locally (stdio — for MCP clients like Claude Code, Cursor)
node mcp.jsWhen run with a plain node mcp.js and no PORT env var, this reads/writes newline-delimited JSON-RPC over stdin/stdout — the shape an MCP client expects when it spawns the server as a subprocess, e.g. "command": "node", "args": ["/path/to/mcp.js"] in the client's MCP config. See CURSOR_SETUP.md / AGENT_SETUP.md for full config examples.
Running as a hosted HTTP server
PORT=3000 node mcp.jsSetting PORT (which most Node hosts — Render, Railway, Fly.io, etc. — inject automatically) switches this to the Streamable HTTP transport: a single endpoint handling
POST— JSON-RPC messages (responds as plain JSON, or as an SSE-framed event if the client sendsAccept: text/event-stream)GET— optional standalone SSE stream (used for server-initiated messages; this server has none to push, so it opens and immediately closes the stream — enough to satisfy clients that check for SSE support)DELETE— explicit session termination
Session IDs are issued on initialize via the Mcp-Session-Id response header (handled by the SDK's StreamableHTTPServerTransport), and required on every subsequent request via the same header. We keep one transport (and one connected MCP Server instance) per session in an in-memory Map — if you ever run multiple instances behind a load balancer without sticky sessions, session lookups will fail against the wrong instance. For a single hosted instance this isn't a concern.
To force HTTP mode without a PORT (rare), set MCP_TRANSPORT=http instead (defaults to port 3000).
Environment variables
Variable | Purpose | Used by |
| Your Moolre username | every endpoint |
| Private API key | account/transfer/payment/list_transactions endpoints |
| Public API key |
|
| VASKEY for SMS endpoints |
|
| VASKEY for WhatsApp endpoints |
|
| Your Moolre wallet account number | most endpoints (not |
All of these are fallbacks only — if a tool call explicitly supplies headers or accountnumber in its arguments, that always takes precedence over the environment.
The single header Moolre actually receives is always X-API-VASKEY — the two env vars just let the server pick the right value automatically depending on which service (SMS vs WhatsApp) the tool being called talks to.
Project structure
mcp.js— REST client (callRest), the MCPServerwiring (tools/list/tools/callhandlers), and both transports (stdio viaStdioServerTransport, HTTP viaStreamableHTTPServerTransport+ a thin session-routing layer)tools.js— the 24 tool schemas and their REST-call configuration (method, path, defaulttype, credential group)
Testing
# stdio
printf '%s\n%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
| node mcp.js
# HTTP
PORT=3000 node mcp.js &
curl -s -i -X POST http://127.0.0.1:3000/ \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'Note: the SDK validates requests against the real MCP schema, so initialize needs a proper clientInfo/capabilities payload (real MCP clients already send this) — unlike the earlier hand-rolled version, bare {"params":{}} won't pass validation.
Available Tools
24 toolsaccount_statusB
Check a Moolre wallet's balance and status.
Inputs: accountnumber (required), headers.
approve_sender_idA
POST https://api.moolre.com/open/sms/status (type 6) — Approve or reject Sender IDs (admin). Requires X-API-VASKEY.
Inputs: senderids (required), type, headers.
create_accountC
Create a new Moolre business wallet/account.
Inputs: currency (required), accountname (required), api, headers, +2 more.
create_bank_account_numberC
Generate a permanent virtual bank account number linked to your wallet/account for secure payments.
Inputs: uref (required), email (required), phone (required), currency (required), +5 more.
create_payment_idB
Generate a unique permanent payment ID for use in making payments (dial 203paymentid#).
Inputs: name (required), phone (required), currency (required), accountnumber (required), +2 more.
create_sender_idB
POST https://api.moolre.com/open/sms/query (type 3) — Request a new Sender ID. Requires X-API-VASKEY.
Inputs: senderids (required), type, headers.
generate_payment_linkB
Create a hosted Moolre Web POS payment page URL for collecting payments.
Inputs: email (required), amount (required), currency (required), reusable (required), +7 more.
get_whatsapp_templatesB
GET https://api.moolre.com/open/whatsapp/template — Fetch WhatsApp message templates. Requires X-API-VASKEY.
Inputs: headers.
initiate_paymentC
Send a USSD payment request to a payer's phone number for approval.
Inputs: payer (required), amount (required), channel (required), currency (required), +6 more.
initiate_transferC
Send money to a Mobile Money or Bank Account instantly.
Inputs: amount (required), channel (required), currency (required), receiver (required), +5 more.
internal_transferC
Initiate an internal transfer using your Moolre account.
Inputs: amount (required), currency (required), receiver (required), externalref (required), +3 more.
list_sender_idsB
POST https://api.moolre.com/open/sms/status (type 7) — List all registered Sender IDs. Requires X-API-VASKEY.
Inputs: type, headers.
list_transactionsC
This returns a list of transactions linked with a specific account.
Inputs: accountnumber (required), limit, status, enddate, +2 more.
payment_statusA
Check the final status of a previously initiated payment collection.
Inputs: id (required), idtype (required), accountnumber (required), headers.
sender_id_statusB
POST https://api.moolre.com/open/sms/status (type 1) — Check Sender ID approval status. Requires X-API-VASKEY.
Inputs: senderid (required), type, headers.
send_smsC
POST https://api.moolre.com/open/sms/send — Send bulk or single SMS messages. Requires X-API-VASKEY.
Inputs: messages (required), senderid (required), type, headers.
send_sms_getB
GET https://api.moolre.com/open/sms/send — Send a single SMS via query parameters. Requires X-API-VASKEY.
Inputs: message (required), senderid (required), recipient (required), type, +1 more.
send_whatsapp_messageA
POST https://api.moolre.com/open/whatsapp/send — Send batch WhatsApp template messages. Requires X-API-VASKEY.
Inputs: language (required), messages (required), template_name (required), headers.
sms_account_statusC
POST https://api.moolre.com/open/sms/status (type 2) — Check SMS credit balance. Requires X-API-VASKEY.
Inputs: type, headers.
sms_statusB
POST https://api.moolre.com/open/sms/status (type 5) — Check SMS delivery status by reference. Requires X-API-VASKEY.
Inputs: ref (required), type, headers.
transfer_statusA
Check the final status of a previously initiated transfer.
Inputs: id (required), idtype (required), accountnumber (required), headers.
update_accountB
Update a Moolre business wallet/account's details and settlement settings.
Inputs: accountnumber (required), api, headers, callback, +2 more.
validate_nameA
Confirm the name of a Mobile Money or Bank Account holder before initiating a transfer.
Inputs: channel (required), currency (required), receiver (required), accountnumber (required), +2 more.
whatsapp_message_statusB
POST https://api.moolre.com/open/whatsapp/status — Track WhatsApp message delivery by reference. Requires X-API-VASKEY.
Inputs: ref (required), headers.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Most tools have distinct purposes, especially between payments, SMS, and WhatsApp. However, there is potential ambiguity among SMS-related tools (e.g., sender_id_status vs list_sender_ids, and send_sms vs send_sms_get) which could cause confusion. Descriptions help but still could be clearer.
Tool names predominantly follow a verb_noun pattern (e.g., create_account, send_sms), but a few like account_status and sender_id_status use noun_status instead of a verb. This minor inconsistency lowers the score slightly.
With 24 tools covering payments, SMS, and WhatsApp, the count is slightly high but justified by the breadth of functionality. It remains manageable and each tool has a defined role.
Core operations are covered (create, read, update for accounts; send and check for SMS/WhatsApp), but there are notable gaps: no tool to update or delete sender IDs, no cancellation for transfers, and no listing of generated payment IDs or bank accounts. This may cause agent failures in some workflows.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for AI agents: posts, messages and comments on WhatsApp, Instagram, TikTok and Facebook.
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.54MIT
- FlicenseNot gradedqualityDmaintenanceAn experimental MCP server that lets AI agents interact with guarded payment workflows through typed tools, enabling safe agent-assisted payments with M-Pesa and mock Airtel Money.3-

@saperly/mcpofficial
AlicenseNot gradedqualityDmaintenanceMCP server for Saperly that enables AI agents to provision phone numbers, place calls, send SMS, and manage credentials via 36 tools backed by the Saperly API.47 npm3MIT- AlicenseNot gradedqualityDmaintenanceMCP server that exposes Moleculer.js microservice actions as AI tools, enabling AI agents to interact with Moleculer services.5 npm4MIT