Substack Reader MCP Server
Enables users to manage and read Substack content directly within Claude, including listing subscriptions and fetching full post details. It supports searching within newsletters and retrieving recent feeds using authenticated browser cookies.
README
Substack Reader MCP Server
An MCP (Model Context Protocol) server for reading your Substack subscriptions from Claude Code.
Installation
# Clone the repo
git clone git@github.com:Kealu-Inc/substack-reader-mcp.git ~/.claude/mcp-servers/substack-reader
# Run setup
cd ~/.claude/mcp-servers/substack-reader
make setup
Features
- list_subscriptions - List all newsletters you subscribe to
- get_feed - Get recent posts from all your subscriptions
- get_recent_posts - Get posts from a specific newsletter
- read_post - Read full content of any post
- search_newsletter - Search within a newsletter
Quick Start
cd ~/.claude/mcp-servers/substack-reader
make setup
This will:
- Install Python dependencies
- Guide you through exporting browser cookies
- Configure your Substack username
- Add the MCP server to Claude Code settings
- Test the connection
Manual Setup
1. Install Dependencies
make install
2. Export Substack Cookies
- Install Cookie-Editor browser extension
- Log into substack.com
- Click Cookie-Editor → Export → Export as JSON
- Save to
~/.config/substack-reader/cookies.json
3. Configure Username
Create ~/.config/substack-reader/config.json:
{
"username": "your-substack-username"
}
Your username is from your Substack profile URL (e.g., substack.com/@username).
4. Configure Claude Code
Run:
make configure
Or manually add to ~/.claude/settings.json:
{
"mcpServers": {
"substack-reader": {
"command": "python3",
"args": ["/path/to/substack-reader/server.py"],
"env": {
"SUBSTACK_USERNAME": "your-username",
"SUBSTACK_COOKIES_PATH": "/path/to/cookies.json"
}
}
}
}
5. Restart Claude Code
The MCP server will load on restart.
Usage Examples
After setup, ask Claude:
- "List my Substack subscriptions"
- "Get my subscription feed"
- "Get recent posts from The Pragmatic Engineer"
- "Read the latest post about system design"
- "Search for 'microservices' in Engineering Leadership"
Testing
make test
Troubleshooting
"No subscriptions found"
- Verify your username is correct
- Check cookies are exported properly (should include
substack.sid)
"Authentication error"
- Re-export cookies from browser (they may have expired)
- Ensure you're logged into Substack when exporting
MCP server not loading
- Check
~/.claude/settings.jsonsyntax is valid JSON - Verify the server path is correct
- Restart Claude Code completely
Files
~/.claude/mcp-servers/substack-reader/
├── server.py # Main MCP server
├── setup.py # Interactive setup wizard
├── Makefile # Setup automation
├── scripts/
│ ├── configure_claude.py
│ └── test_server.py
└── README.md
~/.config/substack-reader/
├── config.json # Username configuration
└── cookies.json # Browser cookies (keep private!)
Security
- Never commit cookies.json - it contains your session
- Cookies expire periodically - re-export when auth fails
- The server only reads content you have access to
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.