Substack MCP 服务器
用于将 Substack API 集成到 Claude 的 MCP 服务器,支持文章检索、跨订阅搜索等功能。
快速入门
安装
- 克隆仓库: git clone https://github.com/Greg-Swiftomatic/substack-mcp-server.git cd substack-mcp-server
- 设置虚拟环境: python -m venv venv source venv/bin/activate (Windows 使用 venv\Scripts\activate)
- 安装依赖: pip install -r requirements.txt
启动服务
运行以下命令启动服务器: python substack_mcp.py
配置 Claude 桌面版
- 编辑配置文件
claude_desktop_config.json
。 - 添加以下内容: { "mcpServers": { "substack": { "command": "python", "args": ["/ABSOLUTE/PATH/TO/substack-mcp-server/substack_mcp.py"] } } }
- 重启 Claude 桌面版。
示例查询
- 获取最近的文章:"Show me recent posts from https://stratechery.com/"
- 搜索特定主题:"Search for 'AI ethics' across multiple Substack newsletters"