WeCom (Enterprise WeChat) External Contact MCP Server — a Python SDK and Model Context Protocol server covering the full 客户联系 API surface: customers, tags, group chats, moments, mass messaging, transfer-on-handover, statistics.
Project description
wecom-crm-mcp
WeCom (企业微信) 客户联系 / External Contact MCP Server — Python SDK + Model Context Protocol server covering the full customer-contact API surface.
Why
GitHub has plenty of WeCom group-bot webhook MCP servers, but none covers the full 客户联系 API: customer management, tags, group chats, customer moments (朋友圈), mass-send (群发), transfer-on-handover, statistics. This does.
Coverage
11 modules, mapping 1:1 to the official 客户联系 docs:
| Module | MCP tool | What it does |
|---|---|---|
| 客户管理 | wecom_customer |
list / get / batch_get / remark |
| 客户标签 | wecom_tag |
list / create / edit / delete / mark |
| 在职继承 | wecom_transfer_active |
transfer customers/groups between active employees |
| 离职继承 | wecom_transfer_resigned |
reassign resigned employees' customers/groups |
| 客户群 | wecom_group_chat |
list / detail / opengid convert |
| 联系我 / 入群 | wecom_contact_way |
manage 「联系我」 and 「加入群聊」 QR codes |
| 客户朋友圈 | wecom_moment |
publish / cancel / list moments |
| 获客助手 | wecom_acquisition |
acquisition links / quota / stats |
| 消息推送 | wecom_msg_template |
mass-send / welcome / group-welcome |
| 统计管理 | wecom_statistics |
follow / group-chat data |
| 附加功能 | wecom_misc |
media upload / product album / sensitive words |
Plus two helpers: wecom_upload_media and wecom_describe_action.
Install
pip install wecom-crm-mcp
Configure
export WECOM_CORPID=ww...
export WECOM_CORPSECRET=... # the External Contact secret, not app secret
export WECOM_AGENTID=1000001 # optional, needed for mass-send
Claude Desktop / Claude Code ~/.claude.json:
{
"mcpServers": {
"wecom-crm": {
"command": "wecom-crm-mcp",
"env": {
"WECOM_CORPID": "ww...",
"WECOM_CORPSECRET": "..."
}
}
}
}
Example
User: 帮我给所有带 "VIP" 标签的客户发一条朋友圈,内容"春节快乐"
Claude: [calls wecom_tag action=list] [wecom_customer action=batch_get]
[wecom_upload_media] [wecom_moment action=add_moment_task]
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wecom_crm_mcp-0.1.0.tar.gz.
File metadata
- Download URL: wecom_crm_mcp-0.1.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0ed582ebb5769154c0995b31a08f4dddf81648e07b6a6a035d292aa894d6b1e
|
|
| MD5 |
eb5cd1b63c5512973d09d0627a58e3bc
|
|
| BLAKE2b-256 |
63d4f0815091a21d1a805881bc5dbe19113804a6e6f28ca1c8ab8bfd57f715d6
|
File details
Details for the file wecom_crm_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wecom_crm_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9fe6f1b1f8cda93d138480c8dde45ef401ebeb168347b042287ff1b10b31eb1
|
|
| MD5 |
d973961a24f5cbd7a7e2a2baa907abbc
|
|
| BLAKE2b-256 |
06b92dd8e7db3cfbdd15147c7d6f5680e78b030d8ac4f6b773ab4de6381a0f0a
|