Manage Substack publishing, subscribers, analytics, reader feeds, comments, and images through MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) Server for Substack enabling LLM clients to interact with Substack's API for automations like creating posts, managing drafts, and more.
Create and publish posts, work with subscribers and analytics, browse your reader feeds, manage tags and comments, and upload images β 27 tools exposed through one MCP server.
[!IMPORTANT] Substack does not provide a public API for these operations. This server uses your authenticated web session. Treat the session token exactly like a password: keep it local, never commit it, and never include it or a complete Cookie header in a bug report.
The fastest installation uses Node.js 22 or newer and npx.
Sign in to Substack in your browser and open your publication dashboard. You need three values:
https://your-publication.substack.com.Cookie header and locate a session cookie named
substack.sid or connect.sid. Copy its value without the cookie name or the rest of the header.
If both names appear with different values, test them separately and locally with the read-only
verification in step 3; never paste either value into an issue.publication_user request. In
its JSON response, copy the numeric id inside the user object.If the browser UI differs, the illustrated credential guide shows the same requests. If authentication later stops working, sign in again and repeat these steps to obtain the current token.
For clients that accept MCP JSON configuration, add:
Replace the three example values, save the configuration, and restart your MCP client. Consult your client's documentation if it uses a different configuration format.
Ask your client:
List my five most recent Substack drafts.
The client should call list_posts with status: "drafts". If it fails, check the client's MCP
logs and the logging section below before opening an issue.
To use the published Docker image instead of Node.js, add this server configuration:
Inputs:
title (string): Title of the postsubtitle (string): Subtitle of the postbody (string): Body of the post. Plain text becomes one paragraph per line β Markdown is not
interpreted, so ## Heading arrives literally. A JSON string of a Substack document also works
and is validated against the same schema set_post_body publishes, so an unrecognised node name
is an error rather than a silently mangled post.Returns: {draft_id, is_published}. Pass draft_id to get_draft to read the draft back.
For anything structured β headings, lists, links, code, images, a paywall β use set_post_body
after creating the draft: the schema is published there, so the calling model can read the node
vocabulary rather than guess at it.
Exposes the same filtering the Subscribers dashboard offers: 48 columns, 18 operators, free-text search, sorting and pagination.
Inputs:
filters (array, optional): conditions combined with AND, each {column, operator, value}search (string, optional): free text matched against subscriber name and emailsort_by (string, optional): any filterable columnsort_direction (asc | desc, optional): defaults to desclimit (number, optional): 1β100, defaults to 25offset (number, optional): for pagingWhich operators a column accepts depends on its type:
| Type | Operators |
|---|---|
Int | is is_not gt gte lt lte |
String | is is_not is_any_of contains starts_with ends_with includes_none |
DateTime | is_on is_after is_on_or_after is_before is_on_or_before |
Array (tag_ids, emails_enabled) | includes_any includes_all includes_none |
subscription_type, group_membership | is is_not is_any_of |
The columns cover subscriber identity (name, email, country, state, group membership), subscription (type, start/expiry/cancel dates, revenue, Stripe plan, attribution), email engagement (opens and unique opens over 7d/30d/6mo, links clicked, sections) and site engagement (post views, unique posts seen, comments, shares, days active, activity rating). The full list with types reaches the client in the tool's JSON Schema, so a model does not have to guess names.
Returns: {count, returned, limit, offset, subscribers}. count is the total matching the
filters regardless of limit, so a call with limit: 1 is a cheap way to size a segment.
Note: engagement columns can be filtered on here but are not part of the records this tool returns β Substack takes the fields it returns from the publication's saved Display settings and ignores a per-request column list. Use
export_subscribersto read their values.
There is no OR and no nesting: anything needing OR has to be issued as separate calls.
The way to actually read the engagement metrics list_subscribers can only filter on: email opens
over 7d/30d/6mo, unique emails seen, post views, unique posts seen, comments, shares, links clicked,
days active and activity rating.
Inputs:
filters (array, optional): the same conditions as list_subscribers, combined with ANDsearch (string, optional): free text matched against subscriber name and emailcolumns (array, optional): which columns to include, defaulting to all of themmax_wait_seconds (number, optional): 1β600, defaulting to 120Returns: {count, columns, missing_columns, unmapped_columns, export_id, subscribers}, where
each subscriber is keyed by column name.
Substack generates the file asynchronously, so the tool creates a subscriber set, requests the
export, polls until it is ready and downloads it. A small export lands in a few seconds. If the wait
budget runs out the tool says so and names the export_id rather than blocking.
Two caveats, both verified against the live API:
tag_idsandgroup_membershipcannot be exported. Substack drops them silently rather than failing, so they are reported inmissing_columnsβ asking for all 48 columns returns 46.- Values arrive display-formatted, not raw: revenue is
"β¬50.00"here and the number50throughlist_subscribers. Dates are ISO strings.
There is no paging: an export covers the whole matching set.
Inputs:
status (drafts | published | scheduled): which list to readsearch (string, optional): free text matched against title and contentlimit (number, optional): 1β100, defaults to 25offset (number, optional): for pagingsort_direction (asc | desc, optional): drafts and published posts are newest-first,
scheduled posts soonest-firstReturns: {status, total, returned, limit, offset, posts}, each post summarised β use
get_draft for the full content of an unpublished one.
Inputs:
draft_id (number): the id returned by list_posts or create_draft_postReturns: the draft as Substack stores it, body and audience/email settings included.
The only way to write structured content: headings, lists, links, code blocks, quotes, images,
buttons and a paywall. create_draft_post takes plain text; this takes the document Substack
actually stores, and its schema is published in tools/list so the calling model can read the node
vocabulary instead of guessing.
Inputs:
draft_id (number): the id returned by list_posts or create_draft_postbody (object): a Substack ProseMirror document β {type: 'doc', content: [...]}No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/substack-mcp-server)<a href="https://allmcps.com/mcp/substack-mcp-server"><img src="https://allmcps.com/api/badge/substack-mcp-server?style=directory" alt="Substack MCP Server on AllMCPs" /></a>