substack-mcp
Provides tools for reading Substack publications, posts, comments, author profiles, recommendations, and the Notes feed using a subscriber's session.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@substack-mcplist recent posts from 'The New York Times'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
substack-mcp ๐ฐ
An MCP server for reading Substack โ publications, posts, comments, author profiles, recommendations, and your Notes feed โ using your own reader session, no official API required.
For use with Claude, Codex, and other MCP-compatible coding agents.
It's read-only ๐: nothing it does can post, like, comment, or change your account state.
๐ ๏ธ Tools
Tool | Description |
| List recent posts from a publication |
| Get a post's full content by domain + slug (works on paywalled posts if you're a paid subscriber) |
| Get a post's full content from any post URL, including generic |
| Search posts within a publication |
| Search across every publication you're subscribed to |
| List your subscriptions (free and paid) |
| Get a post's comments, with nested replies, by domain + slug |
| Same, from any post URL |
| Get an author's public profile (bio, social links, publications they write for) |
| List publications a given publication recommends to its readers |
| List recent items from your Notes home feed |
Related MCP server: club-mcp
โ๏ธ How it works
Substack doesn't expose a public API for these reads. Instead, this server replays the same /api/v1/* requests your browser makes when you're logged in, authenticated with your substack.sid session cookie. That means:
You need an active Substack account and a valid session token.
The token expires periodically โ when requests start failing with an auth error, re-extract it (see below).
โ ๏ธ This is an unofficial library and is not affiliated with or endorsed by Substack. It only accesses content you're already entitled to (your own subscriptions, public posts, and your own account data) and doesn't bypass paywalls or rate limits. Be mindful of Substack's Terms of Use when using it.
๐ Setup
git clone https://github.com/ryanrodrigues25200525-svg/substack-mcp.git
cd substack-mcp
npm install
npm run build๐ Get your session token
Log into Substack in your browser.
Open DevTools โ Application/Storage โ Cookies โ
substack.com.Copy the value of the
substack.sidcookie.
๐ Configure your MCP client
Add to your MCP client's config (e.g. Claude Code's ~/.claude.json, under mcpServers):
{
"mcpServers": {
"substack": {
"command": "node",
"args": ["/absolute/path/to/substack-mcp/dist/index.js"],
"env": {
"SUBSTACK_SESSION_TOKEN": "your_token_here"
}
}
}
}๐ซ Never commit your token. Keep it in your local MCP client config only, not in this repo or in version control.
๐งช Development
npm run build # compile TypeScript
SUBSTACK_SESSION_TOKEN=xxx npm test # run the integration test suite against live Substack endpointsThe test suite makes real requests against live publications, so it needs a valid SUBSTACK_SESSION_TOKEN and is subject to Substack's rate limits.
๐ License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server for Substack โ read posts, manage drafts, and upload images. Safe by design: cannot publish or delete.Last updated149015MIT
- Alicense-qualityAmaintenanceRead-only MCP server for the Hyper Human Club / Fluent Community REST API. Enables querying posts, comments, members, and profiles securely without sharing browser sessions.Last updatedMIT
- AlicenseAqualityAmaintenanceMCP server for Substack's official Publisher API that enables querying post analytics, subscriber counts, and publication data through natural language from MCP clients.Last updated65MIT
- Alicense-qualityCmaintenanceMCP server for Substack that enables reading articles, comments, feed, and subscriptions from AI clients like Cursor and Claude, with optional authentication for paid content.Last updated152MIT
Related MCP Connectors
Mastodon MCP โ public Mastodon data via mastodon.social (no auth required)
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Read-only MCP server for Robinhood Chain token discovery, research, and due diligence via GMGN.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ryanrodrigues25200525-svg/substack-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server