substack-mcp
📰 Substack MCP (substack-mcp)
FastMCP 3.1+ Model Context Protocol (MCP) 服务器与面向 Substack 新闻通讯的先进 React Web 应用仪表盘。
快速开始 • 什么是 Substack? • 双重能力:搜索/阅读与草稿/发布 • 内置引导与帮助 • just 任务命令 • 文档
🧠 什么是 Substack?
Substack 是一个创立于 2017 年的独立发布平台与创作者网络。它让作家、记者、研究者、播客主和思想者能够将长篇新闻通讯直接发布到读者的电子邮箱和网络端。
+-----------------------------------------------------------------------------------+
| Substack Publication |
+----------------------------------------+------------------------------------------+
|
+-------------------+---------------+---------------+--------------------+
| | | |
v v v v
+---------+ +------------------+ +-------------------+ +-------------------+
| Posts | | Substack Notes | | Substack Chat | | Subscriber Tiers |
| (Email | | (Short-form | | (Community | | (Free, Monthly, |
| + Web) | | Social Feed) | | Messaging) | | Annual, Founder) |
+---------+ +------------------+ +-------------------+ +-------------------+📖 想深入了解吗? 请阅读完整的 Substack 入门指南,其中涵盖 Substack 的历史、平台架构、RSS 端点以及货币化策略。
Related MCP server: substack-mcp
⚡ 双重能力:搜索与阅读 / 草稿与发布
substack-mcp 专为读者/研究者与创作者/发布者两类用户而设计:
工作流模式 | 是否需要认证? | 能力与特点 |
🔍 搜索与阅读 (公开模式) | 无需登录 | • 从任意 Substack 新闻通讯域名摄取 RSS feed• 在本地 SQLite 中离线全文搜索文章• 阅读面板与音频/播客详情• 将喜欢的文章加星标与收藏 |
✍️ 草稿与发布 (作者模式) | 需要 | • 暂存、编辑、更新 Substack 文章草稿• 将 Markdown 转换为带有付费发文( |
🚀 内置安装引导与帮助
为了让您在几分钟内快速上手,substack-mcp 在 Web 应用和文档中内置了交互式引导:
📱 交互式 Web 应用仪表盘(
http://127.0.0.1:1164):“引导”标签页:分步设置向导。
“帮助与系统诊断”标签页:提供 API 后端(
:11164)、SQLite 数据库、Substack Cookie 认证和本地 LLM 的动态健康检查卡片。“Cookie 提取教程”:可视化指南,教你如何从浏览器开发者工具(
F12)中复制substack.sid会话 Cookie 到设置页面。MCP 客户端集成代码片段:一键获取 Google Antigravity、Claude Desktop 和 Cursor 的接入端点。
📚 仓库指南:参见
INSTALL.md和docs/ONBOARDING.md。
⚙️ just 任务运行器命令
仓库中的所有常见任务均定义在 justfile 中:
# Run full quality check (lint + typecheck + pytest)
just check
# Run Python Pytest test suite
just test
# Lint backend (ruff) and webapp (biome)
just lint
# Format code (ruff format & biome format)
just format
# Static typecheck (pyright & tsc)
just typecheck
# Start unified dev servers (clears zombie ports, starts backend & webapp, opens browser)
just start
# Pack .mcpb desktop package
just mcpb-pack
# Build Tauri NSIS Windows installer
just tauri-build
# Run headless CUA smoke test
just cua-smoke⚡ 快速开始
1. 启动服务器与 Web 应用仪表盘
# Clone the repository
git clone https://github.com/sandraschi/substack-mcp.git
cd substack-mcp
# Launch backend (11163) and dashboard (11164) via just or PowerShell script
just start
# or: .\start.ps1Web 应用仪表盘将自动在您默认浏览器的 http://127.0.0.1:11164 地址打开。
2. 连接 AI 助手(Google Antigravity / Claude Desktop)
将您的 MCP 客户端配置指向 FastMCP Streamable HTTP 端点:
http://127.0.0.1:11163/mcp🛠️ Portmanteau MCP 工具集
工具 | 操作 | 描述 |
| 摄取 RSS,列出已跟踪的新闻通讯,搜索文章 | |
| 暂存草稿,编辑内容,渲染 Markdown HTML | |
| 跟踪订阅者指标、文章阅读量和打开率 | |
| 阅读文章评论,暂存讨论回复 |
📁 子包文档
📖 Substack 入门指南(
docs/SUBSTACK_PRIMER.md) —— 什么是 Substack、平台结构、历史于於生态。🎨 Web 应用仪表盘(
webapp/) —— Vite、React、Tailwind CSS 与 Biome 配置。⚙️ 后端包(
substack_mcp/) —— FastAPI、FastMCP 3.1+、本地 LLM 引擎与 SQLite 数据库。
📄 许可证
基于 MIT License 发布。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Draft & schedule Substack Notes, manage articles, and read stats via WriteStack.
Draft, schedule, and analyze content for Substack, Medium, LinkedIn, X, Bluesky, and Threads.
Manage beehiiv newsletters, posts, podcasts, community, subscribers, and analytics.
Posts of any Substack newsletter with engagement counts and optional full text.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to draft, publish, and schedule posts on Substack, bypassing the lack of an official publishing API.134-
- AlicenseAqualityBmaintenanceEnables AI agents to write and publish Substack posts, manage subscribers and analytics, schedule Notes, and research other writers through 65 tools.651MIT
- FlicenseNot gradedqualityBmaintenanceEnables managing Substack publications through 27 tools for drafting, publishing, subscriber analytics, comments, Notes, and reader feed via Streamable HTTP.1-
- AlicenseNot gradedqualityCmaintenanceEnables reading, searching, drafting, and updating Substack newsletter posts through natural-language requests, while leaving publishing and emailing to the user.MIT