MCP server for Substack's Publisher API

MCP server for Substack's Publisher API

substack-publisher-mcp•bydkships

A read-only MCP server that connects MCP clients to Substack's official Publisher API for reading posts, post analytics, subscriber counts, and subscriber lookups.

License: MIT License•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Lists configured publications and lists or searches published posts, including full-text search across posts.
  • •Retrieves a post and its body by URL slug, returning the body as Markdown by default.
  • •Provides engagement stats for a post and daily subscriber counts by type.
  • •Looks up a subscriber by email and supports multiple publications via separate API keys.

BEST FOR

  • •Pulling opens, clicks, and other engagement stats for a published post.
  • •Reviewing subscriber counts and looking up individual subscribers.
  • •Finding posts by date range or by topic through full-text search.

ABOUT SUBSTACK-PUBLISHER-MCP

MCP server for Substack's Publisher API is cataloged as an MCP server attributed to dkships. A read-only MCP server that connects MCP clients to Substack's official Publisher API for reading posts, post analytics, subscriber counts, and subscriber lookups. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Substack's Publisher API are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Are the tools read-only?

Yes, all tools provided by the server are read-only.

Can I use the server with multiple Substack publications?

Yes, a separate API key can be configured for each publication and queries can specify which publication to use.

上游原版 README

在 GitHub 查看同一版本原文

README.md · e0725653294f · 采集于 2026-11-13 10:30:34 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

substack-publisher-mcp

MCP server for Substack's official Publisher API

License: MIT Node.js MCP

Note: This is an unofficial, community-developed tool and is not affiliated with, endorsed by, or supported by Substack, Inc.

An MCP server for Substack's official Publisher API. Search and read posts, pull post analytics and subscriber counts, and look up subscribers from Claude, Cursor, or any MCP client. All tools are read-only.

Demo of substack-publisher-mcp in Claude Code

Why this server?

substack-publisher-mcpOther Substack MCP servers
APIOfficial Publisher APIUnofficial internal API
AuthAPI key (stable)Browser cookies (fragile)
StabilityOfficial, documented APIBreaks when Substack changes internals
Multi-publicationBuilt-in supportNot available

Prerequisites

  • Node.js 22+. Check with node --version; install from nodejs.org if missing.
  • Substack Publisher API key. Generate one from your publication's Substack dashboard. If you don't see a Publisher API option there, it may not be enabled for your publication yet; see the Publisher API docs for availability.

Quick Start

1. Install

git clone https://github.com/dkships/substack-publisher-mcp.git
cd substack-publisher-mcp
npm install && npm run build

2. Configure your MCP client

Add to your client's MCP config file (create the file if it doesn't exist):

ClientConfig file
Claude Desktop (macOS)~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Windows)%APPDATA%\Claude\claude_desktop_config.json
Claude Code.mcp.json in your project directory
Cursor.cursor/mcp.json
{
  "mcpServers": {
    "substack": {
      "command": "node",
      "args": ["/path/to/substack-publisher-mcp/dist/index.js"],
      "env": {
        "SUBSTACK_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code users: Add "type": "stdio" to the server config.

Restart your MCP client after editing the config — servers load at startup.

3. Start using it

Ask Claude (or your MCP client):

  • "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"

Installing through an AI agent or registry? See llms-install.md for a condensed, machine-readable setup guide.

Tools

ToolDescriptionKey Parameters
list_publicationsList configured publicationsNone
list_postsList published postsstartDate, endDate, sortBy, type, maxResults, next
search_postsFull-text search across published postsquery (required), maxResults (1-100)
get_postGet a post and its body by URL slugurlSlug (required), bodyFormat
get_post_statsGet engagement stats for a posturlSlug (required)
get_subscriber_countsGet daily subscriber counts by typestartDate, endDate
get_subscriberLook up a subscriber by emailemail (required)

All tools except list_publications accept an optional publication parameter when multiple publications are configured.

get_post returns the post body as Markdown by default. Substack sends it as a JSON-encoded ProseMirror document, typically about twice the size. Pass bodyFormat: "prosemirror" for the raw document or "none" for metadata only.

Date filters take YYYY-MM-DD. In list_posts, endDate is exclusive; in get_subscriber_counts, it is inclusive.

Example responses

get_subscriber_counts
[
  {
    "date": "2025-01-15",
    "total_email_subscribers": 25000,
    "paid_subscribers": 500,
    "free_trial_subscribers": 10,
    "comp_subscribers": 50,
    "gift_subscribers": 15,
    "lifetime_subscribers": 0,
    "founding_subscribers": 25
  }
]
get_post_stats
{
  "clicks": 320,
  "opens": 5400,
  "post_id": 12345678,
  "recipients": 10000,
  "views": 6100,
  "new_free_subscriptions": 80,
  "new_paid_subscriptions": 5,
  "estimated_revenue_increase": 400
}
list_posts
{
  "posts": [
    {
      "post_id": 12345678,
      "title": "My Latest Post",
      "audience": "only_paid",
      "subtitle": "A deep dive into the topic",
      "postDate": "2025-01-15T12:00:00.000Z",
      "urlSlug": "my-latest-post",
      "coverImage": "https://substackcdn.com/image/..."
    }
  ],
  "next": "abc123cursor"
}

next is null on the last page.

Multiple publications

If you manage multiple Substack publications, configure a separate API key for each using the SUBSTACK_API_KEY_<NAME> pattern:

{
  "mcpServers": {
    "substack": {
      "command": "node",
      "args": ["/path/to/substack-publisher-mcp/dist/index.js"],
      "env": {
        "SUBSTACK_API_KEY_MAIN": "your-main-blog-key",
        "SUBSTACK_API_KEY_TECH": "your-tech-newsletter-key",
        "SUBSTACK_API_KEY_COMPANY": "your-company-updates-key"
      }
    }
  }
}

Then specify which publication to query:

"Show me subscriber counts for main" "List recent posts from the tech publication"

Use list_publications to see all configured publication names.

Troubleshooting

IssueSolution
Unauthorized errorVerify your API key is correct. The key goes directly in the authorization header with no Bearer prefix.
... duplicates publication ... or ... ignoring it on startupTwo env vars map to the same publication name (names are case-insensitive, and SUBSTACK_API_KEY is default), or a key is malformed. Rename or remove the extra variable.
Server won't startMake sure you ran npm run build after cloning. The server runs from dist/, not src/.
No API keys configuredSet SUBSTACK_API_KEY or SUBSTACK_API_KEY_<NAME> in your MCP client config.
Server doesn't appear in your clientCheck the config file is valid JSON (no trailing commas), then restart the client.
command not found / spawn node ENOENTNode.js isn't installed or isn't on your PATH. Check node --version.
Still stuckCheck your client's MCP logs. Claude Desktop on macOS: ~/Library/Logs/Claude/mcp*.log.

API Reference

This server wraps the Substack Publisher API. See Substack's documentation for details on available data and rate limits.

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT License. See LICENSE for details.


Substack is a trademark of Substack, Inc. This project is not affiliated with Substack, Inc. Use of the Substack name is for descriptive purposes only.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Substack's Publisher API from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/substack-publisher-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops