Substack MCP CLI
MCP server by thenavidm Verified · npm:@thenavidm
Substack MCP Server and CLI gives AI assistants 65 tools for drafts, posts, Notes, subscribers, analytics, tags, comments and research on other publications. It is built for Claude Code, Codex and other AI agents.
Install Substack MCP CLI
Built from the published package, never by AI.
claude mcp add substack-mcp-cli -- npx -y @thenavidm/substack-mcp-cliRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"substack-mcp-cli": {
"args": [
"-y",
"@thenavidm/substack-mcp-cli"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"substack-mcp-cli": {
"args": [
"-y",
"@thenavidm/substack-mcp-cli"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"substack-mcp-cli": {
"args": [
"-y",
"@thenavidm/substack-mcp-cli"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add substack-mcp-cli -- npx -y @thenavidm/substack-mcp-cli{
"mcpServers": {
"substack-mcp-cli": {
"args": [
"-y",
"@thenavidm/substack-mcp-cli"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add substack-mcp-cli npx -y @thenavidm/substack-mcp-cliGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the substack-mcp-cli block.
About
Substack MCP Server and CLI lets AI assistants work with a Substack publication. It provides 65 tools for drafts, published posts, Notes, subscribers, analytics, tags, comments and researching other writers. Each tool is available as an MCP tool and as a command in the substack-cli terminal program, under the same names. Substack has no public API, so the project uses your browser session cookie.
Posts are written in Substack's own document format, so embeds such as YouTube videos appear as players and paywalls work as intended, instead of showing raw HTML tags. Publishing, deleting, and posting Notes or comments wait for your approval in the client. The project is aimed at Substack writers and publishers who use Claude Code, Cursor, Claude Desktop or other MCP clients, and the CLI can also run from scripts, cron jobs and CI.
Written from the project's README and checked against it.
Tools it gives your assistant
list_draftsLists drafts you have in progress.create_draftCreates a new draft with a title and body.publish_draftPublishes a draft, and schedules one with schedule_draft.list_postsLists your published posts.rank_postsRanks your posts by how well they perform.publish_notePublishes a Note now.list_subscribersLists the subscribers to your publication.get_revenue_summaryReturns a summary of your revenue.get_post_commentsGets the comments on a post.research_creator_postsStudies posts from another Substack writer.
What you need
- Node.js 22 or newer
- A Substack publication you own, at a yourname.substack.com address
- Your Substack session cookie (connect.sid), or the login command to store it
- Playwriter, optional, to read the cookie from Chrome
- Playwright, optional, for the browser sign-in option
Try asking
- Draft this week's post from my notes in my usual voice.
- Which of my posts got the most paid conversions last month?
- Schedule this Note for 9am Tuesday.
Good to know
- Substack has no public API, so access depends on your browser session cookie.
- Custom domains are not supported. Use the yourname.substack.com address.
- Sessions expire, commonly reported at around 90 days.
- Publishing, deleting, Notes and comments wait for approval in the client.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Substack MCP CLI
All alternatives →Provides keyword research, site audits, rank tracking and AI visibility checks through an MCP server for AI assistants. It is aimed at people who find tools like Semrush and Ahrefs too expensive or bloated.
Analyzes Google Search Console, Google Analytics and keyword data so your AI agent can find SEO and AI search gaps. Built for SaaS and B2B teams using Claude Code, Codex, ChatGPT or Cursor.
NotFair is an open-source plugin of SEO, GEO, and marketing skills for AI agents. It also registers one hosted NotFair MCP connection that uses OAuth. It is for marketers and site owners who work with Claude Code, Codex, Cursor, Gemini CLI, and similar agents.
Connects AI clients to Elmo, an open-source platform that tracks how AI answer engines mention and cite a brand. It lets assistants read visibility data and manage tracked prompts. It is aimed at marketing, SEO, and agency teams doing answer engine optimization.
Clipwright.io turns a script or short brief into a short video, either a talking-actor ad or a faceless video. The assistant gets a free price quote before each render and receives a video URL back.
Reports new AI model, product, tool and repo names as they start to surge, with the generic search terms people use for them. Built for people who make SEO pages, newsletters or directories around new AI terms.
Substack MCP CLI: common questions
Does it need an official Substack API?
No. Substack has no public API, so the project runs on your browser session cookie. The source advises treating that cookie like a password.
Can I use it without an AI app?
Yes. The substack-cli command runs the same tools from a terminal, script, cron job or CI.
Will posts show raw HTML tags?
The source says it writes posts in Substack's own document format, so embeds and paywalls work rather than showing HTML tags.
How do I install Substack MCP CLI?
In Claude Code run claude mcp add substack-mcp-cli -- npx -y @thenavidm/substack-mcp-cli. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Substack MCP CLI the official server?
Substack MCP CLI is published by npm:@thenavidm from its verified domain in the official MCP Registry.
Is Substack MCP CLI free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Substack MCP CLI safe to use?
It scores 70 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
Does Substack MCP CLI work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
