Skip to main content
Glama
creator-growth-mcp

creator-growth-mcp

by paul1064
README.md
# creator-growth-mcp

Zero-dependency **MCP server + CLI + agent skills** for creators who sell things and post about them.

- **X Heavy-Ranker auditor** - scores a draft post 0-100 (twitter-text v3 weighted 280 count, leading-`@` trap, outbound-link penalty, hashtag/emoji hygiene, dwell blocks, reply hook) and builds a **$0 browser Web Intent link** when the X API would answer `403`.
- **PII-safe shop analytics** - Gumroad / Stripe / Etsy CSV in, per-currency revenue report out. Buyer data is dropped on ingest, currencies are never mixed, `n < 30` is flagged.
- **Launchpad maths** - net payout per sale after fees, sales needed for a revenue goal, bundle/upsell plan, Buffer bulk-upload CSV, all from a catalog JSON *you* own.
- **Interactive MCP App** - a 280-char ranker preview card and a multi-currency revenue dashboard rendered inside your MCP client (`ui://creator-growth/app.html`).
- **Cloudflare Worker template** - pay-per-audit endpoint with a dual-rail gate: Stripe Checkout subscription for humans, HTTP 402 `x402` USDC for agents.

Node >= 20. No `npm install` needed - there are no dependencies.

## Install

```bash
# Agent skills (Claude Code, Cursor, Codex, Antigravity, ...)
npx skills add paul1064/creator-growth-mcp

# MCP server (stdio) - add to your client config
{ "mcpServers": { "creator-growth": { "command": "node", "args": ["/path/to/creator-growth-mcp/bin/creator-growth-mcp-server.mjs"] } } }
```

## Tools

| Tool | What it does | UI |
|---|---|---|
| `x_seo_audit` | Score any post 0-100 with concrete fixes | ranker card |
| `x_campaign_bundle` | Audit a list/thread of posts + intent links | campaign list |
| `x_intent_url` | Free `x.com/intent/post` or reply link + audit | ranker card |
| `x_post` | Post / quote-post / reply via X API v2 (OAuth 1.0a). **Dry-run by default** | - |
| `x_thread` | Atomic pre-flight, then sequential self-thread. **Dry-run by default** | - |
| `x_whoami` | Read-only credential check (`GET /2/users/me`) | - |
| `shop_revenue_report` | Sales CSV text -> PII-stripped per-currency dashboard | dashboard |
| `launchpad_fee_calc` | Net per sale + sales-to-target | - |

Tool names and JSON keys are sorted deterministically so your prompt prefix stays cache-stable.

### The X reply 403, explained

Self-serve X API tiers reject cold replies to posts that did not mention you (`HTTP 403`). `x_post` warns about it in dry-run and `x_intent_url` gives you the free browser alternative (`/intent/tweet?in_reply_to=<id>`). A quote-post (`quote_tweet_id`) works through the API.

## CLI

```bash
node bin/creator-growth-mcp.mjs --help
node bin/creator-growth-mcp.mjs audit  --text "Shipped a planner patch: latency down 42% on 10M rows.

Want the benchmark repo?"
node bin/creator-growth-mcp.mjs intent --text "Great point - how did you measure it?" --reply-to 1234567890
node bin/creator-growth-mcp.mjs report examples/sales-export.sample.csv --out-dir report
node bin/creator-growth-mcp.mjs fees   --gross 119 --target-net 5999
node bin/creator-growth-mcp.mjs plan   --catalog examples/catalog.example.json
```

Live X calls need `X_API_KEY`, `X_API_SECRET`, `X_ACCESS_TOKEN`, `X_ACCESS_TOKEN_SECRET` in the environment and an explicit `--live` (CLI) or `dry_run: false` (MCP). Nothing is ever published by default.

## Skills

| Skill | Purpose |
|---|---|
| [`x-heavy-ranker`](skills/x-heavy-ranker/SKILL.md) | Audit X drafts before they go out |
| [`shop-csv-analyst`](skills/shop-csv-analyst/SKILL.md) | Deterministic, PII-stripped sales reports |
| [`creator-launchpad`](skills/creator-launchpad/SKILL.md) | Fees, bundles, Buffer schedule from your catalog |

Each skill folder is self-contained (scripts are byte-identical copies of `src/`, enforced by `node scripts/sync-skills.mjs --check` in CI).

## Cloudflare Worker (`worker/`)

```bash
cd worker
cp .dev.vars.example .dev.vars   # fill in test keys
npx wrangler dev
```

`POST /api/audit {"text": "..."}`

1. `Authorization: Bearer cgm_...` (issued after Stripe Checkout) -> `200` + score.
2. `X-PAYMENT` header (x402) -> verified and settled through your facilitator -> `200`.
3. Otherwise `402` with x402 payment requirements (`maxAmountRequired`, `payTo`, `network`, ...) and a `checkout` URL for humans.

A rail that is not configured is not offered; with none configured the endpoint answers `503` (fail-closed). Endpoints: `/health`, `/api/audit`, `/api/checkout`, `/api/stripe/webhook` (signature-verified), `/success?session_id=` (shows the key exactly once). Set production secrets with `wrangler secret put`; never commit `.dev.vars`.

## Tests

```bash
node --test
```

Covers the weighted-length scorer, OAuth signing, thread atomicity, the MCP protocol over a real stdio child process, the MCP App resource, the shop analyzer, fee maths, the CLI, skill sync, the Worker (402/x402/Stripe flows) and a repo-hygiene scan for personal data.

## Want the full studio and bundles?

Templates, recipe books, MIDI and the AI-workflow bundles behind this toolkit live on the author's storefront:

**https://nobis23.gumroad.com** - Pro / bundle upgrades (Antigravity Duo, Kitchen-Komplett-Paket, Complete Studio, MIDI & AI Vault).

Fee figures in the launchpad use editable assumptions (`DEFAULT_FEE_MODEL`); check your platform's current fees and your local payout/earnings rules before planning revenue.

## License

MIT

TDQS

A3.6/5.0

Scored across 8 tools

Disambiguation4/5

The storefront tools (launchpad_fee_calc, shop_revenue_report) are clearly distinct, and the X tools mostly separate cleanly by action (post, thread, audit, whoami). The main soft spots are x_post vs x_intent_url (both 'publish', differentiated only by API vs browser intent) and x_seo_audit vs x_campaign_bundle (single-post score vs list audit), which descriptions do address but could still cause hesitation.

Naming Consistency4/5

All names are snake_case with clear domain prefixes (launchpad_/shop_/x_), giving a predictable grouping. However, the pattern is noun_phrase rather than strict verb_noun throughout (x_intent_url, x_whoami, launchpad_fee_calc vs x_post, x_seo_audit), so it's readable but not perfectly uniform.

Tool Count5/5

Eight tools is well within the ideal range and each maps to a recognizable task: fee math, revenue analysis, posting, threading, auditing, campaign review, intent URLs, and credential verification. Nothing feels like filler for the stated creator-growth scope.

Completeness3/5

The surface covers pre-publish analysis and posting well, but stops short of the full lifecycle: there is no scheduling, no deletion/editing of published posts, and no post-performance/metrics retrieval, which are core to 'growth' work. Revenue side is also CSV-only with no storefront API integration, leaving notable gaps agents cannot work around in-server.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues