Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 70
  • 1 stars
  • 62 a week
  • MIT
  • Updated

Install Substack MCP CLI

Built from the published package, never by AI.

claude mcp add substack-mcp-cli -- npx -y @thenavidm/substack-mcp-cli

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Substack MCP CLI in Claude Code

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

A

No 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 →
OpenSEO every-app
100

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.

AAA Remote 30k
SEO Skill iannuttall
93

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.

AAA Local and remote 6.1k/wk
NotFairnowork-studio
93

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.

AAA Remote 4.4k
Elmo elmohq
92

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.

AAA Remote 772
Clipwright.io seocombat
91

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.

AAC Local and remote 3.4k/wk
New-Term Radarzhuyansen
91

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.

AAA Local 2.3k

Compare with OpenSEO, SEO Skill or NotFair

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.

What are alternatives to Substack MCP CLI?

Similar MCP servers: OpenSEO, SEO Skill, NotFair, Elmo.

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.

Substack MCP CLI Install

Add to stack

Loading.