# Substack MCP Server [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/marcomoauro/substack-mcp  
**GitHub Stars:** 95  
**npm Downloads (last month):** 783  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/substack-mcp-server

## Description
Manage Substack publishing, subscribers, analytics, reader feeds, comments, and images through MCP.

## Tools
Capabilities this server exposes over MCP:

- **create_draft_post** — create a draft post on your Substack account.
- **set_post_body** — replace the body of a draft with a Substack document. This is the only way to write structured content — headings, lists, links, code blocks, images, buttons and a paywall. Create the draft first with create_draft_post, then call this with its id. The result reports how many nodes of each type were stored, so a caller can confirm that what it asked for is there. An image must already be hosted by Substack: this cannot upload one.
- **upload_image** — Host an image on your Substack publication and get back a Substack URL — the one thing image2.src in set_post_body and cover_image in update_draft will actually render. The source is either an http(s) URL, which the server downloads and re-hosts, or `path`, an absolute path to a local file on the machine running this server, which is read straight from disk: use that for an image you generated or edited locally, with no need to publish it anywhere first. Private and loopback hosts are refused, HEIC is not accepted, max 10 MB.
- **list_subscribers** — List and filter the subscribers of your Substack publication. Supports the same 48 columns and operators as the Subscribers dashboard, combined with AND, plus free-text search, sorting and pagination. Returns `count`, the total matching the filters regardless of `limit`, so a call with limit 1 is a cheap way to size a segment. Engagement columns (email opens, post views, comments, shares, activity rating) can be filtered on here but are not part of the records this tool returns — use export_subscribers to read their values.
- **export_subscribers** — Export subscribers with their full column values, including the engagement metrics list_subscribers can filter on but not return: email opens over 7d/30d/6mo, unique emails seen, post views, unique posts seen, comments, shares, links clicked, days active and activity rating. Takes the same filters as list_subscribers and covers the whole matching set — there is no paging. Substack generates the file asynchronously, so this waits for it and returns the parsed records. One column cannot be exported and is reported in `missing_columns` rather than failing: tag_ids.
- **list_posts** — List the posts of your Substack publication: drafts, published posts or scheduled posts. Supports free-text search, pagination and sort direction. Each post is returned as a summary; use get_draft for the full content of an unpublished one.
- **get_draft** — Read one draft post of your Substack publication in full, including its body and its audience and email settings. Take the id from list_posts or create_draft_post.
- **update_draft** — Change an existing draft's title, subtitle or any of its Post settings: audience, who may comment, comment order, cover image, social preview title and description, SEO title and description, and URL slug. The update is partial: only the fields you pass change, everything else — including the body — is left alone. A cover_image not already hosted by Substack is downloaded and re-hosted first. Take the id from list_posts or create_draft_post.
- **publish_draft** — Publish a draft. The post goes live on the web; `send` additionally emails it to subscribers and defaults to false, because an email cannot be recalled. Publishing cannot be undone from this server — there is no unpublish tool.
- **delete_draft** — Delete an unpublished draft. Refuses if the id belongs to a published post: Substack deletes both through the same endpoint, and removing a live post is irreversible, so that is left to the dashboard.
- **get_publication** — Read the settings and identity of your Substack publication: name, subdomain, custom domain, hero text, copyright, sender name, logo, plans and payment state. Returns a projection by default; pass full: true for all 111 fields.
- **get_user_profile** — Read the account behind the session: id, handle, name, bio, and every publication you have a role on. This is how to discover which publications the session can reach, beyond the one SUBSTACK_PUBLICATION_URL points at.
- **list_publication_tags** — List every tag defined on your Substack publication, with its name, slug and whether it is hidden. Tag ids are UUIDs, so this is how to find one — though add_tag_to_post takes a name and does not need it.
- **get_post_tags** — List the tags on one post, by name. The underlying endpoint returns only UUIDs, so this resolves them against the publication's tag list — it is the only way to read back what add_tag_to_post did, since neither get_draft nor list_posts carries tags.
- **add_tag_to_post** — Add a tag to a post, by tag name, creating the tag on the publication if it does not exist yet. Works on drafts as well as published posts. Reports `already_tagged` rather than failing when the post already carries the tag.
- **get_post_comments** — Read the comments on one of your posts, each with its author, text, reaction and reply counts, and its position in the thread. Comments withheld by Substack's automod are counted separately under automod_hidden_count rather than mixed in.
- **comment_on_post** — Post a public comment on one of your posts, as you. This is published under your name and this server offers no way to delete it.
- **list_subscriptions** — List the Substack publications this account subscribes to, with the plan, membership state and whether emails are on. Excludes paused and expired subscriptions unless asked otherwise. This is what the account reads, not who reads it — for your own subscribers use list_subscribers.
- **list_reader_posts** — List recent posts from the publications this account subscribes to — the reader Inbox — with read state and reading progress. Each post is summarised; use get_reader_post to read one.
- **get_reader_post** — Read one post in full, from any publication — not just your own. Returns the body as HTML along with its author, stats and audience. This is the only way to read the text of someone else's post.
- **get_reader_feed** — Read the Substack Notes feed: Notes and posts surfaced to this account. Pick the feed with `tab` ('for-you' or 'subscribed'), and set include_tabs to discover the ids available.
- **get_profile_feed** — Read what one account has published — its Notes, its posts, or both. Defaults to your own account, so this is how to list the Notes you have written; pass user_id for anyone else.
- **get_comment_thread** — Read one Note or comment together with the replies beneath it, each with its author and its position in the thread. Take the id from get_reader_feed or get_profile_feed.
- **restack_item** — Restack a Note to your own followers. This is public, appears on your profile, and cannot be undone from here — a restack has no id of its own, so there is nothing to delete. Notes only: restacking a post is not supported, because that endpoint 404s even on a valid post id.
- **get_publication_stats** — Read the headline stats of your Substack publication: total and recent subscribers, ARR, site views, and the 30-day email open rate. Takes no arguments. For anything deeper — retention, churn, growth sources, referrals — use get_analytics.
- **get_post_stats** — Rank the posts of your Substack publication by any of 43 per-post metrics. This is how to tell which post actually grew the list (signups, subscribes, free_to_paid_upgrades), which was worth most (estimated_value), which cost you subscribers (unsubscribes), and which people read to the end (subscribers_finished_post) — alongside delivery, opens, clicks, views and restacks. Covers the whole archive with paging. There is no date filter: the endpoint ignores one, so narrow by sorting and paging instead.
- **get_analytics** — Read one publication-level analytics report, covering the dashboard's Stats tabs: cohort retention, unsubscribes and their reasons, growth sources, referrals, audience overlap with other Substacks, subscriber Notes, paid growth, and timeseries for subscribers, followers and ARR. For per-post numbers use get_post_stats instead. Pick a report with `report`; the ones covering a period accept from_date and to_date and otherwise default to the last 30 days.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "substack-mcp-server": {
    "command": "npx",
    "args": ["-y","substack-mcp@latest"],
    "env": {
      "SUBSTACK_PUBLICATION_URL": "",
      "SUBSTACK_SESSION_TOKEN": "",
      "SUBSTACK_USER_ID": ""
    }
  }
}
```

**Requires environment variables:** `SUBSTACK_PUBLICATION_URL`, `SUBSTACK_SESSION_TOKEN`, `SUBSTACK_USER_ID` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Substack MCP Server MCP server does

Substack MCP Server MCP server gives an MCP-compatible client access to publication-management tasks in Substack. It supports post creation and publishing workflows, draft management, subscriber searches and exports, analytics-related subscriber data, reader feeds, tags, comments, and image uploads. The repository describes 27 tools exposed through one server.

The server is intended for authenticated work on a specific publication. It does not use a public Substack API; instead, it sends requests using the authenticated web session associated with the supplied credentials.

## How it works

The server receives MCP tool calls from an LLM client and translates them into requests made with the configured Substack session. For example, `create_draft_post` accepts a title, subtitle, and body, then returns a draft ID and publication state. Plain text is split into paragraphs, while structured content can be supplied as a Substack document JSON string. Markdown is not interpreted as formatting.

Structured post content should be applied with `set_post_body`, whose published schema supports the document node vocabulary used by Substack. `get_draft` can then read an unpublished post, and `list_posts` can search drafts, published posts, or scheduled posts with pagination and sorting.

Subscriber operations support free-text search, filtering, sorting, and pagination. Filters are combined with AND, and the available operators depend on each column's type. `export_subscribers` handles asynchronous exports and includes engagement values that may be filterable but are not returned by the regular subscriber listing.

## Setup and configuration

Substack MCP Server MCP server requires Node.js 22 or newer when installed with npx. Configure the MCP client with the command `npx`, the argument `-y substack-mcp@latest`, and these environment variables:

- `SUBSTACK_PUBLICATION_URL`: the full publication URL.
- `SUBSTACK_SESSION_TOKEN`: the value of the authenticated `substack.sid` or `connect.sid` cookie.
- `SUBSTACK_USER_ID`: the numeric user ID returned by a `publication_user` request.

The repository also publishes a Docker image. A Docker-based MCP configuration passes the same three variables to `marcomoauro/substack-mcp:latest`.

Credentials are collected from the browser's developer tools while signed in to Substack. The session token should be treated as a password, kept local, and excluded from commits, issue reports, and complete Cookie headers. After configuration, a request such as listing recent drafts can verify the connection.

## Tools and capabilities

- Create drafts and update structured post bodies.
- List drafts, published posts, and scheduled posts.
- Search, filter, sort, and paginate subscriber records.
- Export subscriber data, including available engagement metrics.
- Work with publication analytics, reader feeds, tags, comments, and images.

## Limitations and notes

Substack MCP Server MCP server depends on an authenticated web session rather than a public API. Authentication may stop working when the browser session expires or changes; signing in again and obtaining a current token may be necessary.

Subscriber filters do not support OR conditions or nested expressions, so alternatives requiring OR must be issued as separate calls. Engagement fields can be used for filtering but are not necessarily included in `list_subscribers`; exports provide those values instead. Exports cover the complete matching set rather than using pagination, and Substack may omit `tag_ids` and `group_membership` from exported columns. Exported values can also be display-formatted, such as currency strings rather than numeric values.

_Full upstream README: https://allmcps.com/mcp/substack-mcp-server/readme_

