The python-substack Model Context Protocol (MCP) server provides seamless integration between AI assistants (such as Claude Desktop, Cursor, and Claude Code) and Python library and CLI for publishing Markdown drafts, images, tags, and MCP workflows to Substack. By connecting this server, your AI agent gains specialized capabilities to inspect, query, and automate tasks within the Code/Dev Tools domain.
Once installed in Claude Desktop or Cursor, try asking your assistant:
Copy the config for your editor. Verify environment variables or setup notes in the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"python-substack": {
"command": "uvx",
"args": [
"python-substack"
]
}
}
}
Or install with pip: pip install python-substack
Are you the author of python-substack? Add this badge to your GitHub README for social proof and backlink verification.
[](https://protodex.io/servers/ma2za-python-substack.html)
Unofficial Python tools for publishing to Substack. - Create drafts and publish posts from Python. - Convert Markdown into Substack's editor document format. - Upload local images while rendering Markdown. - Set audience, comment permissions, SEO title, SEO description, slug, sections, and tags.