Drive WhatsApp from any MCP client: pair devices, send text and media, manage contacts and groups.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add uni-msg-whatsapp --env UNIMSG_API_KEY='<UNIMSG_API_KEY>' -- npx -y uni-msg-mcp-server~/.codex/config.toml
[mcp_servers.uni-msg-whatsapp]
command = "npx"
args = ["-y", "uni-msg-mcp-server"]
env = { UNIMSG_API_KEY = "<UNIMSG_API_KEY>" }
# codex mcp add uni-msg-whatsapp --env UNIMSG_API_KEY='<UNIMSG_API_KEY>' -- npx -y uni-msg-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"uni-msg-whatsapp": {
"command": "npx",
"args": [
"-y",
"uni-msg-mcp-server"
],
"env": {
"UNIMSG_API_KEY": "<UNIMSG_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"uni-msg-whatsapp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"uni-msg-mcp-server"
],
"env": {
"UNIMSG_API_KEY": "<UNIMSG_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"uni-msg-whatsapp": {
"command": "npx",
"args": [
"-y",
"uni-msg-mcp-server"
],
"env": {
"UNIMSG_API_KEY": "<UNIMSG_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"uni-msg-whatsapp": {
"command": "npx",
"args": [
"-y",
"uni-msg-mcp-server"
],
"env": {
"UNIMSG_API_KEY": "<UNIMSG_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"uni-msg-whatsapp": {
"command": "npx",
"args": [
"-y",
"uni-msg-mcp-server"
],
"env": {
"UNIMSG_API_KEY": "<UNIMSG_API_KEY>"
}
}
}
}远程托管
claude mcp add --transport http uni-msg-whatsapp https://uni-msg.com/mcp --header 'Authorization: <AUTHORIZATION>'~/.codex/config.toml
[mcp_servers.uni-msg-whatsapp]
url = "https://uni-msg.com/mcp"
http_headers = { Authorization = "<AUTHORIZATION>" }
# codex mcp add uni-msg-whatsapp --url https://uni-msg.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"uni-msg-whatsapp": {
"url": "https://uni-msg.com/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"uni-msg-whatsapp": {
"type": "http",
"url": "https://uni-msg.com/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"uni-msg-whatsapp": {
"httpUrl": "https://uni-msg.com/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"uni-msg-whatsapp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://uni-msg.com/mcp",
"--header",
"Authorization:<AUTHORIZATION>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"uni-msg-whatsapp": {
"url": "https://uni-msg.com/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}需要的环境变量
UNIMSG_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。