
FastMCP server for Substack — publish Notes and posts, pull analytics, manage dr
io.github.adelaidasofia由 GitHub 帳號 adelaidasofia 發布v0.1.0更新於 Oct 25, 2026
FastMCP server for Substack — publish Notes and posts, pull analytics, manage drafts, pluggable…
發布方自己的服務:posts.design
概覽
一個本機 MCP 伺服器,讓助理使用瀏覽器工作階段 Cookie 發佈 Substack Notes 和文章、管理草稿並取得出版品分析資料。
- 可以做什麼
- 發佈、回覆和列出 Notes,支援附件,並可批次發佈 vault 草稿;對文章按讚、restack 和留言,並讀取訂閱動態和出版品清單;建立、編輯、排程和發佈文章草稿,列出分區、草稿和已發佈文章,並上傳圖片;讀取儀表板 KPI、單篇統計、訂閱者成長與來源、熱門文章、收入和推薦等分析資料,並可快照到 vault 檔案;將 Obsidian 風格的 vault 草稿檔案橋接到 Substack,並透過本機 Pillow 或 Canva 流程產生視覺卡片
- 適用情境
- 適合希望讓助理起草、排程和發佈文章與 Notes、回覆訂閱動態內容,並查看訂閱者和收入分析而不必切換到 Substack 後台的 Substack 作者。
- 執行需求
- 以本機 Python 程序執行(從儲存庫 pip 安裝或使用打包外掛)。需要 config.json,包含出版品子網域、預設出版品、選用的 vault 草稿路徑和圖片產生器設定。驗證使用 SUBSTACK_SID_COOKIE 工作階段 Cookie,過期後需從瀏覽器開發者工具重新擷取。Canva 圖片產生需要連接 Canva MCP 並填寫設計 ID。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 FastMCP server for Substack — publish Notes and posts, pull analytics, manage dr,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
substack-mcp
[License] [GitHub stars] [Last commit] [Open issues] [PyPI version] [PyPI downloads] [Built by Mycelium AI]
FastMCP server for Substack: publish Notes and posts, pull analytics, manage drafts, bridge Obsidian vault drafts to Substack, and generate visual cards with pluggable image generators.
Quick reference
Tool inventory (30)
Notes + vault pipeline
test_connection(publication?)-- verify auth, return your profilelist_publications()-- show configured publications and which is defaultpublish_note(text, publication?, attachment_ids?)-- publish a Note immediately; markdown supportedcreate_note_attachment(image_path?, image_url?, link_url?, publication?)-- upload image or register link; returns attachment UUID for use with publish_notelist_my_notes(limit?, publication?)-- your recent Notes with reaction + comment countsreply_to_note(note_id, text, publication?)-- reply to a Note by IDlist_vault_drafts()-- parse vault drafts file, return index + preview for each draftpublish_vault_draft(index, publication?, move_to_published?)-- publish one vault draft as a Notebatch_publish_vault_drafts(indices, publication?)-- publish multiple vault drafts in sequence
Post management
create_draft(title, body, subtitle?, audience?, publication?, section_id?)-- create a post draft; body is markdownupdate_draft(draft_id, title?, body?, subtitle?, audience?, publication?, section_id?)-- edit an existing draftpublish_post(draft_id, send_email?, audience?, publication?, section_id?)-- publish a draft live to subscribersschedule_post(draft_id, publish_at, publication?, section_id?)-- schedule a draft for future publication (ISO 8601)list_sections(publication?)-- list configured sections for a publication; required to publish on publications with sectionslist_drafts(limit?, publication?)-- list unpublished draftslist_published(limit?, publication?)-- list published posts with basic statsget_post(identifier, publication?)-- get full post by slug or numeric IDupload_image(image_path, publication?)-- upload an image to Substack CDN; returns CDN URLreact(post_id, publication?)-- heart a postrestack(post_id, publication?)-- restack a postcomment(post_id, body, publication?)-- comment on a postget_feed(limit?, publication?)-- your reader feed (posts from publications you follow)
Analytics
get_dashboard(days?, publication?)-- KPIs: total/paid subscribers, views, growth, ARRget_post_stats(post_id, publication?)-- views, opens, clicks, shares, conversions for one postget_subscriber_growth(publication?)-- subscriber count over timeget_growth_sources(publication?)-- subscriber growth by source (search, recommendations, direct, social)get_top_posts(limit?, publication?)-- posts ranked by engagementget_earnings(publication?)-- revenue data for paid publicationsget_recommendation_stats(direction?, publication?)-- recommendation network performancecapture_analytics_to_vault(publication?)-- write a weekly analytics snapshot to your vault
Install
Open Claude Code, paste:
Legacy install
Configuration
Copy config.example.json to config.json and fill in your values:
config.json is gitignored. Key fields:
Session cookie setup
Substack does not have a public API with OAuth. Auth uses your browser session cookie.
- Open Chrome and log in to Substack.
- Open DevTools (F12) and go to the Application tab.
- Under Cookies, find
substack.com. - Copy the value of
substack.sid. - Paste it into
config.jsonunder the matching publication'scookiefield.
The raw value works; the server accepts both abc123 and substack.sid=abc123.
Session cookies expire. If tools return {"error": "Auth failed"}, re-extract the cookie.
Register in Claude Code
Add to your .mcp.json (project-scoped) or via claude mcp add -s user:
Restart Claude Code after editing .mcp.json. Verify with claude mcp list.
Vault integration
Set vault_drafts_path in config.json to a markdown file in your Obsidian vault.
Format each draft as a section separated by ---. Sections under ## Ready to Post
are surfaced first by list_vault_drafts. Sections under ## Essay Seeds come next.
After publishing, publish_vault_draft moves the draft to a ## Published section
and appends the Substack URL and timestamp.
Pluggable image generators
Visual card generation is handled by the adapter set in config.json under
image_generator.default.
Shipped adapters
pillow_local (default) -- pure Pillow, no external API. Renders 1080x1080 PNG
cards locally using fonts from the fonts/ directory. Three pillar templates: warm
mustard with optional figure (P1), deep burgundy bold quote (P2), mustard with section
tag (P3). Use with render_card.py as a standalone CLI.
canva -- Canva MCP choreography. Returns a steps list describing the Canva MCP
tool calls needed to clone a template, replace text, replace the figure, and export PNG.
The Claude session executing the playbook follows these steps. Requires Canva MCP
connected in Claude Code and design IDs filled in under image_generator.canva.pillars.
Stubbed adapters (contributions welcome)
nano_banana -- Gemini 3 Pro Image via the nano-banana skill. Stub in
image_generators/nano_banana.py. Implement generate() by calling the skill's
image endpoint with a prompt built from the card spec.
midjourney -- Midjourney API (or proxy). Stub in image_generators/midjourney.py.
Implement generate() by submitting a prompt, polling for completion, and downloading
the result.
dalle -- OpenAI DALL-E. Stub in image_generators/dalle.py. Implement generate()
using openai.images.generate.
Writing your own adapter
Subclass ImageGenerator from image_generators.base:
Register it in image_generators/__init__.py and add a config block under
image_generator.my_adapter in config.json.
Visual publishing pipeline
The visual_helper.py script handles the deterministic side of the visual queue
pipeline: parsing a Review Queue markdown file, rotating through figures, and
marking entries published. See visual_playbook.md for the full end-to-end flow
including image generation, upload, and publishing steps.
Known gotchas
-
Cookie expiry.
substack.sidcookies expire after a few weeks. Re-extract from Chrome DevTools whentest_connectionreturns auth errors. -
draft_bylinesis required but undocumented.create_draftwill 400 without it. The server fetches youruser_idfrom/user/profile/selfautomatically and injects it into every draft POST. -
Note attachment endpoint requires trailing slash.
POST /comment/attachment/(with slash) works. Without slash it returns 404. The server handles this correctly. -
Publication-scoped vs global endpoints. Notes use
substack.com/api/v1/comment/feed/. Post drafts use{subdomain}.substack.com/api/v1/drafts. Mixing them returns 404 or 403. -
pledgedArrin the dashboard is a projection, not real pledges. Useget_earningsfor actual revenue data. -
Multi-publication support. Pass
publication="name"to any tool to target a specific publication. Omit it to usedefault_publicationfrom config. -
Sections are required to publish on publications that have them. Substack returns
HTTP 400: Please choose a sectionfrompublish_post/schedule_postwhen the draft hasn't been filed under a section. Look up section IDs withlist_sections(publication="main"), then passsection_id=<id>to either the draft tool or the publish/schedule tool:publish_post/schedule_postpatch the draft before publishing, so a single call is enough.
Related MCPs
Same author, same architecture pattern (FastMCP, draft+confirm on writes where applicable, vault auto-export, MIT):
- slack-mcp — multi-workspace Slack
- imessage-mcp — macOS iMessage
- whatsapp-mcp — WhatsApp via whatsmeow
- google-workspace-mcp — Gmail / Calendar / Drive / Docs / Sheets
- apollo-mcp — Apollo.io CRM + sequences
- luma-mcp — lu.ma events
- parse-mcp — markitdown / Docling / LlamaParse router
- rescuetime-mcp — RescueTime productivity data
- graph-query-mcp — vault knowledge graph queries
- graph-autotagger-mcp — wikilink suggestions from the graph
- investor-relations-mcp — seed-raise pipeline tracker
- vault-sync-mcp — bidirectional vault sync
Telemetry
This plugin sends a single anonymous install signal to myceliumai.co the first time it loads in a Claude Code session on a given machine.
What is sent:
- Plugin name (e.g.
slack-mcp) - Plugin version (e.g.
0.1.0)
What is NOT sent:
- No user identifiers, names, emails, tokens, or API keys
- No file paths, message content, or anything from your work
- No IP address is stored after dedup processing
Why: Helps the maintainer know which plugins people actually install, so attention goes to the ones that get used.
Opt out: Set the environment variable MYCELIUM_NO_PING=1 before launching Claude Code. The hook will skip the network call entirely. Already-pinged installs leave a sentinel at ~/.mycelium/onboarded-<plugin> — delete it if you want to reset state.
License
MIT
Built by Mycelium AI. Full install or team version at diazroa.com.
來源:README.md,提交 1d5c90f
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Posts 整合
posts.design
design.posts官方發布者
posts.design 提供的遠端 MCP 端點,讓助理為即將發布的貼文尋找設計參考與影片拆解。

Weibo Hot Search (微博热搜): Trending Topics & Posts
由 GitHub 帳號 serenido 發布
託管於 Apify 的遠端 MCP 伺服器,讓助理取得微博熱搜即時榜單、熱度變化以及可選的熱門貼文。

Weibo: Posts, Hot Searches, Comments & Creators (微博)
由 GitHub 帳號 serenido 發布
遠端 Apify MCP 伺服器,讓助理不必登入即可蒐集微博熱搜、關鍵字貼文、留言與創作者資料,並輸出結構化 JSON。

Pay Transparency Rules for Job Posts
由 GitHub 帳號 Nero-Engine 發布
讓助理查詢美國、加拿大與歐盟的薪資透明法規,並在刊登前檢查職缺是否合規。

LinkedIn Posts
由 GitHub 帳號 saulius876-lgtm 發布
讓助理從連結或公司頁面取得 LinkedIn 貼文,包括內文、作者、日期、互動、熱門留言和媒體。