Provides tools for managing Substack content, including creating and updating drafts, publishing posts, uploading images, and posting short-form content to Substack Notes.
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 MCP ServerCreate a new draft about the benefits of remote work"
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 Server
A Model Context Protocol (MCP) server for Substack integration with Claude Code and other MCP-compatible AI tools.
Features
Create and manage drafts - Create, update, and publish Substack posts programmatically
Image upload - Upload images to Substack's CDN with proper metadata
Live blogging - Real-time post updates with timestamps
Notes - Post short-form content to Substack Notes
Full ProseMirror support - Proper document structure for Substack's editor
Installation
Setup
1. Get your Substack credentials
Go to your Substack dashboard in Chrome/Safari
Open DevTools (Cmd+Option+I or F12)
Go to Application tab → Cookies → your-substack.substack.com
Find
substack.sidand copy its value
2. Create credentials file
3. Add to Claude Code
Or manually add to ~/.claude.json:
Available Tools
Tool | Description |
| Create a new draft post |
| Update an existing draft |
| Append content (for live blogging) |
| Add a code block to a draft |
| Add an image to a draft |
| Publish a draft |
| Post a short note |
| List all drafts |
| List published posts |
| Start a live blogging session |
| End live blogging session |
Usage Examples
Create a post with Claude Code
Upload and embed images
Live blogging
API Reference
SubstackClient
The core client for interacting with Substack's API.
Key Technical Details
Image Node Structure
Substack uses ProseMirror and requires specific attributes for images:
The internalRedirect field is required - without it, Substack's editor fails to render the document.
Credits
License
MIT
Disclaimer
This uses Substack's unofficial/internal API which may change without notice. Use at your own risk.