Skip to main content
Glama

๐Ÿ“ฐ Substack MCP (substack-mcp)

CI Status Python Version FastMCP Version FastAPI React Vite Tailwind CSS just Ruff Biome Pyright Tauri License

FastMCP 3.1+ Model Context Protocol (MCP) server & SOTA React webapp dashboard for Substack newsletters.

Quick Start โ€ข What is Substack? โ€ข Dual Capabilities โ€ข Onboarding โ€ข Just Commands โ€ข Documentation


๐Ÿง  What is Substack?

Substack is an independent publishing platform and creator network founded in 2017. It allows writers, journalists, researchers, podcasters, and thinkers to publish long-form newsletters directly to their readers' email inboxes and the web.

+-----------------------------------------------------------------------------------+
|                              Substack Publication                                 |
+----------------------------------------+------------------------------------------+
                                         |
     +-------------------+---------------+---------------+--------------------+
     |                   |                               |                    |
     v                   v                               v                    v
+---------+     +------------------+           +-------------------+    +-------------------+
|  Posts  |     | Substack Notes   |           |  Substack Chat    |    | Subscriber Tiers  |
| (Email  |     | (Short-form      |           | (Community        |    | (Free, Monthly,   |
| + Web)  |     |  Social Feed)    |           |  Messaging)       |    |  Annual, Founder) |
+---------+     +------------------+           +-------------------+    +-------------------+

๐Ÿ“– Want a deep dive? Read our complete Substack Primer Guide covering Substack's history, platform architecture, RSS endpoints, and monetization strategies.


Related MCP server: Substack Reader MCP Server

โšก Dual Capabilities: Search/Read & Draft/Publish

substack-mcp is designed for both readers/researchers and creators/publishers:

Workflow Mode

Auth Required?

Capabilities & Features

๐Ÿ” Search & Read (Public Mode)

No Login Needed

โ€ข Ingest RSS feeds from any Substack newsletter domainโ€ข Full-text offline article search in local SQLiteโ€ข Reader pane & audio/podcast detailsโ€ข Star & bookmark favorite articles

โœ๏ธ Draft & Publish (Author Mode)

Requires substack.sid Cookie

โ€ข Stage, edit, and update Substack post draftsโ€ข Convert Markdown to Substack HTML with paywalls (<!-- paywall -->)โ€ข Local AI Writing Assistant (Ollama, LM Studio)โ€ข Subscriber growth metrics, view counts, & open ratesโ€ข Post comment browsing & reply staging


๐Ÿš€ Built-in Onboarding & Help

To get you up and running in minutes, substack-mcp includes interactive onboarding directly inside the webapp and in the documentation:

  • ๐Ÿ“ฑ Interactive Webapp Dashboard (http://127.0.0.1:11164):

    • Onboarding Tab: Step-by-step setup wizard.

    • Help & System Diagnostics Tab: Live health check cards for API Backend (:11163), SQLite DB, Substack Cookie Auth, and Local LLMs.

    • Cookie Extractor Tutorial: Visual guide to copy your substack.sid session cookie from Browser DevTools (F12) into Settings.

    • MCP Client Integration Snippets: One-click endpoints for Google Antigravity, Claude Desktop, and Cursor.

  • ๐Ÿ“š Repo Guides: See INSTALL.md and docs/ONBOARDING.md.


โš™๏ธ just Task Runner Commands

All common tasks are defined in the repository justfile:

# Run full quality check (lint + typecheck + pytest)
just check

# Run Python Pytest test suite
just test

# Lint backend (ruff) and webapp (biome)
just lint

# Format code (ruff format & biome format)
just format

# Static typecheck (pyright & tsc)
just typecheck

# Start unified dev servers (clears zombie ports, starts backend & webapp, opens browser)
just start

# Pack .mcpb desktop package
just mcpb-pack

# Build Tauri NSIS Windows installer
just tauri-build

# Run headless CUA smoke test
just cua-smoke

โšก Quick Start

1. Launch Server & Webapp Dashboard

# Clone the repository
git clone https://github.com/sandraschi/substack-mcp.git
cd substack-mcp

# Launch backend (11163) and dashboard (11164) via just or PowerShell script
just start
# or: .\start.ps1

The webapp dashboard will automatically open in your default browser at http://127.0.0.1:11164.

2. Connect AI Assistants (Google Antigravity / Claude Desktop)

Point your MCP client configuration to the FastMCP Streamable HTTP endpoint:

http://127.0.0.1:11163/mcp

๐Ÿ› ๏ธ Portmanteau MCP Tools

Tool

Operations

Description

substack_feed

fetch, list_publications, query, get_article

Ingest RSS feeds, list tracked newsletters, search articles

substack_drafts

create, list, get, update, delete, convert_markdown

Stage drafts, edit content, render Markdown HTML

substack_stats

record, get, summary

Track subscriber metrics, post views, open rates

substack_community

get_comments, post_comment

Read article comments and stage discussion responses


๐Ÿ“ Sub-Package Documentation


๐Ÿ“„ License

Distributed under the MIT License.

Related MCP Connectors

Related MCP Servers