MS

marcomoauro/substack-mcp

Analytics & monitoring

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

92 stars 18 forks 품질 79 트렌드 23MIT

marcomoauro/substack-mcp는 MCP 서버 후보로 수입 https://github.com/marcomoauro/substack-mcp.

개요

marcomoauro/substack-mcp는 MCP 서버 후보로 수입 https://github.com/marcomoauro/substack-mcp.

개요(AI 번역)

Substack의 모델 Context Protocol (MCP) Server는 포스트를 생성하고, 초안을 관리하고, 더 많은 자동화를 위해 Substack의 API와 상호 작용하는 LLM 클라이언트를 가능하게 합니다.

작성 및 게시 게시물, 가입자 및 분석 작업, 독자 피드를 검색, 관리 태그 및 의견 및 업로드 이미지 - 한 MCP 서버를 통해 노출 된 27 도구.

[! 중요] Substack은 이러한 작업을 위해 공개 API를 제공하지 않습니다. 이 서버는 인증된 웹 세션. 비밀번호와 같은 세션 토큰을 정확히 처리하십시오. 로컬을 유지하고, 절대로 해서는 안됩니다. 버그 보고서에서 완벽한 쿠키 헤더가 없습니다.

빠른 시작

가장 빠른 설치는 Node.js 22 또는 newer 및 npx를 사용합니다.

##1. Substack 자격 취득

브라우저에서 Substack에 로그인하고 게시 대시보드를 엽니다. 세 가지 값이 필요합니다.

  • 공유 URL - 출판의 전체 기본 URL, 예를 들어 https://your-publication.substack.com.
  • Session token - 브라우저의 개발자 도구를 열고, 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 Cookie header and locate a session cookie named substack.sid or connect.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_user request. In its JSON response, copy the numeric id inside the user object.

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.

GitHub에서 전체 README 보기

설치

npx -y substack-mcp@latest
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "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" } } } }