Skip to main content
Glama
substack-newsletter-posts-intel-mcp

substack-newsletter-posts-intel-mcp

README.md
# Substack Newsletter Posts Scraper & Engagement Extractor (MCP)

[![M8ven Score](https://m8ven.ai/badge/mcp/caliberfoundry-substack-newsletter-posts-intel-mcp-kzzcqu?v=6d55776ecadb376a93d0a88c2e359cdd)](https://m8ven.ai/mcp/caliberfoundry/substack-newsletter-posts-intel-mcp?s=readme)

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 Name | Purpose |
| :--- | :--- |
| `analyze_substack_publication` | Computes paywall ratio, average reactions, comments, wordcount, and top titles |
| `extract_substack_posts` | Extracts archive post items with likes, comments, restacks, audience tier, and canonical URL |

## Example Input JSON

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

## Example Output JSON

```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 Event | Free Tier | Per 1,000 Units | Bronze (-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:

```json
{
  "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

- **Does it work on custom-domain Substacks?** Yes. Works seamlessly on both `*.substack.com` subdomains and custom domains like `lennysnewsletter.com` or `newsletter.pragmaticengineer.com`.
- **Can it bypass paid Substack paywalls?** No. It extracts public archive metadata, previews, and engagement signals without bypassing publisher access controls.
- **Local CLI Skill ($15.00 on Agensi):** [https://www.agensi.io/skills/substack-newsletter-archive-engagement-intel](https://www.agensi.io/skills/substack-newsletter-archive-engagement-intel)
- **Full Caliber Foundry MCP Catalog:** [https://caliberfoundry.com/mcp/](https://caliberfoundry.com/mcp/)