streamable-httpMITupdated 28d ago
The Wintergreen x402 Content Broker is production payment infrastructure for the agent economy: a machine-facing storefront where AI agents discover resources, pay per-request on-chain, and receive verified delivery. It is the merchant side of the x402 micro-payment protocol. Where Cloudflare's Kitesurf is a machine-facing browser, this is a machine-facing storefront ā built for crawlers and clients, not eyeballs: discovery through /.well-known/x402 and agent-card.json, priced invoices instead of shopping carts, on-chain settlement instead of checkout, a signed response instead of a rendered pā¦
What can you do with financial data?
Wintergreen x402 Content Broker
The Wintergreen x402 Content Broker is production payment infrastructure for the agent economy: a machine-facing storefront where AI agents discover resources, pay per-request on-chain, and receive verified delivery. It is the merchant side of the x402 micro-payment protocol. Where Cloudflare's Kitesurf is a machine-facing browser, this is a machine-facing storefront ā built for crawlers and clients, not eyeballs: discovery through /.well-known/x402 and agent-card.json, priced invoices instead of shopping carts, on-chain settlement instead of checkout, a signed response instead of a rendered page.
The flow is end to end and machine-native: an agent requests an endpoint, receives a priced invoice in USDC, pays on-chain on Base (eip155:8453) through Coinbase Developer Platform facilitators, and receives the resource ā with every transaction appended to the append-only receipts/ log. Payer, amount, endpoint, latency, and settlement hash are recorded per accepted outcome, and the on-chain settlement record is the independent verifier. The x402_trust submodule publishes independent, verifiable trust scores so agents can assess an endpoint before they spend.
Live at x402.wintergreen.uk (health check: {"status":"healthy","x402_enabled":true,"network":"eip155:8453"}), brokered under the x402scan Bazaar listing. Status is honest and measured: one accepted paid outcome to date ā $0.02 USDC on 2026-08-07, delivered in 1,625 ms with HTTP 200 ā against 6,722 discovery events from agent crawlers. Payments are real, and adoption is in progress; every number above traces to the receipt log.
Payments are real. The broker accepts live x402 payments (ETH/USDC via Coinbase Developer Platform facilitators), serves paid content, and appends every transaction to an immutable receipt log.
What it does
x402 is a payment protocol for AI agents: an agent requests an endpoint, gets a priced invoice, pays on-chain, and receives the resource. This broker is a full reference implementation of the merchant side:
- Discovery ā free catalog +
/.well-known/x402fan-out so agent crawlers find the storefront. - Pricing ā per-endpoint invoices ($0.01ā$0.25) enforced at the protocol layer.
- Settlement ā CDP facilitator JWT auth, on-chain payment verification, idempotent fulfillment.
- Content ā quant methodologies, AI prompt packs, and live edge-data endpoints.
- Receipts ā every paid interaction appended to
receipts/(append-only, probe history + settlement log). - Trust ā the
x402_trustsubmodule computes independent, verifiable trust scores for endpoints.
Architecture
flowchart LR
A[Agent / client] -->|1. GET /api/v1/...| B[x402 Server<br/>server/x402_server.py]
B -->|2. invoice: price + pay-to| A
A -->|3. on-chain payment| C[(EVM chain)]
C -->|4. facilitator verify| B
B -->|5. signed response| A
B --> R[(receipts/ append-only)]
B --> T[x402_trust submodule<br/>trust scores]
Live endpoint surface (see module docstring for full list):
| Endpoint | Price | Type |
|---|---|---|
/ /api/v1/catalog /health |
free | Discovery / ops |
/.well-known/x402 |
free | Bazaar fan-out |
/api/v1/search |
$0.01 | Search |
/api/v1/prompts/{id} |
$0.05 | Single prompt |
/api/v1/prompts/category/{c} |
$0.10 | Category bundle |
/api/v1/prompts/pack |
$0.25 | Full methodology pack |
/api/v1/quant/* |
$0.01ā$0.02 | Live edge-data endpoints |
Tech Stack
| Layer | Technology |
|---|---|
| Payment protocol | x402 (x402[fastapi,evm]) |
| Server | Python FastAPI + uvicorn |
| Settlement | Coinbase Developer Platform facilitators (JWT auth, per-endpoint keys) |
| Storage | JSON receipt logs + trust score store |
| Submodule | x402-trust (PyPI-published trust scoring) |
Setup
Prerequisites
- Python 3.11+
- An EVM wallet with funds for gas (merchant)
- CDP facilitator credentials (optional ā graceful fallback to free mode)
Run locally
git clone --recurse-submodules https://github.com/wintergreen-ventures/x402-content-broker.git
cd x402-content-broker
pip install "x402[fastapi,evm]" uvicorn
# Configure (never commit these)
cp .env.example .env
# X402_PAY_TO=0x<your_wallet>
# X402_PUBLIC_URL=http://localhost:8000
# CDP_API_KEY_NAME=...
# CDP_API_KEY_PRIVATE_KEY=...
python server/x402_server.py
Verify:
curl http://localhost:8000/health
curl http://localhost:8000/.well-known/x402
Repository Layout
āāā server/
ā āāā x402_server.py # FastAPI app: catalog, payment flow, fulfillment
ā āāā quant_handlers/ # paid quant edge-data endpoints
ā āāā quant_live.py # live edge computation
ā āāā weather_edge.py # weather forecast edge endpoints
ā āāā polymarket_edge.py # Polymarket signal endpoints
ā āāā mcp_server.py # MCP adapter (agent tools)
ā āāā trust_endpoints.py # trust score API
ā āāā static/ # landing, pay, trust, agent-card, llms.txt
āāā scripts/
ā āāā start_x402.py # production launcher
ā āāā payment_simulator.py # offline payment simulation
ā āāā probe_harness.py # end-to-end agent probe
ā āāā restart_x402.py # watchdog restart
āāā receipts/ # append-only settlement + probe history
āāā content/ # prompt packs + methodology catalog
āāā telemetry/ # usage metrics
āāā marketing/ # storefront assets
āāā x402_trust/ # submodule ā x402-trust
Receipt Discipline
Every paid interaction is appended to receipts/probe_history.jsonl and the
settlement log ā timestamps, endpoint, price, and payment IDs. The repo
treats receipts as append-only evidence; receipts/settle-log.jsonl is
gitignored (contains live payment data).
License
MIT ā see LICENSE. The x402_trust submodule has its own MIT
license (x402-trust).
Install
Add financial data to your client. Pick the one you use.
claude mcp add --transport http financial-data https://mcp.wintergreen.uk/mcpcodex mcp add financial-data --url https://mcp.wintergreen.uk/mcp{
"mcpServers": {
"financial-data": {
"url": "https://mcp.wintergreen.uk/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"financial-data": {
"type": "http",
"url": "https://mcp.wintergreen.uk/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"financial-data": {
"url": "https://mcp.wintergreen.uk/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"financial-data": {
"serverUrl": "https://mcp.wintergreen.uk/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance19/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 21 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint ā no local install
Version history
| Versions | Published |
|---|---|
| 2.0.0Latest | Aug 16, 2026 |