MCP server for Substack's official Publisher API. Query posts, analytics, and subscriber data from any MCP client.
- Node.js >= 18
- A Substack Publisher API key (from your Substack publisher dashboard)
git clone https://github.com/dkships/substack-publisher-mcp.git
cd substack-publisher-mcp
npm install
npm run buildSet your API key as an environment variable:
SUBSTACK_API_KEY=your-api-key-here
For multiple publications, use the naming pattern:
SUBSTACK_API_KEY_MAIN=your-main-blog-key
SUBSTACK_API_KEY_TECH=your-tech-newsletter-key
{
"mcpServers": {
"substack": {
"command": "node",
"args": ["/path/to/substack-publisher-mcp/dist/index.js"],
"env": {
"SUBSTACK_API_KEY": "your-api-key-here"
}
}
}
}list_publications— List configured publicationslist_posts— List published posts with filteringget_post— Get a specific post by URL slugget_post_stats— Get engagement stats for a postget_subscriber_counts— Get daily subscriber counts by typeget_subscriber— Look up a subscriber by email