SuperAPI AI Directory

substack-publisher-mcp

Read-only access to Substack posts, engagement stats, subscriber counts and subscriber lookup via the Publisher API, across multiple publications.

Open website

About this tool

Purpose

substack-publisher-mcp is an MCP (Model Context Protocol) server that wraps Substack's official Publisher API. Its goal is to directly query Substack posts, analytics data, and subscriber information in Claude, Cursor, or any MCP-compatible client. This tool is community-developed and is not affiliated with, endorsed by, or supported by Substack, Inc.

Main Capabilities

  • Search and read posts: You can list, find, and read specified posts, with support for filtering by date range, and you can also retrieve a single post by slug.
  • Post analytics: Retrieve interaction data such as opens and clicks for posts.
  • Subscriber data: Query subscriber counts (with support for date ranges), and look up subscribers by email.
  • Multi-publication support: You can configure multiple Substack publications at the same time and specify the target publication when querying.
  • All tools are read-only operations.

How to Use

  1. Environment requirements: Node.js 22 or later, which can be checked with node --version, and installed from nodejs.org if missing.
  2. Get a Substack Publisher API key: Generate it in your publication's Substack dashboard. If there is no Publisher API option in the dashboard, the publication may not have this feature enabled yet; refer to the Publisher API documentation for availability.
  3. Configure the MCP client: Add the server configuration to the client's MCP configuration file (create the file if it does not exist). Claude Code users need to add "type": "stdio" to the server configuration. After editing the configuration, restart the MCP client, because the server loads at startup.
  4. Start using it: Make natural language requests to Claude or the MCP client, for example:
    • "Which Substack publications do I have configured?"
    • "Show me my posts from the last month"
    • "Find my posts about pricing"
    • "Pull up my post with the slug my-latest-post"
    • "How many opens and clicks did my latest post get?"
    • "What are my subscriber counts for the last 30 days?"
    • "Look up subscriber jane@example.com"

Multi-Publication Configuration

If you manage multiple Substack publications, you can use the SUBSTACK_API_KEY_<NAME> pattern to configure a separate API key for each publication, and then specify the publication name when querying, for example "Show me subscriber counts for main" or "List recent posts from the tech publication". Use list_publications to view all configured publication names. Except for list_publications, all tools accept an optional publication parameter when multiple publications are configured.

Details

  • get_post returns the post body in Markdown by default. Substack sends a JSON-encoded ProseMirror document, which is usually about twice the size of Markdown. You can pass bodyFormat: "prosemirror" to get the raw document, or pass "none" to get only metadata.
  • The date filter format is YYYY-MM-DD. In list_posts, endDate is exclusive; in get_subscriber_counts, it is inclusive.
  • In paginated responses, next is null on the last page.
  • When installing via an AI agent or registry, refer to the concise machine-readable setup guide in llms-install.md.

Suitable Scenarios

Suitable for Substack authors or operators who want to quickly retrieve their own posts, view engagement metrics, and subscriber data through an MCP client, especially for scenarios that require unified querying across multiple publications.

Limitations

  • Only read-only operations are supported; content cannot be published, edited, or deleted.
  • Depends on Substack's official Publisher API, its available data scope and rate limits are subject to the Substack documentation.
  • Requires Node.js 22+ and a valid Publisher API key; some publications may not yet have the Publisher API enabled.
  • This tool is an unofficial community project and is not affiliated with Substack, Inc.

License

MIT License, see LICENSE for details. Substack is a trademark of Substack, Inc. This project is not affiliated with Substack, Inc., and the Substack name is used for descriptive purposes only.