Substack

v1.0.0β€’Communicationβ€’stable

πŸ“‡ ☁️ - MCP server for Substack β€” read posts, manage drafts, publish Notes, get comments, a

substackmcpai-integration
Share:
40
Stars
0
Downloads
0
Weekly
0/5

What is Substack?

Substack is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to πŸ“‡ ☁️ - mcp server for substack β€” read posts, manage drafts, publish notes, get comments, a

πŸ“‡ ☁️ - MCP server for Substack β€” read posts, manage drafts, publish Notes, get comments, a

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP protocol support

Use Cases

Read posts, manage drafts, publish Notes, and retrieve comments on Substack publications. Manage newsletter content programmatically.
nanameru

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y substack

Manual Installation

npx -y substack

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Substack

The Substack MCP server gives AI assistants programmatic access to Substack publications, enabling them to read existing posts, create and update drafts in Markdown, schedule or publish content, upload images, and manage Notes. It authenticates via your Substack session token and publication URL, making it straightforward to integrate newsletter workflows into AI-driven content pipelines. Writers and publishers who want to draft, edit, or automate publishing of Substack content directly from Claude or other AI tools will find this server especially useful.

Prerequisites

  • Python 3.10+ with uv or pip
  • A Substack account with an active publication
  • Your Substack session token (SUBSTACK_SESSION_TOKEN) from browser cookies
  • Your publication URL (SUBSTACK_PUBLICATION_URL, e.g. https://yourname.substack.com)
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Clone the repository and install dependencies

Clone the substack-mcp repository and install it into a local virtual environment using uv.

git clone https://github.com/nanameru/substack-mcp.git
cd substack-mcp
uv pip install -e .
2

Run the interactive setup to configure credentials

The package provides a setup wizard that stores your publication URL and session token in a config file so you don't have to hardcode them.

substack-mcp-setup
3

Obtain your Substack session token

Log in to Substack in your browser, open Developer Tools > Application > Cookies, and copy the value of the substack.sid cookie. This is your SUBSTACK_SESSION_TOKEN.

4

Register the server with Claude Code

Use the claude mcp add command to register substack-mcp as a user-scoped MCP server pointing to the installed binary.

claude mcp add substack-mcp --scope user -- ~/.venv/bin/substack-mcp
5

Or add manually to Claude Desktop config

Edit claude_desktop_config.json with the correct path to the substack-mcp binary and your environment variables.

{
  "mcpServers": {
    "substack": {
      "command": "/path/to/.venv/bin/substack-mcp",
      "env": {
        "SUBSTACK_PUBLICATION_URL": "https://yourname.substack.com",
        "SUBSTACK_SESSION_TOKEN": "your_session_token"
      }
    }
  }
}

Substack Examples

Client configuration

Claude Desktop config using environment variables for Substack credentials.

{
  "mcpServers": {
    "substack": {
      "command": "/path/to/substack-mcp/.venv/bin/substack-mcp",
      "env": {
        "SUBSTACK_PUBLICATION_URL": "https://yourname.substack.com",
        "SUBSTACK_SESSION_TOKEN": "your_substack_session_token"
      }
    }
  }
}

Prompts to try

After connecting, use these prompts to manage your Substack publication.

- "List all my current drafts on Substack"
- "Create a new draft titled 'The Future of AI Agents' with this outline as the body"
- "Schedule the draft with ID 12345 to publish on Friday at 9am"
- "Publish draft 12345 and send it to email subscribers"
- "Upload the image at /path/to/cover.png and set it as the cover image for my latest draft"

Troubleshooting Substack

Authentication fails β€” session token rejected

The substack.sid cookie value expires when you log out or after inactivity. Log back in to Substack, copy a fresh cookie value, and update SUBSTACK_SESSION_TOKEN in your config or re-run substack-mcp-setup.

substack-mcp binary not found after installation

Confirm you installed the package with uv pip install -e . inside the project directory. Run which substack-mcp or find ~/.venv -name substack-mcp to locate the installed binary and use that full path in your config.

Drafts are created but publish fails

Publishing requires an active Substack subscription on your account and a properly configured publication. Verify that your account has publishing permissions and that SUBSTACK_PUBLICATION_URL points to your publication, not the Substack home page.

Frequently Asked Questions about Substack

What is Substack?

Substack is a Model Context Protocol (MCP) server that πŸ“‡ ☁️ - mcp server for substack β€” read posts, manage drafts, publish notes, get comments, a It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Substack?

Install via npm with the command: npx -y substack. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Substack?

Substack works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Substack free to use?

Yes, Substack is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "substack": { "command": "npx", "args": ["-y", "substack"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide β†’

Ready to use Substack?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides