MCP Server Studio

substack-ops MCP server

Substack CLI + 26-tool MCP server. Your IDE drafts replies via propose_reply. No API keys.

Registry name: io.github.06ketan/substack-ops

Publisher
06ketan
Runs
Runs locally
Package
PyPI
Version
0.3.5
Category
Developer tools
Updated
2026-05-03

Source code on GitHub

Set up substack-ops (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "substack-ops": {
      "command": "uvx",
      "args": [
        "substack-ops==0.3.5"
      ],
      "env": {
        "SUBSTACK_PUBLICATION_URL": "<SUBSTACK_PUBLICATION_URL>",
        "SUBSTACK_USER_ID": "<SUBSTACK_USER_ID>",
        "SUBSTACK_SESSION_TOKEN": "<SUBSTACK_SESSION_TOKEN>",
        "SUBSTACK_OPS_MCP_PATH": "<SUBSTACK_OPS_MCP_PATH>",
        "SUBSTACK_OPS_LLM_CMD": "<SUBSTACK_OPS_LLM_CMD>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add substack-ops -e SUBSTACK_PUBLICATION_URL='<SUBSTACK_PUBLICATION_URL>' -e SUBSTACK_USER_ID='<SUBSTACK_USER_ID>' -e SUBSTACK_SESSION_TOKEN='<SUBSTACK_SESSION_TOKEN>' -e SUBSTACK_OPS_MCP_PATH='<SUBSTACK_OPS_MCP_PATH>' -e SUBSTACK_OPS_LLM_CMD='<SUBSTACK_OPS_LLM_CMD>' -- uvx substack-ops==0.3.5

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "substack-ops": {
      "command": "uvx",
      "args": [
        "substack-ops==0.3.5"
      ],
      "env": {
        "SUBSTACK_PUBLICATION_URL": "<SUBSTACK_PUBLICATION_URL>",
        "SUBSTACK_USER_ID": "<SUBSTACK_USER_ID>",
        "SUBSTACK_SESSION_TOKEN": "<SUBSTACK_SESSION_TOKEN>",
        "SUBSTACK_OPS_MCP_PATH": "<SUBSTACK_OPS_MCP_PATH>",
        "SUBSTACK_OPS_LLM_CMD": "<SUBSTACK_OPS_LLM_CMD>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "substack-ops": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "substack-ops==0.3.5"
      ],
      "env": {
        "SUBSTACK_PUBLICATION_URL": "<SUBSTACK_PUBLICATION_URL>",
        "SUBSTACK_USER_ID": "<SUBSTACK_USER_ID>",
        "SUBSTACK_SESSION_TOKEN": "<SUBSTACK_SESSION_TOKEN>",
        "SUBSTACK_OPS_MCP_PATH": "<SUBSTACK_OPS_MCP_PATH>",
        "SUBSTACK_OPS_LLM_CMD": "<SUBSTACK_OPS_LLM_CMD>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "substack-ops": {
      "command": "uvx",
      "args": [
        "substack-ops==0.3.5"
      ],
      "env": {
        "SUBSTACK_PUBLICATION_URL": "<SUBSTACK_PUBLICATION_URL>",
        "SUBSTACK_USER_ID": "<SUBSTACK_USER_ID>",
        "SUBSTACK_SESSION_TOKEN": "<SUBSTACK_SESSION_TOKEN>",
        "SUBSTACK_OPS_MCP_PATH": "<SUBSTACK_OPS_MCP_PATH>",
        "SUBSTACK_OPS_LLM_CMD": "<SUBSTACK_OPS_LLM_CMD>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
SUBSTACK_PUBLICATION_URLNoYour Substack publication URL (e.g. https://you.substack.com/). Optional if set in ~/.cursor/mcp.json's mcpServers.substack-api.env.
SUBSTACK_USER_IDNoYour Substack numeric user id. Optional if set in ~/.cursor/mcp.json.
SUBSTACK_SESSION_TOKENNoYour Substack session cookie value (the s%3A... string). Required for authenticated calls. Easier path: run `substack-ops auth login --browser chrome` and the cookie is auto-grabbed.
SUBSTACK_OPS_MCP_PATHNoOverride path to the mcp.json file the auth layer reads. Defaults to ~/.cursor/mcp.json.
SUBSTACK_OPS_LLM_CMDNoOptional: override the host CLI used by the unattended daemon path (default: auto-detect claude / cursor-agent / codex on PATH). Use {prompt} placeholder if your CLI takes the prompt as an arg.

More developer tools MCP servers