Substack MCP 服务器

Substack MCP 服务器

用于将 Substack API 集成到 Claude 的 MCP 服务器,支持文章检索、跨订阅搜索等功能。

快速入门

安装

  1. 克隆仓库: git clone https://github.com/Greg-Swiftomatic/substack-mcp-server.git cd substack-mcp-server
  2. 设置虚拟环境: python -m venv venv source venv/bin/activate (Windows 使用 venv\Scripts\activate)
  3. 安装依赖: pip install -r requirements.txt

启动服务

运行以下命令启动服务器: python substack_mcp.py

配置 Claude 桌面版

  1. 编辑配置文件 claude_desktop_config.json
  2. 添加以下内容: { "mcpServers": { "substack": { "command": "python", "args": ["/ABSOLUTE/PATH/TO/substack-mcp-server/substack_mcp.py"] } } }
  3. 重启 Claude 桌面版。

示例查询

  • 获取最近的文章:"Show me recent posts from https://stratechery.com/"
  • 搜索特定主题:"Search for 'AI ethics' across multiple Substack newsletters"