
marcomoauro/substack-mcp
Analytics & monitoringこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
marcomoauro/substack-mcp は [https://github.com/marcomoauro/substack-mcp.] からインポートされた MCP サーバーの候補です
概要
marcomoauro/substack-mcp は [https://github.com/marcomoauro/substack-mcp.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
Substack 用のモデルコンテキストプロトコル (MCP) サーバーで、LM クライアントは、投稿の作成、ドラフトの管理などの自動化のための Substack の API と対話することができます。
投稿の作成と公開、購読者と分析と連携し、読者のフィードを閲覧し、管理 タグやコメント、画像のアップロード — 1つのMCPサーバーから露出した27のツール。
【重要】 Substack は、これらの操作に対して公開 API を提供していません。 このサーバーは認証済みを使用する ウェブセッション セッショントークンを正確にパスワードのように扱います。ローカルに保管し、コミットしないようにします。 バグ報告にクッキーのヘッダーが含まれていることはありません。
クイックスタート
Node.js 22 または newer と [npx を使用して、最速のインストールを行います。
##1. サブスタックの資格情報を収集する
ブラウザーでSubstackにサインインし、公開ダッシュボードを開きます。 3つの値が必要です。
-公開URL — あなたの出版物のフルベースURL、例えば
[https://your-publication.substack.com]。
- セッショントークン — ブラウザの開発者ツールを開き、Network、フィルタをオンにします Fetch/XHR、ダッシュボードを再読み込み。 認証されたリクエストを成功に開く 出版物.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Substack MCP Server
A Model Context Protocol (MCP) Server for Substack enabling LLM clients to interact with Substack’s API for automations like creating posts, managing drafts, and more.
Create and publish posts, work with subscribers and analytics, browse your reader feeds, manage tags and comments, and upload images — 27 tools exposed through one MCP server.
[!IMPORTANT] Substack does not provide a public API for these operations. This server uses your authenticated web session. Treat the session token exactly like a password: keep it local, never commit it, and never include it or a complete Cookie header in a bug report.
Quick start
The fastest installation uses Node.js 22 or newer and npx.
1. Collect your Substack credentials
Sign in to Substack in your browser and open your publication dashboard. You need three values:
- Publication URL — the full base URL of your publication, for example
https://your-publication.substack.com. - Session token — open your browser’s developer tools, select Network, filter to
Fetch/XHR, and reload the dashboard. Open a successful authenticated request to your
publication. Under Request Headers, find the
Cookieheader and locate a session cookie namedsubstack.sidorconnect.sid. Copy its value without the cookie name or the rest of the header. If both names appear with different values, test them separately and locally with the read-only verification in step 3; never paste either value into an issue. - User ID — in the same Network panel, search for a successful
publication_userrequest. In its JSON response, copy the numericidinside theuserobject.
If the browser UI differs, the illustrated credential guide shows the same requests. If authentication later stops working, sign in again and repeat these steps to obtain the current token.
2. Add the server to your MCP client
For clients that accept MCP JSON configuration, add:
{
"mcpServers": {
"substack": {
"command": "npx",
"args": ["-y", "substack-mcp@latest"],
"env": {
"SUBSTACK_PUBLICATION_URL": "https://your-publication.substack.com",
"SUBSTACK_SESSION_TOKEN": "your-session-token",
"SUBSTACK_USER_ID": "your-user-id"
}
}
}
}
Replace the three example values, save the configuration, and restart your MCP client. Consult your client’s documentation if it uses a different configuration format.
3. Verify the connection
Ask your client:
List my five most recent Substack drafts.
インストール
npx -y substack-mcp@latest設定
{
"mcpServers": {
"substack": {
"command": "npx",
"args": ["-y", "substack-mcp@latest"],
"env": {
"SUBSTACK_PUBLICATION_URL": "https://your-publication.substack.com",
"SUBSTACK_SESSION_TOKEN": "your-session-token",
"SUBSTACK_USER_ID": "your-user-id"
}
}
}
}