Substack API integration and MCP server by Cotlet
dev.cotlet/substack
Unofficial Substack API integration and MCP server by Cotlet: AI works in your Substack account.
- add_subscriber — Add one email to your list as a free subscriber. Adds one email as a free subscriber, the same as Add subscribers in the dashboard, and Substack sends its usual welcome email. Substack adds the email
- cancel_scheduled_post — Stop a scheduled post from going out; it stays as a draft. Removes the scheduled time from a post, so nothing is published or emailed then; the post stays a draft with its content. Schedule it again w
- cotlet_app_guide — How to work in an app by clicking in the user's Cloud Browser with Cotlet's browser tools: which browser to use for this workspace and the sign-in link, the method step by step, the app's screens, men
- cotlet_apps — The apps of the user's workspace and whether each works now: access granted or requested, the app account in the user's Cloud Browser (connected, signed out, signed in but not connected), and the one
- cotlet_browser_back — Goes back one page in the user's Substack Cloud Browser, like the browser's Back button (with `forward`, forward again). Returns the URL and title. Run browser steps one at a time and wait for each an
- cotlet_browser_click — Clicks a link, button, option or other element of the current page in the user's Substack Cloud Browser, by its number in the page's element list, or a point of the screenshot (`x`, `y`) for boards, c
- cotlet_browser_close — Ends the session in the user's Substack Cloud Browser: the browser keeps its cookies, goes to sleep and the per-minute charge stops. Returns the session's minutes and credits.
- cotlet_browser_drag — Drags from one element or point of the screenshot to another in the user's Substack Cloud Browser: a piece on a board, a card between columns, a field into a form builder, a slider's handle. Run brows
- cotlet_browser_hover — Rests the pointer on an element of the current page (or a point of the screenshot) in the user's Substack Cloud Browser, as a person does to open a hover menu, a tooltip or a card's preview. Read afte
- cotlet_browser_navigate — Opens a public http or https address in the user's Substack Cloud Browser and returns the URL and title it ended on. Only Substack pages open. Run browser steps one at a time and wait for each answer;
- cotlet_browser_open — Wakes the user's Substack Cloud Browser, a real Chrome hosted on Cotlet and signed in to Substack as the user. Use it for what the Substack tools do not cover. Opens `url` when given and returns the p
- cotlet_browser_press — Presses a key on the current page in the user's Substack Cloud Browser, on the element that has focus: Tab to the next field, Enter to send, Escape to close a dialog or pop-up, arrows to move through
- cotlet_browser_read — Returns the current page of the user's Substack Cloud Browser: its readable text, up to 20,000 characters, and a numbered list of its links, buttons, fields, options and toggles, also inside frames. O
- cotlet_browser_screenshot — Returns a JPEG image of the visible part of the current page in the user's Substack Cloud Browser, with its URL and title: boards, canvases and layouts that the page text does not show. Run browser st
- cotlet_browser_scroll — Scrolls the current page in the user's Substack Cloud Browser with the mouse wheel, as a person does: down or up by `screens` viewport heights (default 0.8), to the top or the bottom, or until element
- cotlet_browser_select — Chooses an option of a drop-down list on the current page in the user's Substack Cloud Browser, by the list's number in the element list and the option's label as read lists it (or its value). Returns
- cotlet_browser_type — Types text into a field of the current page in the user's Substack Cloud Browser, by the field's number in the page's element list, and with `submit` presses Enter. Returns the URL and title after it.
- cotlet_browser_upload — Puts files into a file field of the current page in the user's Substack Cloud Browser, or into the file picker that an upload button opens, by its number in the element list. A file is given as {"url"
- cotlet_browser_wait — Waits until `text` shows on the current page in the user's Substack Cloud Browser (at most `seconds`, default 5, up to 20), or just `seconds` without text: for results, prices or a page that load slow
- cotlet_get_call — Status of an earlier Cotlet call, by its call_id: pending (waits for the owner's approval in the Cotlet console), approved, running, success, rejected, expired, blocked or failed. For a call that answ
- cotlet_report_issue — Sends a report straight to the Cotlet team: a tool that failed or returned wrong data, an error you could not get past, or a tool, field or app the task needed and Cotlet lacks. The report carries the
- cotlet_request_apps — Requests access to apps for the user's workspace, as Request access in the console: every app is granted at once. An app with dedicated tools gets them after the user signs in to it in their Cloud Bro
- cotlet_upload_file — Returns a one-time upload_url and a file_id for a local file (an image for a post, an attachment). The file is sent to upload_url with an HTTP PUT; an argument that takes a file accepts {"file_id": ".
- cotlet_whoami — The Cotlet account this connection acts as: email, workspace, access status, the API key or OAuth client in use with its scope, the apps the workspace may call and its credit balance. Free. Needs the
- create_draft — New draft from Markdown. Nothing is sent until you publish or schedule it. Creates a draft in your publication and returns its post_id and editor link. Markdown covers headings, paragraphs, bullet and
- create_post_tag — New tag for grouping your posts. Creates a post tag on your publication; Substack makes the slug from the name. A tag with no posts shows nowhere. Put posts under it with tag_post.
- create_subscriber_tag — New private tag for grouping subscribers. Creates a subscriber tag on your publication. Tags are private: subscribers never see them. Put subscribers under it with tag_subscribers.
- delete_comment — Delete one of your own comments, Notes or Note replies. Deletes something you wrote: a comment under a post, a Note or a reply to a Note. Replies other people wrote under it stay, under a deleted plac
- delete_post — Delete a draft, scheduled or published post, with its comments. Deletes one post of your publication for good: a draft, a scheduled post (its send is cancelled) or a published post, which leaves the w
- duplicate_post — Copy any post into a new draft. Makes a new draft with the title, subtitle, body and settings of a draft or published post, as Duplicate in the post list does. Substack puts [COPY] in front of the tit
- export_subscribers — The full subscriber list as a CSV download link, with the row count. Builds the same CSV as Export in the subscriber dashboard: email, name, subscription type, activity rating and start date. Substack
- follow_user — Follow or unfollow a Substack user, so their Notes reach your feed. Follows a person on Substack, as Follow on their profile does, or unfollows them. Following is not subscribing: you get their Notes
- get_audience_insights — Where your subscribers live, and which publications share your readers. Returns Analytics > Statistics > Audience: subscriber counts per country (region world, ISO codes such as us, gb) or per US stat
- get_conversation — The latest messages of one direct-message conversation, oldest first. Returns who is in the conversation and its latest messages as the chat window first shows them, oldest first, with sender, text an
- get_daily_stats — Day by day: total and paid subscribers, followers and views. Returns one row per day of the period, as the charts on the dashboard home and in Audience: total subscribers, paid subscribers and followe
- get_feed — Your Substack home feed: posts and Notes, For you or Following. Returns one page of the home feed of the Substack app, split into posts and Notes in feed order. for_you is Substack's own mix; followin
- get_post — Full post: title, subtitle, body as Markdown, audience, URL and dates. Returns one post of your publication, draft, scheduled or published, with its full body as Markdown, including the paywalled part
- get_post_engagement — Who liked and commented on a post, and the subscribers it won and lost. Returns the Engagement and Growth parts of a post's stats: like and comment counts with the people behind them (name and handle,
- get_post_stats — Recipients, opens, open rate, views, likes, restacks and subscribers gained. Returns the engagement numbers of one published post, as on its stats page in the dashboard. Email numbers cover the send;
- get_post_traffic — Where a post's readers came from: sources, categories and devices. Returns the Traffic part of a post's stats: each source (app, email, a website, search) with its views, share of all views and the fr
- get_publication_stats — Total and paid subscribers, new subscribers, paid cancellations and estimated revenue for a period. Totals are from the publisher dashboard at the end of the period (7, 30 or 90 days). subscribers_chu
- get_unread_counts — How many unread direct messages, message requests and activity notifications you have. Returns the badges of the Substack app: unread direct messages, pending message requests and unread activity (lik
- like_comment — Like or unlike a comment or a Note as you. Adds your heart to any Note or Note reply, or to a comment under a post of your publication, or removes it with unlike. Comments and Notes share one ID space
- like_post — Like or unlike any Substack post as you. Adds your heart to a post on any publication, as the heart under a post does, or removes it with unlike. The author sees your like in their activity. Liking tw
- list_activity — Your Substack notifications: replies, likes, new followers, restacks, newest first. Returns the Activity tab of the Substack app, newest first. type is Substack's own name, e.g. note_reply, note_like,
- list_comments — Comments on a post, with author, text and whether you replied. Returns all comments of one post at once, oldest first, with replies nested under their parent. Deleted comments are left out. replied is
- list_conversations — Your direct-message conversations, latest first, with the last message. Returns your Substack chat inbox: one-to-one and group direct messages with who they are with, the last message, its time, your
- list_note_replies — Replies under a Note, with author, text and likes. Returns the direct replies under one Note (yours or anyone's), in Substack's order. replies is the count under each reply; list those by passing its
- list_notes — Notes posted by you or any other Substack user, newest first, with likes and replies. Returns the Notes on a profile's Notes tab, newest first: text, time, likes, restacks, reply count and link. Witho
- list_post_tags — Tags your publication uses to group posts. Returns every post tag of your publication with its ID, name and slug; readers see tagged posts on /t/{slug}. hidden tags group posts without a public page.