PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serverscontent-management-systemssubstack-mcp
返回「content-management-systems」

substack-mcp

modelscope·@danielsimonjr/substack-mcp

content-management-systems0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

Substack MCP Server

License: MIT TypeScript

An MCP (Model Context Protocol) server that allows Claude Desktop and Claude Code to interact with your Substack publication. Create posts with cover images, publish notes, manage your content, and more - all through natural conversation with Claude.

Features

  • Post Management: Create full blog posts with cover images
  • Notes: Create short-form Substack notes
  • Profile Access: Get your own profile and other users' profiles
  • Content Retrieval: Fetch posts, notes, and comments
  • Image Upload: Native Substack image upload (v2.3.0) - no third-party dependencies
  • Draft Mode: Create drafts for review before publishing

Version 2.3.0 - What's New

This version replaces Imgur with Substack's native image upload:

  • Native Integration: Direct upload to Substack's CDN (Amazon S3)
  • Data URI Format: Images encoded as base64 data URIs
  • Automatic MIME Detection: Supports PNG, JPG, JPEG, GIF, WEBP
  • Post Association: Images properly linked to posts via postId
  • More Reliable: No third-party API dependencies

Prerequisites

  • Node.js 18+ installed on your system
  • Substack account with publication access
  • Substack API Key (connect.sid cookie value)

Getting Your Substack API Key

The Substack API uses cookie-based authentication:

  1. Login to Substack in your browser
  2. Open Developer Tools (F12 or Right-click Inspect)
  3. Go to Application/Storage tab Cookies https://substack.com
  4. Find the connect.sid cookie and copy its value
  5. This value is your SUBSTACK_API_KEY

Important: Keep this cookie value private. Do not commit it to version control.

Cookie Extraction Tools

The tools/ directory contains utility scripts to help extract your Substack cookie:

  • extract-cookie.js - Manual cookie extraction tool
  • extract-cookie-auto.js - Automated cookie extraction

To use these tools, save your cookie value to tools/cookie.txt (this file is git-ignored for security).

Installation

Building the MCP Server

# Clone or download this repository
cd substack-mcp

# Install dependencies
npm install

# Build the TypeScript code
npm run build

For Claude Desktop

  1. Open your Claude Desktop configuration file:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the Substack MCP server configuration:

{
  "mcpServers": {
    "substack": {
      "command": "node",
      "args": ["C:\\mcp-servers\\substack-mcp\\dist\\mcp-server.js"],
      "env": {
        "SUBSTACK_API_KEY": "your-connect-sid-cookie-value-here",
        "SUBSTACK_HOSTNAME": "yoursite.substack.com"
      }
    }
  }
}
  1. Replace your-connect-sid-cookie-value-here with your actual cookie value
  2. Replace yoursite.substack.com with your Substack hostname
  3. Restart Claude Desktop

For Claude Code

Add to your Claude Code MCP configuration or use:

claude mcp add substack-mcp

Available Tools

mcp__substack__create_post

Create a full blog post with optional cover image

Parameters:

  • title (required): Post title
  • body (required): Post content (supports markdown)
  • subtitle (optional): Post subtitle
  • cover_image (optional): Path to cover image file
  • draft (optional): Create as draft (default: true)

Example:

{
  title: "My Amazing Post",
  body: "This is the content of my post...",
  cover_image: "c:/temp/cover-image.png",
  draft: true
}

mcp__substack__create_note

Create a new Substack note (short-form post)

Parameters:

  • text (required): Note content

mcp__substack__create_note_with_link

Create a note with a link attachment

Parameters:

  • text (required): Note content
  • link (required): URL to attach

mcp__substack__get_own_profile

Get your own Substack profile information

Returns: name, slug, handle, bio, follower count, photo URL

mcp__substack__get_profile_posts

Get your recent posts

Parameters:

  • limit (optional): Number of posts to retrieve (default: 10)

mcp__substack__get_post

Get a specific post by ID with full content

Parameters:

  • post_id (required): The post ID

mcp__substack__get_post_comments

Get comments for a specific post

Parameters:

  • post_id (required): The post ID
  • limit (optional): Number of comments (default: 20)

mcp__substack__get_notes

Get your recent notes

Parameters:

  • limit (optional): Number of notes (default: 10)

Usage Examples

With Claude Desktop/Code

Once configured, you can have natural conversations with Claude:

"Create a new blog post titled 'Why I Love Programming' with this content..."

"Create a draft post with the article from article.md and use cover.png as the cover image"

"Get my recent posts from the last week"

"Create a note saying 'New post just published!'"

Claude will automatically use the appropriate MCP tools to fulfill your requests.

Environment Variables

  • SUBSTACK_API_KEY (required): Your connect.sid cookie value
  • SUBSTACK_HOSTNAME (required): Your Substack hostname (e.g., "yourname.substack.com")

Workflow Example

Here's a typical workflow for creating a post with cover image:

  1. Write your article in markdown format
  2. Create or generate a cover image
  3. Tell Claude: "Create a draft post with article.md and cover.png"
  4. Claude will:
    • Read the markdown file
    • Upload the cover image to Substack's CDN
    • Create the draft post with both
    • Return the draft URL for review

Documentation

  • CLAUDE.md - Development guidelines for Claude Code

…

相关 MCP Servers(来自「content-management-systems」)

小红书API代理

一个将小红书(Xiaohongshu)API封装为RESTful API服务器的微服务,允许用户在该平台上执行多种操作,例如获取笔记、搜索用户和内容、访问用户信息等。

@proerror77/xhs_mcp_agent

MarkMap-MCP服务器

一个模型上下文协议服务器,可将Markdown文本转换为支持丰富交互操作和多格式导出的交互式思维导图。

@jinzcdev/markmap-mcp-server

MCPMS笑话

一种模型上下文协议服务器,它使Microsoft Copilot Studio能够从各种来源获取笑话,包括Chuck Norris笑话、爸爸笑话和Yo Mama笑话。

@VoltScp/MCPMS

知乎MCP服务器

一种模型上下文协议服务器,允许用户使用大型语言模型自动生成文章,并直接发布到知乎(一个中国的问答平台)。

@Victorzwx/zh_mcp_server

WordPress MCP 服务器

为 WordPress 实现了一个模型上下文协议服务器,增强了 VS Code 的 WordPress 特定智能,包括数据库集成、代码补全和文档支持。

@sharmashivanand/mcp-wordpress

cuongpham2107

暂无描述。

@cuongpham2107/word-mcp-server

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/danielsimonjr-substack-mcp/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

# Clone or download this repository cd substack-mcp # Install dependencies npm install # Build the TypeScript code npm run build

基本信息

分类
content-management-systems / social-media / app-automation
运行方式
No
许可证
Unknown
详情文件
danielsimonjr-substack-mcp.md