x402-agent-data

x402-agent-data

Pay-per-call MCP server offering crypto market signals, web page extraction, and GitHub repo auditing, with automatic settlement in USDC via the x402 protocol.

Category
Visit Server

README

x402-agent-data

Pay-per-call data tools for AI agents, settled per call in USDC on Base via the x402 protocol. The buyer is another agent: it discovers an endpoint, auto-pays per request (HTTP 402 → payment → data), and gets structured JSON back. No API key, no signup, no account — the seller's only setup is one public wallet address.

Live at https://x402.charliemorrison.dev — also listed as a remote MCP server in the Official MCP Registry as dev.charliemorrison/agent-web-reader.

Tools

Tool Endpoint Price Returns
market_signal GET /signal $0.005 Crypto market signal (price/trend/momentum) for a symbol
web_read GET /extract $0.005 Clean, readable text + metadata extracted from any URL
repo_audit GET /audit?owner=&repo= $0.005 GitHub repo discoverability/SEO score (0–100) + concrete fixes

Free, unpaid routes:

  • GET / — discovery doc (service + paid-endpoint metadata, x402-aware)
  • GET /healthz — liveness
  • GET /.well-known/mcp.json — MCP discovery manifest
  • GET /.well-known/agent.json — A2A Agent Card
  • POST /mcpremote MCP server (Streamable HTTP). Lists the three tools; an unpaid tools/call returns the decoded x402 payment-required challenge, and a call carrying an x402 payment returns the data.

How payment works

  1. Agent calls a paid route with no payment → server responds HTTP 402 with an x402 challenge (amount, asset = USDC, network = base, payTo address).
  2. Agent's x402 client signs a payment authorization and retries with the X-PAYMENT header.
  3. Server verifies/settles via an x402 facilitator and returns the data.

No private key ever lives in this server's config — it only receives. Settlement is delegated to an x402 facilitator (default: a zero-fee, gas-sponsored facilitator; Coinbase CDP facilitator is supported via env and inert unless configured).

Run it

npm install
PAY_TO=0xYourReceivingAddress node server.js   # listens on :4021

Environment:

  • PAY_TO — your receiving wallet (USDC on Base). Required for real revenue.
  • PORT — default 4021.
  • CDP_API_KEY_ID / CDP_API_KEY_SECRET — optional; switches settlement to the Coinbase CDP facilitator. Omitted by default.

Why this shape

The buyer is a machine and distribution is a registry — there's no cold human audience to recruit, which is the wall that kills most indie API/tool launches. Seller setup is a single wallet address; every call is zero-marginal-cost public data.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured