Skip to main content

MCP server for publishing content to Zhishixingqiu (知识星球)

Project description

ZSXQ MCP Server

知识星球 MCP 服务器 - 通过 Model Context Protocol 发布内容到知识星球。

功能特性

  • ✅ 发布文字主题到知识星球
  • ✅ 上传并发布带图片的内容
  • ✅ 从本地文件读取内容发布
  • ✅ Cookie 身份验证
  • ✅ 灵活的配置方式

安装

方法一:pip 安装(推荐)

pip install zsxq-mcp

方法二:uvx 快速启动

uvx zsxq-mcp

方法三:从源码安装

pip install -e .

配置

1. 获取知识星球 Cookie

  1. 浏览器登录知识星球(https://wx.zsxq.com/)
  2. 打开开发者工具(F12)
  3. Network 标签页中找到 API 请求的 Cookie 字段
  4. 复制完整 Cookie 值

2. 获取星球 ID

访问星球页面,URL 中的数字部分即为星球 ID: https://wx.zsxq.com/group/1234567890123412345678901234

3. 配置 Claude Desktop

在配置文件中添加:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "zsxq": {
      "command": "zsxq-mcp",
      "env": {
        "ZSXQ_COOKIE": "your_cookie_value_here",
        "ZSXQ_GROUP_ID": "your_group_id_here"
      }
    }
  }
}

重启 Claude Desktop 即可使用。

使用方法

发布文字主题

帮我发布到知识星球:"今天学习了 MCP 的使用方法,非常有趣!"

发布文件内容

把这个文件发布到知识星球:/Users/xxx/article.txt

发布带图片内容

发布带图片的动态:"分享今天的成果",图片:/Users/xxx/screenshot.png

可用工具

  • publish_topic - 发布文字主题
  • publish_topic_from_file - 从文件发布内容
  • publish_topic_with_images - 发布带图片的主题
  • upload_image - 上传图片
  • get_group_info - 获取星球信息

安全提醒

  • ⚠️ 请勿分享你的 Cookie,它包含登录凭证
  • 🔒 Cookie 会定期过期,需要重新获取
  • 📖 详细配置说明请查看 CONFIGURATION.md

许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zsxq_mcp-0.1.0.tar.gz (97.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zsxq_mcp-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file zsxq_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: zsxq_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 97.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsxq_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6259baf556683b90d4da54093321e18d035086b7eae579ef9fcbe8e53ff6cb1c
MD5 9fc40c22258729a2036383a62169b348
BLAKE2b-256 75d0acfc4fea71bc85a21ef179652efa316e9b5b222cfaf40238f80e200e36b5

See more details on using hashes here.

File details

Details for the file zsxq_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zsxq_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zsxq_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b9f0d8c7ff9fe0bf826667cc59d3d3189f17b7afc9cd695ac07dbc288f0441
MD5 1776107884f34e48b38c1c2ec1e9752c
BLAKE2b-256 dd20ea67e4f0a8a9e18130e839ed2de2731e590e531f8d95d90b02aae5566147

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page