Substack MCP
Fetches and parses the RSS feed of a given Substack publication, allowing AI clients to read and research its latest published content.
Provides authenticated Substack publication management: creating and updating formatted drafts, publishing immediately, scheduling posts, listing drafts/published/scheduled posts, previewing drafts, uploading images, deleting or duplicating posts, reading post content and analytics, inspecting sections and subscriber counts, plus public research tools (topic/post/publication research, RSS feeds, profile lookup, study plans) and content strategy tools (idea generation, repurposing, gap analysis, title/hook optimization, series planning).
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Substack MCP
An MCP server for Substack that lets AI clients work with your publication and research public Substack content.
It supports:
authenticated account tools for drafts, publishing, scheduling, previews, sections, and post analytics
limited documented integration tools for RSS feeds, embeds, and profile lookup
public research tools for finding, analyzing, and studying Substack posts and publications
content strategy tools for ideas, hooks, repurposing, gap analysis, and series planning
The account side is the primary supported surface. Research and strategy tools are intentionally heuristic and public-web-limited.
This project is unofficial and is not affiliated with Substack Inc.
What You Can Do
With your own Substack account:
create formatted drafts
update drafts
publish immediately
schedule future posts
list drafts, published posts, and scheduled posts
preview drafts
upload images
inspect sections
read post content
get post analytics
With public Substack content:
fetch a publication's RSS feed
inspect the limited documented Substack integration options for a publication, post, or note
look up public Substack profiles by LinkedIn handle through Substack's narrow help-documented Developer API
research a topic across Substack
analyze a public post URL
analyze a publication URL
create a study plan around a topic
heuristically summarize coding lessons from public posts
For strategy:
analyze your own posts
generate post ideas
repurpose posts into other formats
run content gap analysis
improve titles and hooks
plan a series
Related MCP server: Substack MCP Server
Requirements
Node.js >= 16Python >= 3.10a Substack publication URL such as
https://yourpublication.substack.com
Install
Install globally with npm:
npm install -g github:IgnazioDS/Substak-MCPThis installs two commands:
substack-mcp
substack-mcp-setupNaming note:
the repository is
IgnazioDS/Substak-MCPthe current npm package is
@ignaziods/substack-mcpthe installed commands are
substack-mcpandsubstack-mcp-setupthe default MCP server key in examples is
substack-mcp
Migrating From the Old Package
If you previously installed the older plus-era package, remove it before installing from this repository:
npm uninstall -g @ignaziods/substack-mcp-plus
npm install -g github:IgnazioDS/Substak-MCP
substack-mcp-setupAfter reinstalling, fully restart your MCP client so it reloads the command.
First-Time Setup
Run the setup wizard:
substack-mcp-setupThe setup flow will:
open a browser
let you sign in to Substack
handle CAPTCHA/manual login flow
store an encrypted browser session locally for later use
The local auth file lives at ~/.substack-mcp/auth.json. The setup stores
the browser session cookie jar after login, not your Substack password.
If you already have auth stored under ~/.substack-mcp-plus/, the runtime
reuses that legacy directory until you migrate it.
If Substack sends an email sign-in link, open or paste that link in the same
browser window opened by substack-mcp-setup. That same-browser step is
what lets the setup capture the final authenticated session.
If your client later says authentication failed, run the setup again.
MCP Client Config
Use this server in any MCP client that supports a stdio server definition.
Server block:
{
"mcpServers": {
"substack-mcp": {
"command": "substack-mcp",
"env": {
"SUBSTACK_PUBLICATION_URL": "https://YOUR_PUBLICATION.substack.com",
"SUBSTACK_DEVELOPER_API_TOKEN": "optional-developer-api-token"
}
}
}
}SUBSTACK_DEVELOPER_API_TOKEN is only needed for the limited Developer API
profile-lookup surface. Most account tools and public research flows do not
require it.
If your GUI client does not inherit your shell PATH, use an absolute path instead:
which substack-mcpThen replace "substack-mcp" with the full path to the binary.
Client Notes
Claude Desktop Config file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\\Claude\\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Claude Code Add the same
mcpServers.substack-mcpblock to~/.claude.json.Codex Add this to
~/.codex/config.toml:[mcp_servers.substack-mcp] command = "substack-mcp" [mcp_servers.substack-mcp.env] SUBSTACK_PUBLICATION_URL = "https://YOUR_PUBLICATION.substack.com" SUBSTACK_DEVELOPER_API_TOKEN = "optional-developer-api-token"Cursor Add the same server block anywhere Cursor expects MCP server JSON.
Antigravity Add the same server block anywhere Antigravity expects MCP server JSON.
Windsurf Add the same server block anywhere Windsurf expects MCP server JSON.
Generic MCP client Use the same stdio definition if the client supports
command+env.
After updating the config, fully restart the client.
Tool List
The server currently registers 29 tools.
Publishing and Account Tools
create_formatted_postupdate_postpublish_postschedule_postlist_draftslist_publishedlist_scheduled_postsget_post_contentget_post_analyticsduplicate_postpreview_draftupload_imagedelete_draftget_sectionsget_subscriber_count
Developer and Public Research Tools
get_publication_rss_feedget_substack_integration_optionssearch_substack_profiles_by_linkedinresearch_substackresearch_substack_postresearch_substack_publicationstudy_topic_on_substackextract_coding_lessons
Strategy Tools
analyze_my_postsgenerate_post_ideasrepurpose_postcontent_gap_analysistitle_and_hook_optimizerseries_planner
Example Prompts
Account Workflows
List my latest draftsShow me my scheduled postsGet the content of draft 123456Create a draft titled "Why SwiftUI image caching matters" with markdown contentSchedule draft 123456 for 2026-03-12T09:00:00ZShow analytics for published post 123456
Research Workflows
Fetch the RSS feed for https://example.substack.comWhat documented integration options does https://example.substack.com support?Search Substack profiles for LinkedIn handle johndoeResearch Substack for swiftui image cachingResearch this Substack post: https://www.oneusefulthing.org/p/change-blindnessResearch this publication: https://oneusefulthing.substack.comStudy SwiftUI performance on SubstackExtract coding lessons from https://example.substack.com/p/some-post
Strategy Workflows
Analyze my postsGenerate post ideas for indie iOS app marketingRepurpose my latest draft into a Twitter threadImprove the title and hook for post 123456Plan a 5-part series on Swift concurrency
Notes About Confirmation
High-risk write actions are protected by a server-side confirmation token flow, not just description text.
First call: request a preview without
confirm_*.Server response: preview text plus
confirmation_token.Second call: resend the same arguments with
confirm_*=trueandconfirmation_token=<token>.
Protected tools:
create_formatted_postupdate_postpublish_postschedule_postduplicate_postdelete_draft
Known Limitations
These are the current honest limits, not marketing wallpaper:
schedule_postis implemented through a reverse-engineered private endpoint and should be treated as best-effort until it has been smoke-tested against your publication.get_subscriber_countmay return an unavailable state if Substack does not expose a reliable count through publication metadata, page markup, or section data.preview_draftmay return an author-only/publish/post/...URL when Substack does not expose a shareable preview token.upload_imageaccepts local paths and direct image URLs, but rejects unsupported image content and files larger than 25 MB.Public research works best on focused queries such as
swiftui image cachingorios concurrencyrather than very broad topics.Broad-topic discovery can still have lower recall than niche queries.
study_topic_on_substackandextract_coding_lessons(query=...)depend on the quality of the underlying discovery results.extract_coding_lessonsis heuristic summarization, not a structured extractor.Public research tools only work on public pages that are reachable and parseable, identify themselves with a project User-Agent, and honor
robots.txt.search_substack_profiles_by_linkedinmay require prior Developer API approval and a token. If anonymous requests fail, setSUBSTACK_DEVELOPER_API_TOKENor passdeveloper_api_tokendirectly to the tool.Substack does not appear to offer a broad public developer portal. The repo only treats RSS plus a narrow Help Center documented profile-lookup endpoint as semi-official surfaces; most account tools still depend on internal or reverse-engineered behavior.
For a real-account release audit, use the live smoke guidance in docs/LIVE_SMOKE_TEST.md.
Troubleshooting
Command not found
Your client may not inherit your shell PATH.
Find the installed binary:
which substack-mcpThen use the absolute path in the client config.
Authentication failed
Run setup again:
substack-mcp-setupIf Substack sent a sign-in email, paste the email link into the same setup browser window before closing it.
MCP shows connected but tools do not appear
This is usually a client session cache issue.
Do this:
fully quit the MCP client
reopen it
start a fresh session
Research results are weak or empty
Try a narrower query.
Better:
swiftui image loadingswiftui asyncimageios monetization
Usually weaker:
AI for workcodingproductivity
GUI client still cannot launch the server
Use an absolute command path instead of substack-mcp.
Development
For local development, activate the project virtual environment first:
source venv/bin/activate
python3 -m pip install -e '.[dev]'Run tests:
python3 -m pytest -qRun the Python server directly:
python3 -m src.serverRun the npm wrapper entrypoint used by the installed CLI:
node src/index.jsIf you are developing from the repository and the auth setup cannot launch Chromium, install the Playwright browser once:
python3 -m playwright install chromiumSecurity
Do not commit tokens, passwords, or private keys.
Prefer interactive setup over hardcoded credentials.
Stored browser session data is encrypted under
~/.substack-mcp/.Use obvious placeholders in configs and examples.
Re-run authentication if a stored Substack session expires.
See SECURITY.md for project security notes.
Consider Sponsor This Project
Substak-MCP is built and maintained in the open by @IgnazioDS. If your team relies on it, or you'd like to support continued development of new tools, integrations, and improvements, please consider sponsoring:
❤️ GitHub Sponsors: https://github.com/sponsors/IgnazioDS
Sponsorships fund ongoing maintenance, new features (more MCP clients, deeper Substack analytics, smarter research tools), bug fixes, and community support. Even a small monthly tier makes a real difference.
Other Ways To Help
⭐ Star this repository so other Substack writers and AI builders can find it.
🐦 Share it with creators using Claude, Cursor, Codex, Windsurf, or any MCP client.
🐛 Open an issue for bugs or feature requests.
🔀 Submit a pull request — contributions are very welcome.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Draft, schedule, and analyze content for Substack, Medium, LinkedIn, X, Bluesky, and Threads.
Manage your blog ideas, article schedule, writing runs and draft approvals from your AI app.
A blog CMS that AI agents write into over MCP: Markdown drafts, versions, media, human approval.
Create, edit, organize, publish, and configure JustBlogged blogs from MCP clients.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables publishing blog posts directly to Dev.to through the Model Context Protocol, allowing seamless content creation and publication via natural language interactions.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables programmatic management of Substack content, including creating drafts, publishing posts, and uploading images. It supports specialized features like live blogging and posting to Substack Notes through MCP-compatible AI tools.MIT
- AlicenseNot gradedqualityDmaintenanceEnables WordPress content management through the Model Context Protocol, allowing AI agents to create, read, update, and delete posts, metadata, taxonomies, and terms, as well as interact with Gutenberg blocks.1GPL 2.0
- AlicenseNot gradedqualityDmaintenanceEnables WordPress content management via the Model Context Protocol, allowing creation, update, search, and retrieval of posts, as well as fetching block type schemas for generating block-based content.10ISC