Substack MCP Server

v1.3.2
io.github.marcomoauro/substack-mcp Checked 8 hours ago Published 2 months ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_draft_post

create a draft post on your Substack account.

ParameterTypeDescription
body *stringThe body of the post. Plain text becomes one paragraph per line — Markdown is NOT interpreted, so `## Heading` would appear literally. A JSON string of a Substack document also works and is validate…
subtitle *stringThe subtitle of the post to be created.
title *stringThe title of the post to be created.

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.

ParameterTypeDescription
pathstringAbsolute path to an image file on the machine running this server, read directly from disk with no download. Use this for a locally generated or edited image. The path must be absolute — a relative…
post_idnumberOptional id of the post the image belongs to. Its effect is unconfirmed.
urlstringThe http(s) URL of an image to upload. The server downloads it and re-hosts it on Substack. Private, loopback and link-local hosts are refused. Max 10 MB. HEIC is not accepted. Provide exactly one of…

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.

ParameterTypeDescription
filtersarrayConditions to apply, combined with AND. The API supports no OR and no nesting, so anything needing OR has to be issued as separate calls. Omit to match every subscriber.
limitintegerHow many subscribers to return, 1-100, defaulting to 25.
offsetintegerHow many subscribers to skip, for paging through a large segment.
searchstringFree-text search over subscriber name and email.
sort_bystringColumn to sort by. Any filterable column works.
sort_directionstringSort direction, defaulting to desc.

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.

ParameterTypeDescription
columnsarrayWhich columns to include. Defaults to every column. Available: user_name = Name; user_email_address = Email; country = Country; state = State/Province; group_membership = Group membership; subscriptio…
filtersarrayWhich subscribers to export, using the same conditions as list_subscribers, combined with AND. Omit to export everyone.
max_wait_secondsintegerHow long to wait for Substack to generate the file, 1-600, defaulting to 120. A small export is ready in a few seconds.
searchstringFree-text search over subscriber name and email.

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.

ParameterTypeDescription
status *stringWhich list to read: 'drafts' for unpublished work in progress, 'published' for posts already out, 'scheduled' for posts queued to go out later.
limitintegerHow many posts to return, 1-100, defaulting to 25.
offsetintegerHow many posts to skip, for paging through the archive.
searchstringFree-text search over the posts, matching title and content.
sort_directionstringOverrides the default order. Drafts and published posts are newest-first; scheduled posts are soonest-first. The column sorted on is fixed per status: draft_updated_at, post_date and trigger_at respec…

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.

ParameterTypeDescription
draft_id *integerThe numeric id of the draft, as returned by list_posts (`id`) or create_draft_post (`draft_id`).

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.

ParameterTypeDescription
draft_id *integerThe numeric id of the draft to update, as returned by list_posts (`id`) or create_draft_post (`draft_id`).
audiencestringWho the post is for. `founding` is accepted by the API although the editor does not offer it. Omit to leave it unchanged.
cover_imagestringThe post's cover image, used for the social preview. A URL already on substack-post-media.s3.amazonaws.com or substackcdn.com is used as-is; any other URL is downloaded and re-hosted on Substack first…
default_comment_sortstringThe order comments are shown in. Omit to leave it unchanged.
descriptionstringThe description shown in the social preview. This is NOT the subtitle — draft_subtitle is the subtitle. Omit to leave it unchanged.
draft_subtitlestringNew subtitle. Omit to leave it unchanged.
draft_titlestringNew title. Omit to leave it unchanged.
search_engine_descriptionstringThe SEO description. Substack recommends 50-160 characters. Omit to leave it unchanged.
search_engine_titlestringThe SEO title. Substack recommends under 60 characters. Omit to leave it unchanged.
slugstringThe post's URL slug, the last segment of its public address. Changing it changes the URL the post will be published at. Omit to leave it unchanged.
social_titlestringThe title shown when the post is shared on other platforms. Distinct from draft_title, which is the title on the post itself. Omit to leave it unchanged.
write_comment_permissionsstringWho may comment. `subscribers` means free or paid; `none` disables comments. Omit to leave it unchanged.

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.

ParameterTypeDescription
draft_id *integerThe numeric id of the draft to publish, as returned by list_posts (`id`) or create_draft_post (`draft_id`).
sendbooleanWhether to email the post to subscribers. Defaults to false: the post goes live on the web either way, but an email cannot be unsent, so this must be asked for explicitly.

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.

ParameterTypeDescription
draft_id *integerThe numeric id of the draft to delete, as returned by list_posts (`id`) or create_draft_post (`draft_id`).

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.

ParameterTypeDescription
fullbooleanReturn the complete payload — all 111 fields, ~24 KB, including every notification toggle and the full HTML of the welcome email, terms and privacy pages. Defaults to false, which returns identity a…

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.

ParameterTypeDescription
fullbooleanReturn the complete payload, including the full `subscriptions` array. Defaults to false, which returns identity plus the publications you have a role on.

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.

ParameterTypeDescription
include_hiddenbooleanInclude tags flagged `hidden` — defined on the publication but not shown in its navigation. Defaults to true, since a hidden tag is still usable on a post.

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.

ParameterTypeDescription
post_id *integerThe numeric id of the post, from list_posts. Works for drafts as well as published posts.

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.

ParameterTypeDescription
post_id *integerThe numeric id of the post to tag, from list_posts. Works for drafts too.
tag_name *stringThe tag to add, by name. Matched case-insensitively against existing tags.
create_if_missingbooleanCreate the tag on the publication when no tag by that name exists. Set to false to fail instead — useful when a typo should be reported rather than turned into a new 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.

ParameterTypeDescription
post_id *integerThe numeric id of one of your posts, from list_posts.
limitintegerHow many comments to return. 1–100, defaults to 50.

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.

ParameterTypeDescription
body *stringThe comment text, as plain text. Substack converts it to its own document format server-side.
post_id *integerThe numeric id of one of your posts, from list_posts.

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.

ParameterTypeDescription
active_onlybooleanExclude paused subscriptions and ones whose paid term has expired. Defaults to true.
limitintegerHow many subscriptions to return. 1–500, defaults to 100.

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.

ParameterTypeDescription
afterstringResume from an earlier page: pass the `next_after` value from a previous response. This is a timestamp, not an opaque cursor.
limitintegerHow many posts to return. 1–100, defaults to 20.

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.

ParameterTypeDescription
post_id *integerThe numeric id of the post, from list_reader_posts or get_reader_feed. Works for posts from any publication, not only your own.
include_bodybooleanInclude the post body as HTML. Defaults to true — reading the post is usually the point — but a full body runs to tens of KB, so set it to false when only the metadata is wanted.

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.

ParameterTypeDescription
cursorstringResume from an earlier page: pass the `next_cursor` from a previous response.
include_tabsbooleanAlso return the list of available feed tabs, with their ids. Defaults to false.
limitintegerHow many entries to return. 1–50, defaults to 20.
tabstringWhich feed to read, by tab **id** — 'for-you' (default) or 'subscribed'. Set include_tabs to see the ids available. Use the id, never the display name: the names are localized.

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.

ParameterTypeDescription
cursorstringResume from an earlier page: pass the `next_cursor` from a previous response.
limitintegerHow many entries to return. 1–50, defaults to 20.
typestringFilter what the profile returns: 'notes' for the Notes they wrote, 'posts' for what they published, 'all' (default) for both.
user_idintegerWhose profile to read. Defaults to SUBSTACK_USER_ID — your own. Take another user's id from `author_user_id` on any Note returned by get_reader_feed.

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.

ParameterTypeDescription
comment_id *integerThe numeric id of a Note or comment, from get_reader_feed or get_profile_feed. Without the `c-` prefix Substack uses in its urls.
include_repliesbooleanAlso fetch the reply branches beneath it. Defaults to true.

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.

ParameterTypeDescription
comment_id *integerThe numeric id of the Note to restack, from get_reader_feed or get_profile_feed. Without the `c-` prefix Substack uses in its urls.
tab_idstringThe feed tab the restack is attributed to. Defaults to 'for-you'.

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.

ParameterTypeDescription
limitintegerHow many posts to return, 1-100, defaulting to 25.
offsetintegerHow many posts to skip, for paging through the archive.
order_bystringWhich metric to rank by, defaulting to post_date. Use signups or subscribes for the posts that grew the list, estimated_value for the most valuable, unsubscribes for the ones that cost subscribers, su…
order_directionstringSort direction, defaulting to desc — the highest first.

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.

ParameterTypeDescription
report *stringWhich report to read. unsubscribes — Unsubscribes in a window, broken down by the reason given. unsubscribes_timeseries — Unsubscribes over time. retention — Cohort retention: how much of each s…
from_datestringStart of the window, as YYYY-MM-DD. Only used by the reports that cover a period; defaults to 30 days ago, or a year ago for retention.
limitintegerHow many rows to return. Only used by audience_overlap and subscriber_notes, which default to 6 and 8.
to_datestringEnd of the window, as YYYY-MM-DD. Defaults to today.