Skip to main content
Glama
mambalabsdev

Substack Scraper MCP Server

Scrape Substack publications, posts, and search

scrape_substack
Read-onlyIdempotent

Read Substack publications and posts, or search by keyword to collect publication details, subscriber counts, paid plan prices, and per-post metrics such as likes and comments.

Instructions

Read Substack publications and posts, or search Substack by keyword. Give publications as URLs, domains, substack.com profiles, or bare Substack names (for example lenny.substack.com, https://www.notboring.co, lenny). Each publication returns one publication row (name, author, subscriber count as Substack shows it, subscriber tier text, paid plan prices) and its newest posts, one row each with date, free or paid audience, likes, comments, restacks, word count, bylines, and tags. Search queries return matching posts with their publication and subscriber count, or one row per publication when search_output is publications. Input with nothing to run returns one free row whose error_reason starts with input_invalid:. A run that does not succeed is returned as an error with its run ID. Read-only; requires an APIFY_TOKEN; Apify charges per post row and per publication row.

Input Schema

NameRequiredDescriptionDefault
proxy_modeNoHow pages are fetched. Default auto.
since_daysNoOptional. Skip posts older than this many days. 0 or empty keeps every post up to the max. Default 0.
include_bodyNotrue to add the post text (up to 20,000 characters) to each post row of a listed publication. A paid post gives its free preview. Reads one more page per post; no extra charge. Default false.
publicationsNoSubstack publications, one per line, up to 100: a URL (https://www.lennysnewsletter.com), a domain (lenny.substack.com), a profile (substack.com/@lenny), or a bare Substack name (lenny). Each one returns a publication row and its newest posts.
search_outputNoWhat a search query returns. Default posts.
max_charge_usdNoOptional. The run stops before it would charge more than this.
search_queriesNoKeywords to search across Substack posts, one per line, up to 20. Each query returns matching posts, or the publications behind them when Search output is publications.
max_search_resultsNoRows returned per search query, 1 to 1000. Default 50.
include_publication_rowNotrue to return one publication row per listed publication (name, author, subscribers, paid plan prices), billed as a publication row. false returns only post rows. Default true.
max_posts_per_publicationNoNewest posts returned per publication, 0 to 1000. 0 returns only the publication row. Default 20.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the read-only annotations: it discloses that an APIFY_TOKEN is required, that Apify bills per post row and per publication row, that invalid input returns a free row whose error_reason starts with input_invalid:, and that a failed run is returned as an error with its run ID. These are exactly the operational facts an agent needs before invoking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the two modes, then details outputs, then error/cost behavior—a sensible ordering. It is dense and somewhat run-on with many clauses in one paragraph, but nearly every sentence carries operational value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters, no required fields, and no output schema, the description does the heavy lifting on return shape: it enumerates publication row fields and post row fields, and covers error and billing semantics. It omits how optional controls like include_body or since_days change the returned rows, a minor but real gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is already 100%, so the schema carries the parameter burden. The description restates the accepted publication formats and the search_output behavior, which is useful reinforcement but adds little new meaning, and it never mentions include_body, since_days, proxy_mode, or max_charge_usd. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States specific verbs and resources: reading Substack publications and posts, and searching Substack by keyword. It clearly separates the two operating modes (listed publications vs. keyword search) so an agent knows exactly what the tool does without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains that input is publications or search queries and that search_output controls whether search returns posts or publications, which effectively tells the agent which input to supply for which goal. There are no sibling tools to disambiguate against and no explicit 'when not to use' guidance, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools