substack-article-mcp

substack-article-mcp

MCP server for Substack that enables reading articles, comments, feed, and subscriptions from AI clients like Cursor and Claude, with optional authentication for paid content.

Category
访问服务器

README

substack-article-mcp

MCP server for Substack — read articles, comments, feed, and subscriptions from Cursor, Claude Desktop, Claude Code, or any MCP client. Public content works without authentication; log in for premium/paywalled articles and personalized features.


Quick Start

Choose your AI client:

Cursor

One command — logs in and configures Cursor automatically:

npx -y substack-article-mcp install --cursor

Restart Cursor after installation.

Claude Code

One command — logs in and adds the MCP globally:

npx -y substack-article-mcp install --claude-code

Claude Desktop

Download the .mcpb extension from the Releases page and double-click to install.

Optional: After installing, go to Extensions > Substack Articles > Settings and paste your Substack cookie to unlock paid articles, subscriptions, and your feed. Leave it empty for public-only access.

Use it

Ask from chat — the app starts the server automatically:

  • "List recent articles from platformer" (public, no auth needed)
  • "Get the full content of article 184929446" (works with numeric IDs)
  • "Show me the comments on this article"
  • "Search platformer articles for 'antitrust'"
  • "What newsletters do I subscribe to?" (requires auth)
  • "Show me my reader feed" (requires auth)

Authentication

Authentication is optional. Public tools (list_articles, get_article, search_articles, get_comments) work without any credentials as long as you specify a subdomain.

Log in to unlock:

  • Full paid/premium article content
  • list_subscriptions — see all newsletters you follow
  • get_feed — your personalized reader feed
  • get_inbox — chronological inbox from all subscriptions
  • Auto-detected default subdomain (so you don't need to specify one)

How auth works

The server checks for credentials in this priority order:

  1. SUBSTACK_COOKIE environment variable — used by Claude Desktop's .mcpb extension (set automatically from the optional cookie field in settings)
  2. ~/.substack-article-mcp/auth.json — saved by the login or install command
  3. No auth — public content only

Refreshing credentials

Substack cookies expire every few weeks. When tools start returning auth errors:

  • Cursor / Claude Code: Run npx -y substack-article-mcp login in your terminal
  • Claude Desktop: Go to Extensions > Substack Articles > Settings and paste a fresh cookie

Getting your cookie manually

  1. Open substack.com in Chrome and log in
  2. DevTools (F12) → Application → Cookies → substack.com
  3. Copy the value of substack.sid (and substack.lli for paid articles)
  4. Use as: substack.sid=YOUR_VALUE; substack.lli=YOUR_LLI_VALUE

CLI Commands

Command Description
npx -y substack-article-mcp install --cursor Log in + add MCP to Cursor
npx -y substack-article-mcp install --claude-code Log in + add MCP to Claude Code
npx -y substack-article-mcp login Refresh credentials (Chrome login flow)
npx -y substack-article-mcp login --manual '<cookie>' Paste cookies directly
npx -y substack-article-mcp login --check Check auth status and cookie age
npx -y substack-article-mcp --help Show help
npx -y substack-article-mcp --version Show version

Do not run npx -y substack-article-mcp with no arguments in your terminal. That starts the MCP stdio server and your terminal will appear stuck. Your AI client starts it automatically.


MCP Tools

Tool Auth Required Description
substack_auth_status No Check auth status, cookie age, and get refresh guidance
list_articles No* List published articles with metadata and engagement stats
get_article No* Full article as markdown. Accepts slug or numeric post ID
search_articles No* Search articles by keyword
get_comments No* Full comment tree with replies and reactions
list_subscriptions Yes All newsletters you subscribe to (paid, comped, free)
get_feed Yes Personalized reader feed from subscribed newsletters
get_inbox Yes Chronological inbox with pagination

* Requires a subdomain parameter if not authenticated. Auth is needed for paid/premium content.

All content tools accept an optional subdomain parameter to read any newsletter (e.g., subdomain: "platformer").

get_article and get_comments also accept numeric post IDs (e.g., 184929446). When using an ID, the publication is auto-detected.


Privacy & Security

  • The server runs entirely on your local machine as a subprocess of your AI client
  • No cloud hosting, no intermediary servers
  • Your credentials never leave your computer
  • The login command uses a dedicated Chrome profile in ~/.substack-article-mcp/chrome-profile/ — completely separate from your regular Chrome

Requirements

  • Node.js 18+
  • Google Chrome (for the login / install commands only — not needed for Claude Desktop)

Disclaimer

Uses Substack's internal APIs. Use for personal/experimental purposes. Not affiliated with Substack.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选