Atlas / MCP servers / thenavidm / substack-mcp-cli

substack-mcp-cliSAFE

mcp/thenavidm/substack-mcp-cli

Substack MCP server and CLI for Claude Code, Codex and AI agents. 65 tools for drafts, posts, Notes, subscribers, analytics, tags, comments, and researching other writers.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
4 4r · 0w · 0d
Transport
—
License
MIT
Stars
1
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://www.npmjs.com/package/@thenavidm/substack-mcp-cli) [](./LICENSE) [](https://youtube.com/@thenavidm?sub_confirmation=1) [](https://x.com/thenavidm) [](https://linkedin.com/in/thenavidm)

Substack MCP server and CLI for Claude Code, Codex and AI agents. 65 tools for drafts, posts, Notes, subscribers, analytics, tags, comments, and researching other writers.

One install gives you both surfaces, the same tools under the same names, covering everything the dashboard does and several things it cannot.

Substack has no public API, which is why your assistant cannot see any of it, and why most things that claim to connect publish posts with the HTML tags showing.

This one speaks Substack's own document format. Ask for a draft and you get a draft, with the YouTube link as a player and the paywall where you put it.

Built and maintained by Navid Moazzez. Built on Slipway, which turns one definition of each tool into the MCP server and the CLI.

Two ways to use it

Command line

substack-cli in your terminal, for scripting, cron, pipes, or a quick question without opening anything:

substack-cli                                          # every command, one line eac
Read from source at commit 6b6857267bc0OBSERVED · 2026-10-11
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add substack-mcp-cli --env SUBSTACK_SESSION_TOKEN=${SUBSTACK_SESSION_TOKEN} -- npx -y @thenavidm/[email protected]
claude-desktop
{
  "mcpServers": {
    "substack-mcp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@thenavidm/[email protected]"
      ],
      "env": {
        "SUBSTACK_SESSION_TOKEN": "${SUBSTACK_SESSION_TOKEN}"
      }
    }
  }
}
03

Exposed tools (4)

4 read · 0 write · 0 destructive.

ToolRiskDescription
draft-from-ideareadTurn a rough idea into a full Substack draft, matching the voice of your existing posts.
re-engage-lapsedreadSegment subscribers who have stopped opening, so you can win them back.
study-competitorreadAnalyze another Substack
what-workedreadAnalyze which of your posts performed best and what they have in common.
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (3 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (6)

LOWInventory / provenance · inv.hidden_file · CWE-1104
.mcpbignore
.mcpbignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
tests/subscribers.test.ts:164
for (const address of ["127.0.0.1", "10.0.0.5", "192.168.1.1", "169.254.169.254", "172.16.0.1", "::1"]) {
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@thenavidm/slipway, zod, @types/node, ajv, typescript, vitest
Why it matters. 6 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOPrompt injection · prompt.authority_framing · CWE-94, CWE-1427
INSTALL.md:36
Your `connect.sid` cookie is full access to your Substack account. Treat it like a password. Never paste it into an issue or share it.
INFOPrompt injection · prompt.authority_framing · CWE-94, CWE-1427
README.md:161
**Treat that cookie like a password.** It is full access to your account. Never paste it into an issue, a gist, or a chat with anyone.
INFOPrompt injection · prompt.authority_framing · CWE-94, CWE-1427
SECURITY.md:16
same cookie your browser holds, and it is full access to your account: posting,

Gates applied: no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha 6b6857267bc0full audit observations/trust-audit/mcp-server/thenavidm__substack-mcp-cli.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-116b6857267bc0SAFEB89first audit
06

Questions

What is the substack-mcp-cli MCP server?

Substack MCP server and CLI for Claude Code, Codex and AI agents. 65 tools for drafts, posts, Notes, subscribers, analytics, tags, comments, and researching other writers.

What tools does substack-mcp-cli expose?

4 in total: 4 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is substack-mcp-cli safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does substack-mcp-cli need?

It reads SUBSTACK_SESSION_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How current is this page?

The grade is for one exact copy of the source (6b6857267bc0), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement