modelscope·@danielsimonjr/substack-mcp
暂无描述。
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.
This version replaces Imgur with Substack's native image upload:
postIdThe Substack API uses cookie-based authentication:
https://substack.comconnect.sid cookie and copy its valueSUBSTACK_API_KEYImportant: Keep this cookie value private. Do not commit it to version control.
The tools/ directory contains utility scripts to help extract your Substack cookie:
extract-cookie.js - Manual cookie extraction toolextract-cookie-auto.js - Automated cookie extractionTo use these tools, save your cookie value to tools/cookie.txt (this file is git-ignored for security).
# Clone or download this repository
cd substack-mcp
# Install dependencies
npm install
# Build the TypeScript code
npm run build
Open your Claude Desktop configuration file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd 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"
}
}
}
}
your-connect-sid-cookie-value-here with your actual cookie valueyoursite.substack.com with your Substack hostnameAdd to your Claude Code MCP configuration or use:
claude mcp add substack-mcp
mcp__substack__create_postCreate a full blog post with optional cover image
Parameters:
title (required): Post titlebody (required): Post content (supports markdown)subtitle (optional): Post subtitlecover_image (optional): Path to cover image filedraft (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_noteCreate a new Substack note (short-form post)
Parameters:
text (required): Note contentmcp__substack__create_note_with_linkCreate a note with a link attachment
Parameters:
text (required): Note contentlink (required): URL to attachmcp__substack__get_own_profileGet your own Substack profile information
Returns: name, slug, handle, bio, follower count, photo URL
mcp__substack__get_profile_postsGet your recent posts
Parameters:
limit (optional): Number of posts to retrieve (default: 10)mcp__substack__get_postGet a specific post by ID with full content
Parameters:
post_id (required): The post IDmcp__substack__get_post_commentsGet comments for a specific post
Parameters:
post_id (required): The post IDlimit (optional): Number of comments (default: 20)mcp__substack__get_notesGet your recent notes
Parameters:
limit (optional): Number of notes (default: 10)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.
SUBSTACK_API_KEY (required): Your connect.sid cookie valueSUBSTACK_HOSTNAME (required): Your Substack hostname (e.g., "yourname.substack.com")Here's a typical workflow for creating a post with cover image:
…
一个将小红书(Xiaohongshu)API封装为RESTful API服务器的微服务,允许用户在该平台上执行多种操作,例如获取笔记、搜索用户和内容、访问用户信息等。
一个模型上下文协议服务器,可将Markdown文本转换为支持丰富交互操作和多格式导出的交互式思维导图。
一种模型上下文协议服务器,它使Microsoft Copilot Studio能够从各种来源获取笑话,包括Chuck Norris笑话、爸爸笑话和Yo Mama笑话。
一种模型上下文协议服务器,允许用户使用大型语言模型自动生成文章,并直接发布到知乎(一个中国的问答平台)。
为 WordPress 实现了一个模型上下文协议服务器,增强了 VS Code 的 WordPress 特定智能,包括数据库集成、代码补全和文档支持。
暂无描述。