Skip to main content
Glama

QZone MCP Server for AstrBot

让 AstrBot 接入 QQ 空间,AI 可以在聊天时自主发说说、查看评论、回复评论、点赞。

功能

工具

说明

post_shuoshuo

发说说(AI 自主触发,无需指令)

get_my_shuoshuo_list

查看说说列表

get_shuoshuo_detail

查看说说详情 + 评论

add_comment

评论说说

reply_comment

回复评论

like_post

点赞 / 取消点赞

delete_post

删除说说

Related MCP server: qzone-mcp

快速开始

浏览器打开 https://i.qq.com 登录 → F12 → Console → 输入 document.cookie → 复制输出

粘贴到 cookies.txt 文件中。

2. 放入 AstrBot data 目录

.../data/qzone_mcp/
├── server.py
├── requirements.txt
└── cookies.txt

3. 配置 MCP

在 AstrBot 的 mcp_server.json 中添加:

{
    "mcpServers": {
        "qq空间": {
            "command": "python",
            "args": ["/AstrBot/data/qzone_mcp/server.py"]
        }
    }
}

4. 修复 Persona

AstrBot 默认 persona 的 tools 为 [] 会拦截 MCP 工具,需要改为 null。

Docker:

docker exec astrbot python3 -c "
import sqlite3
conn = sqlite3.connect('/AstrBot/data/data_v4.db')
conn.execute(\"UPDATE personas SET tools = NULL WHERE persona_id = 'default'\")
conn.commit()
print('Done')
"

pip / Desktop:打开 WebUI → Persona → default → 清空工具列表 → 保存。

5. 重启

docker restart astrbot

依赖

  • Python >= 3.12

  • mcp

  • requests

  • json5

致谢

QZone API 端点基于 astrbot_plugin_qzone_ultra 逆向。

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables automated collection and AI-powered filtering of public QQ channel posts, comments, and images. Supports natural language criteria for content filtering and provides structured data storage in JSON/CSV formats.
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for QZone (QQ space) integration, enabling publishing, listing, liking, and commenting on posts through the QzoneUltra daemon and NapCat.
      12
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to control and monitor QQ accounts through the NapCatQQ OneBot 11 protocol, covering private/group messaging, forwards, group administration, file transfer, OCR, friend and profile management, and real-time message listening. It also handles QR-code login, hot-switching between multiple QQ accounts, and one-click self-check, deployment, and updates.
      20
      6
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A QQ toolbox MCP server that lets an agent manage Qzone posts (publish, list, like, comment, delete, set visibility), friend feeds, visitors, confession-wall submissions and scheduled posts, while also editing the bot's profile (avatar, nickname, signature, online status, status lookup) via OneBot/SnowLuma. It additionally sends images and text-to-speech voice clips into private or group chats and manages tool whitelists.
      1
      MIT