Skip to main content

Substack API integration and MCP server: connect Substack to ChatGPT, Claude and any AI agent

Substack API integration and MCP server, unofficial, by Cotlet. Your AI works in your own signed-in Substack account: posts, drafts, Notes, subscribers, comments and stats, on the same screens your login opens. Cotlet has 50 ready Substack tools for AI agents, and the Cloud Browser does the rest. No developer and no Substack API key needed. Cotlet is independent and is not affiliated with Substack.

Does Substack have an API or an MCP server? Substack has an official MCP server, but it only reads (stats, traffic, revenue, retention), works only for Bestseller publications where you are an admin, and cannot publish posts or send Notes (Substack help center, checked 22 Nov 2026). Its Developer API returns public creator profile data after approval, with no posts, drafts or subscribers. Substack has no Zapier app and no Make app.

What writers ask their AI to do in Substack

Job Ask your AI Make it repeat
Draft from a Google Doc "Turn this Google Doc into a Substack draft with its headings and images. Do not publish." When a post is ready
Old posts into Substack "Copy my archived posts from these Google Docs into Substack drafts, one per post, with the images." Once
Website signups into Substack "Add the people who signed up on my website form today as free subscribers. Show me the list first." Your own endpoint, called from your form tool
Subscribers to MailerLite or Kit "List this week's new free and paid subscribers so I can add them to MailerLite." Your own endpoint, called from Zapier, Make or n8n
Notes from your post "Write 5 Notes from my latest post and show them to me. Post the one I pick at the time I choose." After each post
Why the numbers moved "Why did my open rate drop this month? Compare opens, new subscribers and traffic sources with last month." Monthly
Stats in a spreadsheet "Put each post's opens, views and new subscribers from this year in a spreadsheet." Your own endpoint, called from Google Sheets
Comments you have not answered "List comments on my last 3 posts that I have not answered and draft a reply for each. Post nothing." When you ask
Share a post on social "Write a LinkedIn post and an X post for today's Substack post, with its link." After each post
Clean up the list "Tag subscribers with the lowest activity rating as inactive. Show me how many first." Monthly
Backup "Download my subscriber list and all my posts as a backup." Monthly
Leaving Substack "Export my posts and my subscribers with their plan for my move to Ghost." Once

Your AI asks you before it publishes, posts a Note, replies or changes anything. It does not auto-reply and does not post in bulk: Substack's Terms of Use forbid auto-responders and spam. Payments stay in your hands: Cotlet refuses payments.

Your own Substack API, built with Cotlet

Substack gives you no API for posts, drafts or subscribers. With Cotlet you build your own: your AI does the job once in your Cloud Browser, you save it as an endpoint, and you call it from Google Sheets, Webflow or WordPress forms, Zapier, Make, n8n, your own code.

Examples you can build in a few minutes (none of them exists until you build it):

Endpoint you build What it returns or does
new-subscribers subscribers who joined since a date, with free or paid plan
add-subscriber adds one email to your list as a free subscriber (writes only after you allow it)
post-stats opens, open rate, views and new subscribers per post for a period
publication-stats total and paid subscribers, cancellations and estimated revenue for a period
traffic-sources where your visitors came from in a period
unanswered-comments comments on your posts that have no reply from you
export-subscribers the full subscriber list as a CSV link
create-draft a draft from your Markdown or HTML; nothing is sent (writes only after you allow it)

Call it with your Cotlet API key, JSON in and JSON out:

curl -X POST https://cotlet.dev/api/v1/custom/new-subscribers \
  -H "Authorization: Bearer $COTLET_API_KEY" -H "Content-Type: application/json" -d '{}'

Limits: one call runs up to 90 seconds, writes wait for your consent, payments are blocked. Start here: https://cotlet.dev/app/custom-api/new?app=substack

Connect in 2 minutes

Sign up at https://cotlet.dev, sign in to Substack once in your Cloud Browser, then add Cotlet to your AI.

Claude

Settings → Connectors → Add custom connector, paste https://cotlet.dev/mcp/v1 and sign in with Cotlet.dev.

ChatGPT

Open Plugins in ChatGPT, choose Create as a plugin, paste https://cotlet.dev/mcp/v1 and sign in with Cotlet.dev. No API key needed.

Claude Code

claude mcp add --transport http cotlet https://cotlet.dev/mcp/v1 --header "Authorization: Bearer $COTLET_API_KEY"

Cursor

Copy .cursor/mcp.json from this repo into your project:

{
  "mcpServers": {
    "cotlet": {
      "url": "https://cotlet.dev/mcp/v1",
      "headers": {
        "Authorization": "Bearer ${COTLET_API_KEY}"
      }
    }
  }
}

Run it locally (stdio)

This repo is a real MCP server. It speaks MCP over stdio, lists its Substack tools without any key, and forwards every tool call to the hosted Cotlet.dev server. The hosted URL above stays the recommended way. Use this when your client only starts local servers.

{"mcpServers":{"substack":{"command":"uvx","args":["substack-mcp"],"env":{"COTLET_API_KEY":"your-key"}}}}

Or with Docker:

docker build -t substack-mcp .
docker run -i --rm -e COTLET_API_KEY substack-mcp

Tools: substack_guide, substack_status, substack_open, substack_read, substack_click, substack_type, substack_close. Without COTLET_API_KEY a tool call answers: "Set COTLET_API_KEY. Get a key at https://cotlet.dev/app".

Command line

Python 3.10+, nothing else to install. From PyPI:

pip install substack-mcp        # or run it once: uvx substack-mcp connect
substack-mcp connect

Or straight from this repo:

export COTLET_API_KEY="your-key"
python3 substack_agent.py connect   # ready config for Claude Code, Cursor, ChatGPT
python3 substack_agent.py status    # is Substack ready in your Cotlet.dev account
python3 substack_agent.py guide     # Substack screens and sign-in link
python3 substack_agent.py read      # open Substack, read the page, close the browser
python3 substack_agent.py tools     # list Cotlet.dev tools
python3 substack_agent.py serve     # start the stdio MCP server (same as no argument)

Questions from Substack writers

Does Substack have an API?

A narrow one. The Substack Developer API (terms updated 8 Jan 2026) returns public creator profile data after approval. It has no endpoints for posts, drafts or subscribers. With Cotlet you build your own endpoints that work in your signed-in Substack account.

Is there an official Substack MCP server for ChatGPT or Claude?

Yes, read-only. Substack's MCP server reads stats, traffic, revenue and retention, only for Bestseller publications where you are an admin. It cannot publish posts or send Notes. Cotlet works in your own Substack account on any plan and also does the writing side, after your OK.

How do I connect Substack to Zapier or Make so a website signup is added to Substack?

Substack has no Zapier or Make app. Build an add-subscriber endpoint with Cotlet and call it from Zapier, Make, n8n or your form tool. Each new email is added as a free subscriber.

How do I sync Substack subscribers to MailerLite, Kit or beehiiv without exporting a CSV every time?

Build a new-subscribers endpoint and call it from Zapier, Make or n8n on a schedule. It returns the people who joined since a date, with their free or paid plan, ready to add in your email tool.

Can Claude or ChatGPT create a draft in Substack from a Google Doc?

Yes, with Cotlet. Your AI reads the doc and saves a Substack draft with its headings and images. Nothing is published until you say so.

Can AI write and schedule Substack Notes?

It writes Notes from your post and posts the one you pick, now or at the time you choose. It does not post Notes on its own.

Can AI tell me why my open rate or subscriber growth dropped?

Yes. It reads your post stats, daily stats and traffic sources in your account and compares two periods in plain words.

How do I export all my Substack posts and subscribers?

Substack exports them by hand in Settings. Your AI can download the subscriber CSV and your posts for you, and a monthly backup can run from your own endpoint.

Can I connect Substack to Google Sheets?

Yes. Build a post-stats or publication-stats endpoint and call it from Google Sheets, or from a Zapier or Make step that writes the rows.

Can I move my subscribers to Ghost, beehiiv or Kit?

Your AI exports your posts and the subscriber list with each person's plan, in the files those importers take. Stripe and paid subscriptions stay in your hands.

Is this allowed by Substack's terms?

Cotlet works in your own signed-in Substack session and does what you ask, one task at a time, with your OK before anything is posted. Substack's Terms of Use (6 Oct 2026) forbid auto-responders, spam and crawling, so do not use it for auto-replies, bulk Notes or copying other writers' posts.

Find it on

More newsletter and creator apps on Cotlet

Metadata

Release files for substack-mcp 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for substack-mcp 1.1.1
File Size Uploaded Provenance Actions
substack_mcp-1.1.1.tar.gz 10.4 kB Without provenance Details for substack_mcp-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for substack-mcp 1.1.1
File Interpreter ABI Platform Actions
substack_mcp-1.1.1-py3-none-any.whl Python 3 none any Details for substack_mcp-1.1.1-py3-none-any.whl

Total release size: 20.9 kB

Release files / substack_mcp-1.1.1.tar.gz

Download URL substack_mcp-1.1.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
87f476d4b3b252a67071d753476c164932a818770f7e19798540f620aa6dd9f6
BLAKE2b-256 checksum
How to use checksums
4983fb64536760c0b98278711365780f00464e94f40eff374ab62d044b9992c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / substack_mcp-1.1.1-py3-none-any.whl

Download URL substack_mcp-1.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1baa2d4703954929dea6235c3963b15ad0c47c9b9f1611f0625fca0bcad82bc8
BLAKE2b-256 checksum
How to use checksums
539d4ef918914d9ea4de6db7308ae13f6dbd2c007179ff9592e45d8c96b238cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for substack-mcp 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page