◉ Pulse
alxgntv avatar
#63 today ▲ 15

alxgntv/substack-api-mcp

Python Library

MCP server for Substack posts (FastMCP + substack-api-client)

Created Jul 28, 2026
Stars
66
Today
+4
Forks
0
Quality
90/100
Momentum
26

README

Fetched from GitHub on Nov 7, 2026, 1:06 AM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to alxgntv/substack-api-mcp and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. See the repository for its license terms. Copyright / takedown policy.

Substack API MCP

Claude + Substack

Substack does not provide a native public API for publishing posts.

But authors who want to draft, publish, and schedule from AI agents (Cursor, Claude, and other MCP hosts) still need a way out. This is the MCP server to publish to Substack via any agent.

Will not start without a valid APISUBSTACK_API_KEY (ask_*). Get API key here: apisubstack.com.

Why this exists

Reality What we built
No official Substack write/publish API for authors A posting MCP so agents can create drafts, publish now, and schedule
Authors live in the browser editor Authors publish through their agents instead
Session-cookie auth is the practical path today substack.sid + your publication URL, gated by an API Substack key

Examples

Tools

Tool Description
test_connection Verify substack.sid and return profile
create_post Create draft / publish now / schedule (+ optional tags)
get_draft Fetch draft by id
pangram_detection Pangram AI-text / AI-slop check on a draft
update_draft Update draft fields
publish_post Publish existing draft
schedule_post Schedule existing draft
delete_draft Delete draft
list_tags List publication tags
create_tag Create tag
set_tags Ensure + attach tags
get_post_tags List tags on a post/draft
create_note Create a Substack Note (optional link attachment)
delete_note Delete a Substack Note by id

Install

cd /path/to/Substack-API-MCP
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Auth env

  1. Sign in at apisubstack.com, start the free trial, generate an ask_* API key.
  2. Copy your Substack substack.sid cookie:
    • Open Chrome and sign in to Substack.
    • Open DevTools → Application → Cookies.
    • Select https://substack.com (or your publication host, e.g. https://yourname.substack.com).
    • Find the cookie named substack.sid and copy its Value.
  3. Export:
export APISUBSTACK_API_KEY="ask_YOUR_KEY"
export SUBSTACK_PUBLICATION_URL="https://yourname.substack.com"
export SUBSTACK_SID="YOUR_SUBSTACK_SID_VALUE"
# optional
# export SUBSTACK_USER_ID="123456"

Cookies expire. If you get 401/403, refresh substack.sid and try again.

Run

substack-api-mcp
# or
python -m substack_api_mcp

Cursor / Claude Desktop config

See mcp.example.json:

{
  "mcpServers": {
    "substack-api": {
      "command": "/ABSOLUTE/PATH/TO/Substack-API-MCP/.venv/bin/substack-api-mcp",
      "args": [],
      "env": {
        "APISUBSTACK_API_KEY": "ask_YOUR_KEY",
        "SUBSTACK_PUBLICATION_URL": "https://yourname.substack.com",
        "SUBSTACK_SID": "YOUR_SUBSTACK_SID_VALUE"
      }
    }
  }
}

Use absolute paths. Restart the host after config changes.

License

Attribution-or-Royalty (source available). See LICENSE and COMMERCIAL_LICENSE.md.

  • Non-commercial use: allowed (keep copyright + license notice).
  • Commercial use: either visible attribution everywhere the software is used, or a paid royalty / commercial license via apisubstack.com.

Use at your own risk. Not affiliated with Substack. Built so authors can publish through their agents when Substack itself does not offer a native publishing API.

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Jul 28, 2026

first spotted on the list

Best rank

#2

top 3 on trending

Appearances

3

times on the trending list

Quality score

90

out of 100

Momentum

26

trend strength indicator

Star velocity

0.65

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot
5055606570alxgntv/substack-api-mcp · Jul 28, 7 PM UTC: 52 starsalxgntv/substack-api-mcp · Jul 29, 2 AM UTC: 62 starsalxgntv/substack-api-mcp · Jul 29, 8 AM UTC: 66 stars7 PM2 AM8 AM

Rank history

position on trending · lower is better
#1#10#20#30#40#50#60#70Jul 28, 7 PM UTC: rank #2Jul 29, 2 AM UTC: rank #20Jul 29, 8 AM UTC: rank #637 PM2 AM8 AM

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/alxgntv/substack-api-mcp" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="alxgntv/substack-api-mcp — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

alxgntv/substack-api-mcp stars badge
Markdown
[![alxgntv/substack-api-mcp](https://www.notionpulse.cc/api/badge/alxgntv/substack-api-mcp.svg)](https://www.notionpulse.cc/repo/alxgntv/substack-api-mcp)
HTML
<a href="https://www.notionpulse.cc/repo/alxgntv/substack-api-mcp"><img src="https://www.notionpulse.cc/api/badge/alxgntv/substack-api-mcp.svg" alt="alxgntv/substack-api-mcp stars badge" /></a>

Repository of the Day

#2 Repository of the Day

Repository of the Week

#2 Repository of the Week

Repository of the Month

#2 Repository of the Month