mcp-z-api MCP Server
MCP server for Z-API — WhatsApp messaging, contacts, media
mcp-z-api scores 45 (Fair), with no SPDX license recorded. It installs as a local process. It declares 35 tools. Filed under Communication. Package registries report about 68 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
45 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade A
87/100 for listing completeness. Lost points: 6 of 35 tools barely described, short summary, no docs link.
How quality is graded
Where the 45 comes from
22 + 10 + 0 + 0 + 10 + 3 = 45. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "codespar-z-api": { "command": "npx", "args": [ "-y", "@codespar/mcp-z-api@0.2.2" ], "env": { "ZAPI_TOKEN": "YOUR_ZAPI_TOKEN" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
ZAPI_TOKENSecret | Required | API key for z-api |
Tools35Tool docs quality grade D
All capabilitiesadd_contactstoolAdd one or more contacts to the WhatsApp address book.
Add a participant to a WhatsApp group
add_labeltoolAssign a label/tag to a chat
bulk_messagingtoolSend messages to multiple contacts
catalog_productstoolManage WhatsApp Business catalog products
check_numbertoolCheck if a phone number has WhatsApp
create_grouptoolCreate a WhatsApp group
delete_messagetoolDelete a message
get_chat_historytoolGet full chat history with a contact
Get metadata (name, WhatsApp display name, profile picture, status) for a single contact
get_contactstoolGet all WhatsApp contacts
Get group metadata and participants
About
@codespar/mcp-z-api
MCP server for Z-API — WhatsApp messaging platform
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"z-api": {
"command": "npx",
"args": ["-y", "@codespar/mcp-z-api"],
"env": {
"ZAPI_INSTANCE_ID": "your-instance-id",
"ZAPI_TOKEN": "your-token"
}
}
}
}
Claude Code
claude mcp add z-api -- npx @codespar/mcp-z-api
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
{
"servers": {
"z-api": {
"command": "npx",
"args": ["-y", "@codespar/mcp-z-api"],
"env": {
"ZAPI_INSTANCE_ID": "your-instance-id",
"ZAPI_TOKEN": "your-token"
}
}
}
}
Tools (27)
| Tool | Purpose |
|---|---|
send_text | Send a text message via WhatsApp |
send_image | Send an image message via WhatsApp |
send_document | Send a document via WhatsApp |
send_audio | Send an audio message via WhatsApp |
get_contacts | Get all WhatsApp contacts |
check_number | Check if a phone number has WhatsApp |
get_profile_picture | Get profile picture URL for a phone number |
get_messages | Get messages for a phone number |
send_button_list | Send a button list message via WhatsApp |
get_status | Get WhatsApp instance connection status |
create_group | Create a WhatsApp group |
get_group_metadata | Get group metadata and participants |
add_group_participant | Add a participant to a WhatsApp group |
remove_group_participant | Remove a participant from a WhatsApp group |
send_location | Send a location message via WhatsApp |
send_contact | Send a contact card via WhatsApp |
add_label | Assign a label/tag to a chat |
get_labels | List all available labels/tags |
read_message | Mark messages as read |
delete_message | Delete a message |
get_contact_metadata | Get metadata (name, WhatsApp display name, profile picture, status) for a single contact |
add_contacts | Add one or more contacts to the WhatsApp address book. |
list_chats | List all WhatsApp chats with pagination |
mark_chat_as_read | Mark an entire chat as read or unread |
list_groups | List all WhatsApp groups with pagination |
send_option_list | Send an interactive option list (WhatsApp native list). |
send_button_actions | Send interactive action buttons (CALL, URL, REPLY). |
Authentication
Z-API uses instance ID and token embedded in the request URL.
Sandbox / Testing
Z-API offers a free trial for testing. Create an account to get started.
Get your credentials
- Go to Z-API Developer Portal
- Create an account and start a free trial
- Get your instance ID and token
- Set the environment variables
Environment Variables
| Variable | Required | Description |
|---|---|---|
ZAPI_INSTANCE_ID | Yes | Z-API instance ID |
ZAPI_TOKEN | Yes | Z-API instance token |
Roadmap
v0.2 (planned)
send_sticker— Send a sticker message via WhatsAppsend_reaction— Send a reaction to a messageget_chat_history— Get full chat history with a contactupdate_group_settings— Update group name, description, settingsleave_group— Leave a WhatsApp group
v0.3 (planned)
bulk_messaging— Send messages to multiple contactstemplate_management— Create and manage message templatescatalog_products— Manage WhatsApp Business catalog products
Want to contribute? Open a PR or request a tool.
Links
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
Frequently asked questions
What is mcp-z-api MCP Server?
MCP server for Z-API — WhatsApp messaging, contacts, media
How do I install mcp-z-api MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-z-api MCP Server runs locally from the npm package @codespar/mcp-z-api with the command npx -y @codespar/mcp-z-api@0.2.2.
Does mcp-z-api MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-z-api MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-z-api MCP Server provide?
mcp-z-api MCP Server provides 35 tools, including add_contacts, add_group_participant, add_label, and bulk_messaging. See the full tool list for descriptions and parameters.
How is mcp-z-api MCP Server's trust score calculated?
mcp-z-api MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.