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 Server

MCP server by marcomoauro Community

Manages a Substack publication through MCP, covering posts, drafts, subscribers, analytics, reader feeds, comments and images. Built for Substack writers who want to automate publishing from an AI assistant.

  • Score 67
  • 96 stars
  • 133 a week
  • MIT
  • Updated

Install Substack MCP Server

Built from the published package, never by AI.

claude mcp add substack-mcp-server -e SUBSTACK_PUBLICATION_URL=https://your-publication.substack.com -e SUBSTACK_SESSION_TOKEN=YOUR_SUBSTACK_SESSION_TOKEN -e SUBSTACK_USER_ID=123456789 -- npx -y substack-mcp

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

Step-by-step: install Substack MCP Server 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-server block.

About

Substack MCP Server is a Model Context Protocol server that lets an AI client work with a Substack publication. According to the source, it can create and publish posts, manage drafts, work with subscribers and analytics, browse reader feeds, manage tags and comments, and upload images. The README describes 27 tools in total through one server.

Substack does not provide a public API for these operations, so the server uses the user's authenticated web session. Setup needs three values: the publication URL, a session token and a numeric user ID. It runs through npx with Node.js 22 or newer, or through a published Docker image. The source says it is aimed at people who want automations such as creating posts and managing drafts from an MCP client.

Written from the project's README and checked against it.

Tools it gives your assistant

  • create_draft_postCreates a draft post from a title, subtitle and plain text body.
  • list_postsLists drafts, published or scheduled posts, with search and paging.
  • get_draftReads one draft in full, including body and audience settings.
  • set_post_bodyReplaces a draft's body with a structured document such as headings, lists, links or a paywall.
  • upload_imageHosts an image on Substack from a URL or a local file for use in posts.
  • list_subscribersLists and filters subscribers using column conditions, search and sorting.
  • export_subscribersExports subscribers with every column value, including engagement metrics.

What you need

  • Node.js 22 or newer, or Docker
  • A Substack account with a publication
  • Publication URL
  • Session token from the browser (substack.sid or connect.sid cookie)
  • Numeric Substack user ID
SettingNeededWhat it is
SUBSTACK_PUBLICATION_URLEnvironment variableRequiredFull URL of your Substack publication, including https://
SUBSTACK_SESSION_TOKENEnvironment variable, secretRequiredValue of the substack.sid or connect.sid cookie from your authenticated Substack session
SUBSTACK_USER_IDEnvironment variableRequiredNumeric user ID returned by Substack's publication_user request

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • List my five most recent Substack drafts.
  • Create a draft post titled "Weekly notes" with this text as the body.
  • Export my subscribers with their engagement columns and summarise them.

Good to know

  • Substack has no public API for these operations, so the server relies on an authenticated web session.
  • The session token must be refreshed by signing in again when authentication stops working.
  • Engagement columns can be filtered in list_subscribers but are returned only by export_subscribers.
  • tag_ids and group_membership cannot be exported.

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 Server

All alternatives →
World Monitor koala73
98

World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.

ACA Remote 91k
Power BI Authoring MCP Server (Local) microsoft
95

Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.

AAA Local 9.7k/wk
Seal Open Data ariacom
95

Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.

AAA Remote 1.7k
OpenMetadataopen-metadata
94

OpenMetadata MCP server lets MCP-compatible assistants search metadata, inspect lineage, and manage data quality tests. It is for data teams and AI agents that need governed context about enterprise data.

AAA Remote 16k
Flint Chart MCP microsoft
94

Compiles, validates and renders semantic chart specs for AI assistants through the Model Context Protocol. It is for agents that need reliable, good-looking and interactive charts across several chart libraries.

AAA Local 4.6k
PostHog PostHog
94

Query PostHog analytics, manage feature flags and experiments, and investigate errors from your AI assistant. It suits product teams and developers who already use PostHog for analytics, replays, and error tracking.

AFA Remote 41k

Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data

Substack MCP Server: common questions

Does Substack MCP Server use an official Substack API?

No. The source says Substack does not provide a public API for these operations, so the server uses the user's authenticated web session.

Can it upload images to Substack posts?

Yes, through upload_image, which hosts an image from a URL or local file. The source says downloaded images may not exceed 10 MB and HEIC files are rejected.

Can it publish posts directly from an assistant?

The source says the server can create and publish posts. It also says a document may contain at most one paywall node.

How do I install Substack MCP Server?

In Claude Code run claude mcp add substack-mcp-server -e SUBSTACK_PUBLICATION_URL=https://your-publication.substack.com -e SUBSTACK_SESSION_TOKEN=YOUR_SUBSTACK_SESSION_TOKEN -e SUBSTACK_USER_ID=123456789 -- npx -y substack-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Substack MCP Server the official server?

Substack MCP Server is a community project by marcomoauro, not verified by a company domain.

Is Substack MCP Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Substack MCP Server safe to use?

It scores 67 of 100. Grades: maintenance C, licence A, quality B. 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 Server?

Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.

Does Substack MCP Server 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 Server Install

Add to stack

Loading.