substack-ops
概览
作者提供的说明(英文原文)
Substack CLI + 26-tool MCP server. Your IDE drafts replies via propose_reply. No API keys.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i2 项中通过 2 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 28/周 · ★ 1
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
- 你需要填写:SUBSTACK_SESSION_TOKEN
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:2 项中通过 2 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
SUBSTACK_PUBLICATION_URL,SUBSTACK_USER_ID,SUBSTACK_SESSION_TOKEN,SUBSTACK_OPS_MCP_PATH,SUBSTACK_OPS_LLM_CMD
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"substack-ops": {
"command": "uvx",
"args": [
"substack-ops",
"mcp",
"serve"
],
"env": {
"SUBSTACK_PUBLICATION_URL": "your-value",
"SUBSTACK_USER_ID": "your-value",
"SUBSTACK_SESSION_TOKEN": "your-value",
"SUBSTACK_OPS_MCP_PATH": "your-value",
"SUBSTACK_OPS_LLM_CMD": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add substack-ops --env SUBSTACK_PUBLICATION_URL=your-value --env SUBSTACK_USER_ID=your-value --env SUBSTACK_SESSION_TOKEN=your-value --env SUBSTACK_OPS_MCP_PATH=your-value --env SUBSTACK_OPS_LLM_CMD=your-value -- uvx substack-ops mcp serve运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"substack-ops": {
"command": "uvx",
"args": [
"substack-ops",
"mcp",
"serve"
],
"env": {
"SUBSTACK_PUBLICATION_URL": "your-value",
"SUBSTACK_USER_ID": "your-value",
"SUBSTACK_SESSION_TOKEN": "your-value",
"SUBSTACK_OPS_MCP_PATH": "your-value",
"SUBSTACK_OPS_LLM_CMD": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"substack-ops": {
"type": "stdio",
"command": "uvx",
"args": [
"substack-ops",
"mcp",
"serve"
],
"env": {
"SUBSTACK_PUBLICATION_URL": "your-value",
"SUBSTACK_USER_ID": "your-value",
"SUBSTACK_SESSION_TOKEN": "your-value",
"SUBSTACK_OPS_MCP_PATH": "your-value",
"SUBSTACK_OPS_LLM_CMD": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
SUBSTACK_PUBLICATION_URLenvYour Substack publication URL (e.g. https://you.substack.com/). Optional if set in ~/.cursor/mcp.json's mcpServers.substack-api.env.SUBSTACK_USER_IDenvYour Substack numeric user id. Optional if set in ~/.cursor/mcp.json.- Your Substack session cookie value (the s%3A... string). Required for authenticated calls. Easier path: run `substack-ops auth login --browser chrome` and the cookie is auto-grabbed.
SUBSTACK_OPS_MCP_PATHenvOverride path to the mcp.json file the auth layer reads. Defaults to ~/.cursor/mcp.json.SUBSTACK_OPS_LLM_CMDenvOptional: override the host CLI used by the unattended daemon path (default: auto-detect claude / cursor-agent / codex on PATH). Use {prompt} placeholder if your CLI takes the prompt as an arg.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 06ketan 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于6个月前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5732 个服务器的 65%
- 发布到注册中心的时间比此分类中其他 5732 个服务器的 11% 更新
- 基础检查结果等于或优于此分类中其他 5732 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
substack-ops 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:SUBSTACK_SESSION_TOKEN
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于6个月前,最新版本(0.3.5)于6个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
substack-ops
Standalone Substack CLI + 26-tool MCP server for Cursor MCP, Claude MCP, OpenCode MCP, and any stdio MCP host. Your IDE drafts the replies. Zero AI API keys.
Site → [substack-ops.chavan.in](https://substack-ops.chavan.in) · Source → [06ketan/substack-ops](https://github.com/06ketan/substack-ops) · Glama → [mcp/servers/06ketan/substack-ops](https://glama.ai/mcp/servers/06ketan/substack-ops)
Posts, notes, comments, replies, reactions, restacks, recommendations, search, profiles, feeds, automations, MCP server, Textual TUI. One Python install, one binary, MIT licensed.
TL;DR — MCP-native (no API key, one command)
uvx substack-ops mcp install cursor # or claude-desktop, claude-code, opencode, print
Restart your host. Then in chat:
"list unanswered comments on post 193866852"
"draft a warm reply to comment 12345"
"post that draft"
Your host's LLM (Cursor's, Claude's) does the drafting via the propose_reply / confirm_reply tools. No ANTHROPIC_API_KEY / OPENAI_API_KEY needed.
Wrong install?
This project is `substack-ops` on [PyPI](https://pypi.org/project/substack-ops/) — install with `uv` / `uvx`, not unrelated `npx` packages that appear when searching “Substack MCP”. Canonical listing: [Glama — 06ketan/substack-ops](https://glama.ai/mcp/servers/06ketan/substack-ops).
Works with (MCP)
These rows help discovery (search keywords); confirm each host’s current MCP docs before upgrading.
Open source–oriented hosts
| Host | Documentation | Typical wire-up |
|---|---|---|
| OpenCode | OpenCode MCP servers | uvx substack-ops mcp install opencode |
| Continue | Continue | uvx substack-ops mcp install print — paste the snippet into Continue’s MCP settings |
| Zed | Zed | Configure stdio MCP per Zed’s docs |
| Cline | Cline | MCP setup per extension / marketplace docs |
| Goose | Goose | MCP extensions per Goose docs |
Large commercial stacks
| Host | Documentation | Typical wire-up |
|---|---|---|
| Cursor | Cursor MCP | uvx substack-ops mcp install cursor |
| Claude (Desktop / Code) | Claude Desktop, Claude Code | mcp install claude-desktop / claude-code |
| GitHub Copilot | Copilot | MCP in VS Code / Copilot where supported — use print + host docs |
| ChatGPT | OpenAI | Developer / connector flows — often REST (Slideshot API) for tools without MCP |
| Google Gemini | Gemini | Gemini CLI / IDE features per Google docs — stdio where supported |
OpenCode (copy-paste)
Auto-install:
uvx substack-ops mcp install opencode
Manual (~/.config/opencode/opencode.json):
{
"mcp": { "substack-ops": { "type": "local", "command": ["uvx", "substack-ops", "mcp", "serve"], "enabled": true } } }
Optional version pin: use ["uvx", "substack-ops==0.3.5", "mcp", "serve"] (replace with current PyPI release).
Setup (dev / from source)
git clone https://github.com/06ketan/substack-ops && cd substack-ops
uv sync uv sync --extra mcp # mcp SDK for the MCP server (recommended) uv sync --extra tui # textual for the TUI uv sync --extra chrome # pycryptodome + keyring for Chrome cookie auto-grab
Auth defaults to ~/.cursor/mcp.json's mcpServers.substack-api.env. Override with env or .env. Or use one of the auth flows in auth login / auth setup.
uv run substack-ops auth verify
uv run substack-ops quickstart # 20-step tour
Command surface
Grouped by intent. Every write defaults to --dry-run; flip with --no-dry-run (and --yes-i-mean-it for the irreversible ones). All writes land in .cache/audit.jsonl and are dedup-checked against .cache/actions.db.
Auth (4)
| Command | What it does | |
|---|---|---|
auth verify | Confirm the cookie works; print authed user/pub. | |
auth test | Same as verify, exit non-zero on failure (CI-friendly). | |
| `auth login --browser chrome\ | brave` | Auto-grab cookie from local Chromium browser via macOS Keychain. |
auth login --email me@x.com | Email magic-link → paste-the-link interactive flow. | |
auth setup | Interactive paste of connect.sid cookie. |
Read — Posts (8)
| Command | What it does | |
|---|---|---|
| `posts list [--pub] [--limit] [--sort new\ | top]` | List posts from a publication (yours by default). |
posts show [--pub] | Post metadata (title, dates, reactions, comment count). | |
posts get --slug [--pub] | Same as show but slug-only. | |
posts content [--md] [--pub] | HTML body (auth-aware for paywalled). --md converts to Markdown. | |
posts stats | Engagement counts — reactions, comments. | |
posts search [--pub] [--limit] | Substack-side full-text search. | |
posts paywalled [--pub] | Boolean: is this post paywalled? | |
posts react [--off] [--pub] | Add (or remove with --off) a reaction. Defaults to ❤. | |
posts restack [--off] | Restack a post (Substack does not support unrestack). |
Read — Notes (5)
| Command | What it does |
|---|---|
notes list [--limit] | Your published Notes. |
notes show | One note + its reply tree. |
notes publish [--no-dry-run] | Publish a top-level Note. |
notes react [--off] | React on any Note. |
notes restack [--off] | Restack a Note. |
Read + Write — Comments (5)
| Command | What it does | |
|---|---|---|
comments tree [--pub] | Full nested comment tree as table. | |
comments export --out file.json [--pub] | Same tree as JSON. | |
comments add [--pub] [--no-dry-run] | New top-level comment. | |
| `comments react --kind post\ | note [--off]` | React on a comment. |
| `comments delete --kind post\ | note [--no-dry-run]` | Destructive — your own comments only. |
Reply engine (6)
| Command | What it does |
|---|---|
reply template --template thanks | Rule-based replies (no LLM). |
reply review | LLM drafts each, you [a]ccept / [e]dit / [s]kip / [q]uit. |
reply bulk --out drafts.json | Draft every comment to a file. Edit, set action: "approved". |
reply note-bulk --out drafts.json | Same for replies under a Note. |
reply bulk-send drafts.json [--no-dry-run] | Posts only approved rows. Dedup-checked. |
reply auto --no-dry-run --yes-i-mean-it | Draft + post immediately. 30s rate limit. |
Read — Discovery (8)
| Command | What it does | ||
|---|---|---|---|
| `feed list --tab for-you\ | subscribed\ | category-{slug}` | Reader feed (the Substack app feed). |
profile me / profile get | Profile. | ||
users get / users subscriptions | Public user info + their subs. | ||
podcasts list [--pub] | Audio posts. | ||
recommendations list [--pub] | Pub's recommended publications. | ||
authors list [--pub] | Pub's contributor list. | ||
categories list / categories get --name | Substack's category taxonomy. |
Automations (3)
| Command | What it does |
|---|---|
auto presets | List built-in YAML rules. |
auto run | One-shot run a preset. |
auto daemon --interval 60 | Loop forever; logs to audit. |
Operations + safety (3)
| Command | What it does |
|---|---|
audit search [--kind] [--target] [--status] [--since 7d] | Query the JSONL audit log. |
audit dedup-status | Counts in the dedup SQLite DB. |
quickstart | 20-step interactive tour. |
MCP server (3)
| Command | What it does |
|---|---|
mcp install [--dry-run] | Auto-merge config into your host. |
mcp serve | stdio MCP server (26 tools). |
mcp list-tools | Print the tool registry. |
Other (1)
| Command | What it does |
|---|---|
tui | Textual TUI — 6 tabs (Notes, Posts, Comments, Feed, Auto, Profile). |
Multi-publication
Every read command accepts --pub . Defaults to your own publication.
substack-ops posts list --pub stratechery --limit 5
substack-ops posts search "ai" --pub stratechery substack-ops recommendations list --pub stratechery
Reply modes
| Mode | What it does | Safety |
|---|---|---|
template | YAML keyword/regex rules under src/substack_ops/templates/*.yaml | dry-run default |
review | LLM drafts each reply, you [a]ccept / [e]dit / [s]kip / [q]uit | dry-run default + manual gate per comment |
bulk | LLM drafts every comment to drafts.json. Edit file, set action: "approved" | offline review, dedup-checked on send |
bulk-send | Posts only items with action: "approved" | dry-run default; dedup DB prevents the M2 31-dup-replies regression |
auto | LLM drafts and posts immediately | requires --no-dry-run --yes-i-mean-it, 30s rate limit |
After every live note-reply the engine re-fetches the new comment and asserts ancestor_path is non-empty. If empty, the audit row's result_status is flipped to "orphaned" (the M2 bug where parent_comment_id was silently dropped — now caught).
Automations
Built-in presets (auto presets):
- like-back — when someone reacts to your note, react to their latest note.
- auto-reply — same trigger, but post a templated thank-you.
- auto-restack — when a watchlist handle posts a new note, restack it.
- follow-back — when someone follows you, follow them back.
Custom YAML rules under ~/.config/substack-ops/auto/*.yaml. Loop with auto daemon --interval 60.
MCP server
substack-ops mcp install opencode # auto-add to ~/.config/opencode/opencode.json
substack-ops mcp install cursor # auto-add to ~/.cursor/mcp.json substack-ops mcp install claude-desktop # auto-add to claude_desktop_config.json substack-ops mcp install claude-code