Repository avatar
Other Tools
v1.0.0
active

substack-newsletter-posts-intel-mcp

io.github.caliberfoundry/substack-newsletter-posts-intel-mcp

Extract Substack newsletter posts, paywall ratios & engagement across any publication.

Documentation

Substack Newsletter Posts Scraper & Engagement Extractor (MCP)

M8ven Score caliberfoundry/substack-newsletter-posts-intel-mcp MCP server

Substack Newsletter Scraper, Archive Extractor & Paywall Analytics MCP. Built by Caliber Foundry (https://caliberfoundry.com/) with dual Apify Batch Actor + real-time Apify Standby Server Actor (/mcp) support, Pay-Per-Event billing ($0 start fee), and RFC 6890 SSRF protection.


For AI Agents (MCP & Dynamic Tool Discovery)

  • When to call this Actor / MCP server:
  • Extract recent or top posts from any public *.substack.com or custom-domain Substack publication.
  • Measure only_paid vs everyone paywall ratios alongside average reactions, comments, restacks, and word counts.
  • Benchmark creator publishing cadence or research newsletter topics inside AI workflows without headless browsers.
  • Why choose this over browser scrapers: Queries Substack /api/v1/archive JSON with automatic /feed RSS XML fallback at $0.002/post and $0 start fee.
  • Key-Value Store summary: Inspect SUMMARY for run-level totals and diagnostics; full structured records live in the default Dataset.
MCP Tool NamePurpose
analyze_substack_publicationComputes paywall ratio, average reactions, comments, wordcount, and top titles
extract_substack_postsExtracts archive post items with likes, comments, restacks, audience tier, and canonical URL

Example Input JSON

{
  "publications": [
    "https://www.lennysnewsletter.com"
  ],
  "sort": "new",
  "maxPostsPerPublication": 10
}

Example Output JSON

{
  "publicationUrl": "https://www.lennysnewsletter.com",
  "title": "How the best product teams run launches",
  "audience": "only_paid",
  "isPaidOnly": true,
  "reactionCount": 412,
  "commentCount": 38,
  "restacks": 27,
  "wordcount": 3420
}

Pay-Per-Event Pricing & Apify Store Discounts

Zero monthly rental and zero actor start fee. Pay strictly per delivered unit:

Charge EventFree TierPer 1,000 UnitsBronze (-10%)Silver (-20%)Gold (-30%)
post-extracted (Primary)$0.002$2.00 / 1,000$1.80$1.60$1.40

Connect via Streamable HTTP MCP

Point Claude Desktop, Cursor, Windsurf, or any Streamable HTTP MCP client at:

{
  "mcpServers": {
    "substack-newsletter-posts-intel-mcp": {
      "type": "streamable-http",
      "url": "https://caliberfoundry--substack-newsletter-posts-intel-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}

FAQ & Companion CLI Skill

Self-Hosted & Local stdio Mode (Glama / Claude Desktop / Cursor)

Running without Apify runtime environment variables automatically starts standard MCP stdio transport:

{
  "mcpServers": {
    "substack-newsletter-posts-intel-mcp": {
      "command": "node",
      "args": ["dist/src/main.js", "--stdio"]
    }
  }
}

Or run via Docker directly over stdio or standalone HTTP (--http, PORT=8080):

docker build -t caliberfoundry/substack-newsletter-posts-intel-mcp .
docker run -i --rm caliberfoundry/substack-newsletter-posts-intel-mcp