Skip to main content
Glama
kirimi-mcp
by kiriminow

kirimi-mcp

MCP server for the Kirimi WhatsApp API. Exposes Kirimi as tools so AI agents can send WhatsApp messages, OTP, broadcasts and official WABA templates.

Works with any MCP client: Claude Desktop, Claude Code, Cursor, and others.

Setup

Kirimi authenticates with a user_code + secret pair sent in the request body. There is no API key and no bearer token. Get both from the Credentials page in the Kirimi dashboard, and your device ID from the device list.

Related MCP server: WAHA MCP

Install

Claude Code

claude mcp add kirimi npx -y kirimi-mcp \
  -e KIRIMI_USER_CODE=YOUR_USER_CODE \
  -e KIRIMI_SECRET=YOUR_SECRET \
  -e KIRIMI_DEVICE_ID=D-XXXXX

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "kirimi": {
      "command": "npx",
      "args": ["-y", "kirimi-mcp"],
      "env": {
        "KIRIMI_USER_CODE": "YOUR_USER_CODE",
        "KIRIMI_SECRET": "YOUR_SECRET",
        "KIRIMI_DEVICE_ID": "D-XXXXX"
      }
    }
  }
}

From source

git clone https://github.com/kiriminow/kirimi-mcp
cd kirimi-mcp
npm install
npm run build

Then point your client at node /path/to/kirimi-mcp/dist/index.js.

Environment variables

Variable

Required

Description

KIRIMI_USER_CODE

yes

User code from the Credentials page

KIRIMI_SECRET

yes

Secret from the Credentials page

KIRIMI_DEVICE_ID

no

Default device for device-scoped tools. Required if you do not pass device_id per call.

KIRIMI_API_BASE_URL

no

Override the API base URL (default https://api.kirimi.id)

KIRIMI_TIMEOUT_MS

no

Request timeout, default 30000

Tools

Messaging (QR device)

Tool

Purpose

send_message

Send text or media to one recipient. The normal way to reply.

send_message_fast

Same without the typing indicator. Use for time-sensitive messages.

broadcast_message

Send to up to 1000 recipients. Server enforces a minimum 30s gap.

OTP

Tool

Purpose

send_otp

Send an OTP. method: whatsapp (official provider, Rp 595/delivered), device (own device, free), waba_user (own WABA template, free).

verify_otp

Check the code the customer entered.

Devices

Tool

Purpose

list_devices

All devices with connection status.

device_status

Live status of one device. Check before broadcasting.

device_status_enhanced

Status plus message statistics.

create_device

Buy a new device with a package.

connect_device

Start pairing, returns the QR/session state.

renew_device

Renew a device subscription.

Contacts

Tool

Purpose

save_contact

Save one contact. Existing numbers are skipped.

save_contacts_bulk

Import up to 1000 contacts.

get_contacts

List contacts saved on a QR device's phone (paginated, optional re-read from the phone).

Account

Tool

Purpose

get_user_info

Name, balance, AI quota, device counts, message stats.

list_packages

Packages you can buy, with prices.

WABA (official WhatsApp Business API)

Tool

Purpose

send_waba_template

Send a Meta-approved template. Required to start a conversation.

waba_list_conversations

Numbers still inside the 24h customer service window.

waba_reply

Free-form reply. Only works inside that 24h window.

waba_sync_templates

Refresh template approval status from Meta.

Rules of thumb

  • Phone numbers use the country code, no +, no leading zero: 6281234567890.

  • Two send paths, not interchangeable. The QR device sends free-form text any time and is the only path that can reach WhatsApp groups. The official WABA path requires an approved template to start a conversation, cannot reach groups, and is addressed by waba_id rather than device_id.

  • Free text on WABA only works within 24 hours of the customer's last message. Call waba_list_conversations first.

  • Before a broadcast, call device_status and confirm the device is connected. Leave at least 30 seconds between messages.

  • A successful WABA response means Meta accepted the message, not that it was delivered. Final status arrives via webhook.

  • Always use send_otp for OTP, never send_message.

Development

npm install
npm run build
npm test        # builds, then runs the test suite
bun run dev     # run from source without building

License

MIT

Available Tools

20 tools
broadcast_messageA

Send the same message to many recipients. Max 1000 numbers per call. The server enforces a minimum 30 second delay between sends, so this returns immediately while delivery continues in the background.

Inputs: label (required), numbers (required), delay, message, +4 more.

connect_deviceB

Start connecting a device. Returns the QR/session state used to pair WhatsApp.

Inputs: device_id (required).

create_deviceA

Create a new WhatsApp device. Costs the package price from your balance. Get package_id from list_packages.

Inputs: package_id (required), voucher_code.

device_statusA

Get the live connection status of a device. Check this before a broadcast so you do not send to a disconnected device.

Inputs: device_id.

device_status_enhancedA

Get detailed device status, including today and total message statistics.

Inputs: device_id.

get_contactsA

List the contacts saved on the phone of a QR device (names from the phone address book, plus WhatsApp profile names). Paginated. Not available for WABA numbers.

Inputs: page, limit, search, refresh, +2 more.

get_user_infoA

Get account details: name, balance (saldo), AI quota, device count and message statistics.

Inputs: no named parameters.

list_devicesA

List every WhatsApp device on this account with its connection status.

Inputs: page, limit.

list_packagesA

List the packages you can buy for a device, with prices.

Inputs: no named parameters.

renew_deviceB

Renew a device subscription by buying a package for it.

Inputs: device_id (required), package_id (required), voucher_code.

save_contactA

Save one contact. Numbers that already exist are skipped, not overwritten.

Inputs: nama (required), nomor (required), device_id.

save_contacts_bulkA

Import up to 1000 contacts in one call. Existing numbers are skipped.

Inputs: contacts (required), device_id.

send_messageB

Send a WhatsApp text or media message to one recipient through a QR-scan device. This is the normal way to reply to a customer.

Inputs: receiver (required), message, device_id, media_url, +1 more.

send_message_fastA

Same as send_message but skips the typing indicator. Use for time-sensitive messages such as OTP.

Inputs: receiver (required), message, device_id, media_url.

send_otpA

Send a one-time password. Pick the method deliberately: "whatsapp" uses the official Kirimi provider and costs Rp 595 per delivered OTP with no setup; "device" sends through your own connected device and is free; "waba_user" sends through your own WhatsApp Business API template and is free.

Inputs: phone (required), method, waba_id, app_name, +3 more.

send_waba_templateA

Send an approved WhatsApp template through the official WhatsApp Business API. Business-initiated conversations MUST use a template. Templates cannot be replaced with free text. WABA cannot send to groups and is addressed by waba_id, not device_id.

Inputs: to (required), waba_id (required), template_name (required), header, +1 more.

verify_otpB

Check an OTP code the customer received. Returns whether the code is valid.

Inputs: phone (required), otp_code (required).

waba_list_conversationsA

List the customers still inside the 24 hour customer service window. These are the numbers you may reply to with free text instead of a template.

Inputs: page, limit.

waba_replyA

Reply with free-form text or media through the official API. Only allowed within 24 hours of the customer's last message — use waba_list_conversations to check first. Outside that window the API rejects it and you must send a template instead.

Inputs: to (required), message (required), waba_id (required).

waba_sync_templatesA

Refresh template approval status from Meta for one WABA. Run this before sending a newly created template. Rate limited to 10 syncs per hour.

Inputs: waba_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 20 tools

    Disambiguation3/5

    Most tools target distinct operations, but there are real overlap pairs: device_status vs device_status_enhanced (the latter is a superset with statistics), and send_message vs send_message_fast (identical except the typing indicator). The QR-device send path vs WABA path vs OTP path is also split across several tools whose boundaries an agent could get wrong, though the descriptions do help.

    Naming Consistency3/5

    Names are all snake_case and readable, but the verb position and prefixing are mixed: create_device/list_devices are verb-first while device_status and waba_list_conversations are noun-prefixed, and only the WABA group uses a namespace prefix. The waba_* family itself is internally consistent.

    Tool Count4/5

    Twenty tools is slightly heavy but justified by the breadth of the domain — device lifecycle, QR messaging, WABA messaging, contacts, OTP and packages are genuinely separate capabilities. The only clearly redundant tool is device_status_enhanced, which could fold into device_status.

    Completeness3/5

    Core flows (create/connect/renew/list devices, send, broadcast, contacts, OTP, WABA replies) are covered, but the device lifecycle has no disconnect/delete/logout operation and there is no get-message or delivery-status tool, so an agent cannot fully clean up or verify sends. Contact handling also lacks delete/update.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP (Multi-Agent Conversation Protocol) Server that enables interaction with the WhatsApp Business API, allowing agents to send messages, manage media, and perform other WhatsApp business operations through natural language.
      1
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A self-hosted MCP server that connects AI clients to WhatsApp via the WAHA HTTP API. It enables users to manage sessions, search contacts, and send or receive messages and media directly through natural language interfaces.
      8 npm
      -
    • A
      license
      Not graded
      quality
      F
      maintenance
      MCP server for interacting with the official Meta WhatsApp Business Platform/Cloud API, enabling sending messages, managing contacts, templates, and handling webhook callbacks.
      Apache 2.0