ck42x-traffic
README.md
# ck42x-traffic MCP
A remote [Model Context Protocol](https://modelcontextprotocol.io) server that sells one thing: a **traffic digest for a public host** — which bots and agents hit it, what they fingerprinted as, and how often each block fired.
The endpoint is live and paid in Bitcoin Lightning over [L402](https://github.com/Fewsats/L402). There is no account, no API key, and no signup: ask for data, get an HTTP 402 with a BOLT11 invoice, pay it, retry with the credential.
- Endpoint: `https://www.ck42x.com/api/v2/mcp`
- Transport: streamable HTTP, JSON-RPC 2.0, stateless (no session id)
- Registry id: `com.ck42x/traffic` (official MCP registry)
- Human-readable index: `https://www.ck42x.com/api/v2`
## Tools
| Tool | Price | What you get |
| --- | --- | --- |
| `preview` | free | Two sample paths and the current hit counters, enough to judge the payload shape |
| `live_counters` | free | Rolling hit totals by block and by agent class |
| `traffic_digest` | 1,000 sats | Top paths, top agent fingerprints, recent source addresses, per-block counts |
| `claim_payment` | free | Exchange a preimage (or a txid for the onchain rail) for a bearer token |
`traffic_digest` returns `paid:false` plus a `bolt11` invoice and `price_sats` when unpaid. Pay the invoice and call `claim_payment` with `{"preimage": "..."}` to get a token, or present `Authorization: L402 <macaroon>:<preimage>` on the resource itself — the endpoint settles a presented preimage directly, so a spec-compliant client never burns sats for a second 402.
## Use it from a client
```json
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"probe","version":"1"}}}
```
```json
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"traffic_digest","arguments":{"limit":25}}}
```
`client.ts` is a working probe:
```bash
npx tsx client.ts
```
### stdio clients
Clients that only speak stdio (Claude Desktop, Cursor, mcp-inspector) can use the bundled bridge, which forwards to the hosted endpoint:
```bash
npx -y github:lordbuffcloud/ck42x-traffic-mcp
```
```json
{
"mcpServers": {
"ck42x-traffic": {
"command": "npx",
"args": ["-y", "github:lordbuffcloud/ck42x-traffic-mcp"]
}
}
}
```
`CK42X_MCP_URL` overrides the endpoint for testing against a staging lane.
## Terms
Data is best-effort, refreshed continuously, and sold as-is. Payment is final; a settled payment is credited to the presented preimage, not to an identity, so keep it. Premium tier (raw per-hit rows, 30 days, 18,750 sats) lives at `https://www.ck42x.com/api/v2/keys/premium`.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues