Python MCP server connecting AI agents to QQ via NapCatQQ (OneBot v11) for messaging and group management.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Xadeus QQ MCP.
send_messageSend text with segmentation and optional reply wait
send_imageSend image (base64)
send_voiceSend voice (base64)
wait_for_replyWait for new messages
get_recent_contextRecent messages for a group/friend
batch_get_recent_contextBatch query multiple targets
Built by a 15-year-old developer, based on Amadeus-QQ-MCP.
QQ MCP (Model Context Protocol) Server — connects to QQ via NapCatQQ (OneBot v11), giving AI agents direct control over QQ (send/receive messages, group management, auto-wake on incoming messages, and more).
| Feature | Description |
|---|---|
| Auto-Wake | Incoming QQ messages matching rules trigger the AI agent window automatically. Cross-platform — Windows (keybd_event), macOS (osascript+pbcopy), Linux (xdotool+xclip). Supports any client — opencode, Cursor, Claude Desktop, Windsurf — configure via set_wake_config |
| Dedup Lock | Prevents duplicate wake during processing. Unlock manually when done |
| Persistent Rules | Wake rules saved to wake_rules.json, auto-loaded on restart |
wait_for_reply Built-in | send_message waits for reply by default |
| Group Moderation | Mute, unmute, kick, set card, send notices |
| File Sending | Send any file from URL to QQ groups/private chats |
| Message Recall | Recall bot-sent messages |
| Timer Scheduler | Cron or interval-based timed wake |
| One-Click Setup | Auto-detect NapCat, configure ports, update agent configs |
Auto-detects NapCat, configures HTTP:3000/WS:3001, creates Python venv, writes QQ_OVERRIDE, generates NapCat start script, sets window wake patterns.
Options:
Default -windowTitle: OC,opencode,Administrator,cmd,管理员
(comma-separated substrings, matched case-insensitively against window titles)
Also available via Python:
Important: The
QQ_OVERRIDEenvironment variable before starting your agent:Or edit the fallback value in
src/qq_agent_mcp/__main__.py:QQ_OVERRIDE.This works around AI agents that cache the MCP command at startup and ignore subsequent config file changes.
opencode — edit ~/.config/opencode/opencode.json:
Cursor / Claude Desktop / Windsurf — edit the respective MCP config file:
Or just run python setup.py — it detects all installed agents automatically.
Use set_wake_config to bind to any AI agent window:
Saved to src/qq_agent_mcp/wake_config.json.
| Tool | Description |
|---|---|
send_message | Send text with segmentation and optional reply wait |
send_image | Send image (base64) |
send_voice | Send voice (base64) |
wait_for_reply | Wait for new messages |
| Tool | Description |
|---|---|
get_recent_context | Recent messages for a group/friend |
batch_get_recent_context | Batch query multiple targets |
screenshot_chat | Render chat screenshot (iPhone dark mode style) |
compress_context | Archive old messages to summary |
| Tool | Description |
|---|---|
add_wake_rule | Add auto-wake rule (group/private + keywords) |
remove_wake_rule | Remove wake rule by index |
list_wake_rules | List all wake rules |
set_wake_pending | Lock/unlock wake to prevent duplicates |
set_wake_enabled | Enable/disable all or specific rules |
set_wake_config | Configure target window and focus shortcut |
get_wake_config | View current wake config |
diagnose_wake | Debug wake monitor state |
| Tool | Description |
|---|---|
get_group_list | List joined groups |
get_group_member_list | List group members |
get_group_member_info | Get member details |
mute_member | Mute a member |
unmute_member | Unmute a member |
kick_member | Kick a member |
set_member_card | Set group nickname |
send_group_notice | Send group notice |
| Tool | Description |
|---|---|
check_status | Check QQ and NapCat connection |
get_friend_list | List friends |
recall_message | Recall bot message |
send_file | Send file from URL |
add_timer | Add scheduled wake (cron/interval) |
remove_timer | Remove timer |
list_timers | List all timers |
| Issue | Cause | Workaround |
|---|---|---|
| MCP won't restart after crash/kill | opencode has restart backoff; after ~3 kills it stops retrying | Restart your AI agent, or .\quickstart.ps1 -restart |
| Two MCP processes always appear | FastMCP stdio transport spawns parent+child chain | Named mutex prevents duplicate typing (built-in fix) |
Config changes ignored after editing opencode.json | opencode caches MCP command at startup | Restart opencode, or use QQ_OVERRIDE env var |
| Wake message doubled | Both processes try to type simultaneously | Fixed via Windows named mutex (Local\XadeusQQ_MCP_WakeTyping) |
| Messages from same QQ ignored | is_self filter in context.py and wake.py | Removed in current build |
| Wake won't fire even with matching rule | Lock (_pending) held from previous wake | Auto-unlock after 5 min, or call set_wake_pending(false) |
Kills stale MCP processes and waits for auto-restart. If the agent doesn't recover, it prompts you to restart manually.
Based on Amadeus-QQ-MCP (MIT License).
中文版
由一位 15 岁高中生基于 Amadeus-QQ-MCP 深度优化改造。
QQ MCP (Model Context Protocol) Server — 通过 NapCatQQ (OneBot v11) 协议连接 QQ,为 AI Agent 提供直接操控 QQ 的能力(收发消息、管理群聊、自动唤醒等)。
| 功能 | 说明 |
|---|---|
| Auto-Wake 自动唤醒 | QQ 消息匹配规则时自动激活 AI Agent 窗口。跨平台 — Windows (keybd_event)、macOS (osascript+pbcopy)、Linux (xdotool+xclip)。支持任意客户端 — opencode、Cursor、Claude Desktop、Windsurf,通过 set_wake_config 配置窗口标题即可 |
| Pending 防重复锁 | 唤醒后自动上锁,防止重复唤醒。Agent 干完活后手动解锁 |
| 规则持久化 | 唤醒规则自动保存到 wake_rules.json,重启后自动加载 |
wait_for_reply 一体化 | send_message 默认自动等待回复 |
| 群管理 | 禁言、解禁、踢人、设名片、发公告 |
| 文件发送 | 从 URL 下载文件发送到群/私聊 |
| 消息撤回 | 撤回机器人发送的消息 |
| 定时任务 | 支持 cron 和间隔两种模式的定时唤醒 |
| 一键配置 | 自动检测 NapCat、端口、多 Agent 配置 |
自动检测 NapCat、配置 HTTP:3000/WS:3001、创建 Python venv、 写入 QQ_OVERRIDE、生成 NapCat 启动脚本、设置窗口唤醒匹配模式。
选项:
默认 -windowTitle:OC,opencode,Administrator,cmd,管理员
(逗号分隔,不区分大小写子串匹配窗口标题)
Python 版(功能相同):
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mouse114514-xadeus-qq-mcp)<a href="https://allmcps.com/mcp/mouse114514-xadeus-qq-mcp"><img src="https://allmcps.com/api/badge/mouse114514-xadeus-qq-mcp?style=directory" alt="Xadeus QQ MCP on AllMCPs" /></a>