PayPerByte
This server gives AI agents access to PayPerByte — a per-byte USDC data marketplace on Arbitrum Sepolia — enabling discovery, subscription, and on-demand purchase of real-time data feeds with on-chain payment settlement.
Discovery (no wallet required)
Search publishers by topic keyword (e.g., 'weather', 'crypto', 'CVE') with sorting options
List all active feeds with pricing and frequency details
Get publisher details — on-chain status, subscriber/message counts, USDC revenue, and data schema
View network-wide stats — total publishers, messages streamed, and fees settled
Check subscription status for any wallet/publisher pair
List subscriptions for a wallet, including 7/30-day message counts and USDC spend
Check subscription health — detect if a publisher has gone dormant or shifted content
Get token balances — USDC and ETH for any address on Arbitrum Sepolia
Verify payload integrity — recompute keccak256 hash and check against on-chain EIP-712 attestation
Subscribe to Data Streams (requires PRIVATE_KEY)
Subscribe to a publisher's continuous feed with automatic USDC allowance management
Unsubscribe from a feed
Register as a publisher with an on-chain schema and topic
Publish data to subscribers via the DataStream contract with USDC fee settlement
Buy Data On-Demand (requires PRIVATE_KEY)
Buy a single data packet from any feed via the x402 gateway — no subscription needed, pays per-call via EIP-3009 USDC authorization
Query a fact-oracle — ask a slashable on-chain oracle a factual question and receive a verified answer with citations
PayPerByte MCP Server
A Model Context Protocol server that gives AI agents direct access to PayPerByte — cryptographically attested, provenance-verifiable data feeds for AI agents (the X-BYTE-Attestation receipt proves delivery-integrity — these are exactly the bytes PayPerByte served and attested under the BYTE Library domain — not that an independent data publisher signed them, and not that the data is correct). Agents discover feeds, pay-per-call via x402 (settled in USDC on Base mainnet), or subscribe to on-chain streams (Arbitrum Sepolia testnet). Every paid x402 response carries an EIP-712 PayloadAttestation receipt (X-BYTE-Attestation header) the agent verifies before acting. No tokens, no API keys, no off-chain accounts.
Two rails — read this before setting
PRIVATE_KEY.
x402 pay-per-call (
byte_buy_data): Base mainnet (eip155:8453), REAL USDC. Paid feeds settle real money — the flagship Address Reputation Oracle is $0.10 per verdict. Use a dedicated wallet holding only what you intend to spend.On-chain subscribe/publish/query layer (BYTE Library contracts + indexer): Arbitrum Sepolia testnet (chain
421614), MockUSDC. Mainnet for this layer is gated on an external security audit. The EIP-712 attestation signing domain stays anchored at421614regardless of which rail you paid on.One
PRIVATE_KEYserves both rails. Never reuse a key holding funds you can't afford to spend.
Quick start
npx -y byte-mcp-serverWire it into your MCP client (Claude Desktop config below), then your agent can:
Discover feeds: "List the PayPerByte catalog" / "Search publishers for weather"
Buy one packet (x402, no setup): "Check this receiving address before I pay it" → $0.10 real USDC on Base mainnet, signed ALLOW/WARN/BLOCK verdict with an attestation receipt
Subscribe to a stream (testnet): "Subscribe me to the earthquakes feed" → auto-approves MockUSDC for ongoing settlement on Arbitrum Sepolia
Query a fact-oracle (testnet): post a signed EIP-712 question to a registered fact-oracle publisher for an on-chain signed answer with citations — when a fact-oracle publisher is live (none is broadcasting today; the tool times out until one registers and broadcasts)
The live catalog is at x402.payperbyte.io/feeds — cryptographically attested, provenance-verifiable feeds across weather, markets, code, security, and knowledge.
Related MCP server: usenami-mcp
Verify before acting (ForeSeal)
See the whole verify-before-act loop in one command — no install, no signup, no wallet:
npx @foreseal/demoIt runs locally (no real USDC) and shows an agent ACT on genuine bytes and REFUSE four attacks — a tampered byte, a forged signature, a missing receipt, a forked signing domain — in about a second.
The same primitive ships as two packages you can drop into your own stack:
Kit —
@payperbyte/sdk: the buyer verifies a receipt before acting.Gate —
@foreseal/gate: a seller stamps a verifiable receipt on any x402 endpoint.
Two paradigms: subscribe vs. buy
Mode | Tool | Rail | Best for | Pricing |
Buy (x402) |
| Base mainnet — real USDC | One-off needs (single snapshot or verdict for this user query) | Per-feed, quoted in the 402 challenge ($0.10 flagship; most feeds cents or less) |
Subscribe |
| Arbitrum Sepolia — testnet MockUSDC | Continuous streams (every weather update, every new earthquake) | $0.003 / KB per delivery |
Buy is zero-setup, pay-as-you-go, and live with real settlement; subscribe delivers every broadcast on the audit-gated testnet layer. Pick by access pattern.
Buying a verdict (POST oracle)
GET data feeds need only a feed. The verdict oracles (address-reputation, sanctions-screen, pkg-verdict, reasoning-verdict) are POST endpoints — pass the query as a body and byte_buy_data switches the call from GET to POST automatically:
// byte_buy_data tool call — screen a payee before releasing USDC
{
"feed": "address-reputation",
"body": { "domain": "example.com", "address": "0x1234…abcd" }
}The paid response returns the signed verdict and an inline verify-before-act result over the X-BYTE-Attestation receipt:
{
"feed": "address-reputation",
"paid": true,
"price": "$0.100000",
"txHash": "0x…",
"data": { "answer": { "verdict": "ALLOW", "score": 88, "reasons": ["…"] }, "attestation": { "…": "…" } },
"verification": { "verified": true, "hashMatch": true, "signerMatch": true,
"reason": "receipt verified — bytes intact AND signed by the pinned gateway attester (safe to act)" }
}Act only when verification.verified === true. Other POST bodies: sanctions-screen {address|name}, pkg-verdict {ecosystem,package[,version]}, reasoning-verdict {subject}. Omit body entirely for GET data feeds (weather, earthquakes, …).
Tools (15 total)
Discovery (read-only, no wallet)
Tool | Description |
| Search publishers by topic and sort order |
| List the active feed catalog with prices and frequencies |
| On-chain info for one publisher (status, subscribers, messages, USDC revenue, schema) |
| Network-wide stats: publishers, messages, total fees settled |
| Is |
| All active subscriptions for a wallet — last 7d/30d messages + USDC spend |
| Content-drift signal for a publisher: stable / moderate / significant / unknown |
| USDC + ETH balances on Arbitrum Sepolia |
| Verify-before-act. Recompute |
Subscribe to a stream (requires PRIVATE_KEY)
Tool | Description |
| Subscribe to a publisher's stream. Auto-bundles USDC |
| Unsubscribe — takes effect next block |
| Register as a data publisher (schema + on-chain registration). v1 is first-party only; stake = 0 |
| Publish a payload to a subscriber via DataStream (settles fee in USDC). See migration notice above re: r2 |
Buy on-demand (requires PRIVATE_KEY)
Tool | Description |
| Buy one packet from any feed via the x402 gateway — real USDC on Base mainnet. No subscription, no allowance. Signs EIP-3009 |
| Ask a slashable fact-oracle publisher a question. Signed EIP-712 request (binds query to your wallet so leaked queries can't burn your escrow); the answer is broadcast on-chain to your address with citations. Requires a live fact-oracle publisher — none is broadcasting today, so the call times out until one registers. |
Configuration
Claude Desktop
Edit ~/.config/claude/claude_desktop_config.json (Linux) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"payperbyte": {
"command": "npx",
"args": ["-y", "byte-mcp-server"],
"env": {
"PRIVATE_KEY": "0x...",
"RPC_URL": "https://sepolia-rollup.arbitrum.io/rpc",
"INDEXER_URL": "http://localhost:8080"
}
}
}
}PRIVATE_KEY is optional — read-only tools work without it. Add it to enable subscribe, publish, buy, and query.
Claude Code
claude mcp add payperbyte -- npx -y byte-mcp-serverEnvironment variables
Variable | Required | Default | Description |
| only for write/buy/query tools | — | EOA key. Signs real Base-mainnet USDC for |
| no |
| Arbitrum Sepolia RPC (the on-chain read/subscribe layer) |
| no |
| PayPerByte indexer API |
| no |
| x402 gateway base URL (used by |
| no | — (uncapped) | Server-side spend cap for |
Network
Two rails, honestly stated:
x402 payment rail (
byte_buy_data): Base mainnet (eip155:8453). Paid feeds settle real USDC through the gateway at x402.payperbyte.io; each paid 200 returns anX-BYTE-AttestationEIP-712 receipt over the exact response bytes.On-chain layer (subscriptions, broadcasts, fact-oracle escrow, indexer): Arbitrum Sepolia (chain
421614). Mainnet for the BYTE Library contracts is gated on an external security audit. The EIP-712PayloadAttestationsigning domain is anchored on421614regardless of the payment rail.
Contract addresses are pinned in the bundled config; the npm release ships ready-to-use defaults. No token.
Development
git clone https://github.com/0rkz/byte-mcp-server.git
cd byte-mcp-server
npm install
npm run build && npm startLicense
MIT — see LICENSE.
Starter kit
Optional paid kit ($39): the buyer-side agent kit — an agent that buys and verifies feeds, with drop-in Claude Desktop / Claude Code / Cursor config and a free 30-minute readiness call included. The npm packages are and stay free MIT — the kit sells the assembled setup.
Links
payperbyte.io — PayPerByte home
x402.payperbyte.io/feeds — live feed catalog
Model Context Protocol — MCP spec
Maintenance
Related MCP Servers
- AlicenseBqualityCmaintenanceHigh-performance CCXT MCP server for cryptocurrency exchange integrationLast updated2457140MIT

usenami-mcpofficial
AlicenseAqualityFmaintenancePerp-first funding rate & RWA spread data for AI agents. 30+ CEX/DEX venues, 6 tools (4 x402-paywalled, 2 free), bring-your-own-wallet via Base mainnet.Last updated61MIT- Alicense-qualityBmaintenanceMade-to-order data for AI agents via x402 micropayments on Base. Describe a need in plain language, get a custom quote, pay per call. No signup, no API keys. HTTP + MCP transports. 5 tools.Last updated1MIT
- AlicenseAqualityCmaintenancePay-per-call x402 data products on Base mainnet — sanctions screening, aviation weather, mortgage rates, US property dossier, title chain, wallet balance, and agent session auth. Every call settles in USDC with an on-chain receipt, no accounts or API keys.Last updated7116MIT
Related MCP Connectors
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
Pay-per-call x402 gateway: agent tools, OpenAI-compatible LLM, market data, RPC, security audits.
Crypto market data for AI agents via x402. 16 tools: prices, funding, DeFi yields, arbitrage, TA.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/0rkz/byte-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server