substack-mcp: Instructions file for Claude Code

CLAUDE.md

substack-mcp CLAUDE.md is an instructions file for Claude Code from marcomoauro/substack-mcp. It costs 13,192 tokens per session, scanned A, original, MIT.

A project instruction file for a Substack automation service, which provides tools for working with Substack, a publishing and newsletter platform. It documents runtime versions, language rules, commands, releases, and layout.

In plain words
What is it for?
Use it when developing, testing, releasing, or maintaining the service and its npm package.
Why use it?
It gives contributors and coding agents one place to follow the project’s supported Node.js versions and development conventions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is marcomoauro/substack-mcp's own configuration. It tells Claude Code how to work on substack-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything substack-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to marcomoauro/substack-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/marcomoauro/substack-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/marcomoauro/substack-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for substack-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/marcomoauro/substack-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/marcomoauro/substack-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/marcomoauro/substack-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/marcomoauro/substack-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for substack-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/marcomoauro/substack-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/marcomoauro/substack-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13,192 This file is loaded in full into every session.
When invoked 13,192 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.13192 $0.13192
Opus 5.5 $0.05277 $0.05277
Sonnet 5.5 $0.02638 $0.02638
Haiku 4.5 $0.01319 $0.01319

Measured 2mo ago against content hash 5c97eda9ae0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

substack-mcp CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

the code cannot avoid it, so curl-by-curl "verified end to end" is not a verification of the same
CLAUDE.md · 707 lines

How it starts

The opening of the file, as written. The whole thing — 707 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

MCP server exposing Substack automation to LLM clients. ESM, npm. Development, CI and the image run Node 24 — .nvmrc and Dockerfile pin 24.19.0 exactly — while engines declares >=22, so src/ may use nothing newer than Node 22 offers.

That floor is deliberate, not inherited: 22 is the oldest Node line still receiving security patches (18 went EOL 2025-04-30, 20 on 2026-04-30), and it is the lowest version every production dependency accepts — @hono/node-server asks for >=20, everything else >=18. Raising it breaks anyone running npx substack-mcp@latest on an older runtime, so it is a major bump; the honest ceiling is the oldest supported LTS, not the version that happens to be installed locally.

Two CI jobs run the suite: one on .nvmrc, one on the floor. The floor job derives its version from engines (node -p "require('./package.json').engines.node.match(/\d+/)[0]") rather than repeating it, so the promise and the test cannot drift. Developing two majors above the floor is precisely how an unexercised engines rots into a lie — the runtime differences are real and silent, as the fetch stack below shows.

Language

Everything in the repository is written in English — source, comments, test names, commit messages, PR titles and descriptions, docs. This holds regardless of the language used in the chat: do not mirror the conversation language into the codebase.

Commands

Command Purpose
npm ci Install from package-lock.json (never npm install in CI or Docker)
npm test Run the suite (node --test 'src/**/*.spec.js')
npm run test:watch Same, in watch mode
npm run test:coverage Coverage report, spec files excluded
npm pack --dry-run Verify what ships to npm

npm test runs in under a second, but its output shape depends on the Node version: on 24 it is the spec reporter (tally ℹ pass, failures marked ✖), on the 22 floor it is TAP — five times noisier, tally # pass, failures not ok. Grep for both, or a perfectly green run on the wrong version comes back empty and reads as a broken command: grep -E '^(#|ℹ) (tests|pass|fail)' for the tally, grep -E '^(not ok|✖)' for what broke.

Read the full file on GitHub · 707 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +43 lines · +889 tokens per session 5c97eda9ae0b
  2. 2mo ago First seen · 664 lines · 12,303 tokens per session scan A c1fbdef7bf79

Subscribe to this mod's changes

substack-mcp CLAUDE.md is an instructions file published in the GitHub repository marcomoauro/substack-mcp (91 stars, last pushed 2mo ago), licensed MIT. It adds 13,192 tokens to every session, about $0.0528 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

substack-mcp CLAUDE.md compared with instructions from other repositories

substack-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
substack-mcp CLAUDE.mdmarcomoauro/substack-mcpInstructions file912mo agoMITA13,192Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode