npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kembec/substack-mcp-darwin-arm64

v0.1.13

Published

substack-mcp binary for darwin arm64

Readme

substack-mcp

npm License platforms

Read and publish to any Substack publication — single Rust binary, no Node.js runtime.

Prerequisites

  • A Substack account

  • Your connect.sid session cookie — get it in 3 steps:

    1. Log in at substack.com
    2. Open DevTools → ApplicationCookieshttps://substack.com
    3. Copy the value of the connect.sid cookie

    Works with the raw value (s:abc…) or the URL-encoded form (s%3Aabc…) — the server decodes automatically.

  • Your publication URL (e.g. https://yourname.substack.com) — only required for draft and publish tools

Credentials are read from environment variables only and are never written to disk.

Installation

npm install -g @kembec/substack-mcp

Or run directly without installing:

npx @kembec/substack-mcp

Configuration

Two environment variables:

| Variable | Required for | Example | |----------|-------------|---------| | SUBSTACK_SID | Authenticated tools | s:0w29uWWh… | | SUBSTACK_PUBLICATION_URL | Draft and publish tools | https://yourname.substack.com |

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "substack": {
      "command": "npx",
      "args": ["-y", "@kembec/substack-mcp"],
      "env": {
        "SUBSTACK_SID": "s:your-connect-sid-value",
        "SUBSTACK_PUBLICATION_URL": "https://yourname.substack.com"
      }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "substack": {
      "command": "npx",
      "args": ["-y", "@kembec/substack-mcp"],
      "env": {
        "SUBSTACK_SID": "s:your-connect-sid-value",
        "SUBSTACK_PUBLICATION_URL": "https://yourname.substack.com"
      }
    }
  }
}

Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.substack]
command = "npx"
args = ["-y", "@kembec/substack-mcp"]
enabled = true

[mcp_servers.substack.env]
SUBSTACK_SID = "s:your-connect-sid-value"
SUBSTACK_PUBLICATION_URL = "https://yourname.substack.com"

Tools

Public — no credentials needed

| Tool | Parameters | Description | |------|-----------|-------------| | get_profile | slug: string | Fetch a writer's public profile | | get_posts | publication_url: string, limit?: number, offset?: number | List published posts | | get_post | publication_url: string, post_slug: string | Get a single post with content | | get_comments | post_id: number, limit?: number | List comments on a post | | get_notes | user_id: number, limit?: number, offset?: number | List a user's notes |

Authenticated — requires SUBSTACK_SID

| Tool | Parameters | Description | |------|-----------|-------------| | create_note | body: string | Post a note to your profile | | like_post | post_id: number | Like a post |

Publication — requires SUBSTACK_SID + SUBSTACK_PUBLICATION_URL

| Tool | Parameters | Description | |------|-----------|-------------| | list_drafts | limit?: number, offset?: number | List unpublished drafts | | create_draft | title: string, body: string, audience?: "everyone"\|"paid" | Create a new draft | | update_draft | draft_id: number, title?: string, body?: string | Edit an existing draft | | publish_post | draft_id: number, send_email?: boolean | Publish a draft |

Warning — publish_post is irreversible. When send_email is true (default), the post is published and emails are sent to all subscribers immediately. Always verify the draft content with list_drafts or get_post before publishing.

Building from source

Requires Rust 1.78+:

git clone https://github.com/Kembec/substack-mcp.git
cd substack-mcp
cargo build --release
./target/release/substack-mcp

License

MIT