TensorFeed-x402-Base-MCP
A read-only MCP server for verifying x402 USDC payment settlements on Base mainnet — no private keys, no signing, no transaction broadcasting.
Generic Base Chain Reads
balance— Get the native ETH balance of any addressusdc_balance— Get the USDC balance of any addressblock_number— Retrieve the latest block numberget_tx_receipt— Fetch a full transaction receipt including status, gas, and logscall— Execute a read-onlyeth_callagainst any contractrecent_transfers— Query USDC Transfer events for an address over the last N blocks (filterable by direction)
x402 Payment Verification
verify_x402_settlement— Verify a transaction hash contains a USDC Transfer matching an expected recipient and amountparse_x402_manifest— Fetch and parse a publisher's/.well-known/x402.jsonto discover payment requirementsusdc_recent_payments_to— List recent incoming USDC transfers to a specific address (merchant view)probe_x402_endpoint— Check if a URL returns a canonical x402 402 responsedecode_x402_payment_payload— Offline-decode a base64X-PAYMENTheader, extracting scheme, network, EIP-3009 authorization, and signature
TensorFeed-Specific Tools
verify_afta_federation— Check a domain's AFTA (Agent Fair-Trade Agreement) certification statustf_payment_lookup— Verify whether a transaction hash is a USDC payment to TensorFeed's canonical walletx402_publisher_health— Get uptime and availability stats for a domain monitored by TensorFeedafta_federation_members— Retrieve the canonical list of confirmed AFTA federation members
The server can be configured to use Alchemy's RPC endpoint for reading Base blockchain data, enabling reliable and faster on-chain verification of USDC settlements.
Provides tools for verifying x402 payment settlements on Base mainnet, a payment protocol developed by Coinbase, allowing agents to independently audit payment receipts on-chain.
@tensorfeed/x402-base-mcp
Read-only MCP server for verifying x402 USDC settlements on Base mainnet. Drop it into any MCP-compatible agent (Claude Desktop, Claude Code, Cursor, ChatGPT) to independently audit x402 payment receipts on-chain, parse publisher .well-known/x402 manifests, and check AFTA federation status. No private keys, no signing, no broadcasts.
npm install -g @tensorfeed/x402-base-mcpRelationship to Coinbase Base MCP
Coinbase shipped Base MCP (the official mcp.base.org server, launched May 2026) as the transact-side MCP: it connects an agent to a Base Account and lets the agent propose swaps, transfers, and x402 payments that the user approves in-wallet.
This package, @tensorfeed/x402-base-mcp, is the verify-side MCP. Once an x402 payment has been made (by Base MCP, by a server-side @coinbase/x402 middleware, or by any other x402 client), this server lets the calling agent independently check the on-chain settlement, parse the publisher's /.well-known/x402 manifest, and audit the receipt. Read-only chain visibility, no wallet.
The two are complementary, not competing. Use Base MCP to pay. Use this MCP to verify.
Related MCP server: x402farm-mcp
Why a separate verify MCP
x402 is a payment protocol where agents pay merchants in USDC on Base for paid API responses. When an agent receives a payment receipt back, it has two options for confirming that the settlement actually happened the way the receipt claims:
Trust the merchant
Read the on-chain Transfer event itself
Most existing EVM MCP servers either require a private key (so the agent can also send transactions, which is operationally risky and unnecessary for verification), or are generic multi-chain readers that don't speak x402. This server is the read-only, x402-aware option. Drop it into a Claude Desktop or Claude Code session and any agent can verify x402 payments without operating a wallet.
The TensorFeed-flavor tools (verify_afta_federation, tf_payment_lookup) compose the same primitives against TF's canonical surfaces and demonstrate the pattern. Use them or ignore them; the generic tools work fine on their own.
Installation
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"tensorfeed-x402-base": {
"command": "npx",
"args": ["-y", "@tensorfeed/x402-base-mcp"]
}
}
}Claude Code
claude mcp add tensorfeed-x402-base -- npx -y @tensorfeed/x402-base-mcpOptional: bring your own RPC
The server defaults to the public Base RPC (https://mainnet.base.org), which is fine for casual use. For heavier workloads, set an Alchemy or Infura URL via TENSORFEED_RPC_URL. The URL must match the allowlist in src/rpc/allowlist.ts; anything else falls back to the public endpoint and logs a warning to stderr.
export TENSORFEED_RPC_URL="https://base-mainnet.g.alchemy.com/v2/YOUR_KEY"Affiliate links if you don't already have an account:
Alchemy: https://www.alchemy.com/
Infura: https://www.infura.io/
Tools
Generic Base reads
Tool | Description |
| Native ETH balance for an address |
| USDC (Circle native bridged) balance for an address |
| Latest Base block number |
| Full tx receipt with status, gas, and logs summary |
| Read-only contract call (eth_call, never broadcasts) |
| USDC Transfer events involving an address over N blocks |
x402-native verification
Tool | Description |
| Given a tx hash, expected recipient, and expected USDC amount, returns a structured verdict on whether the on-chain Transfer event matches. |
| Fetches |
| USDC transfers TO an address over N blocks; the merchant-side view. |
| Probes any https URL and reports whether it returns a canonical x402-paid 402 response with |
| Offline decode of a base64 |
TensorFeed flavor
Tool | Description |
| Calls TensorFeed's AFTA certification endpoint for a domain, returns a scored checklist. |
| Checks whether a tx hash is a USDC payment to TensorFeed's canonical wallet on Base. |
| Returns current outcome + 24h/7d uptime + recent series for a domain monitored by TensorFeed's hourly x402 status probe. |
| Returns the canonical curated list of confirmed AFTA federation members (TF origin + federated members). |
Examples
Verify an x402 settlement (works on TensorFeed's first canonical V2 payment):
verify_x402_settlement({
tx_hash: "0xe20c57d8aa6df63f75ce7a4e4c0cab492eb7fa672a23cd8fd59967eb6b66bd67",
expected_recipient: "0x549c82e6bFC54bdaE9A2073744CBC2AF5D1FC6D1",
expected_amount_usdc: "0.02"
})
// returns { ok: true, verified: true, matches: [...] }Inspect a publisher's x402 manifest:
parse_x402_manifest({ domain: "tensorfeed.ai" })Check AFTA certification:
verify_afta_federation({ domain: "tensorfeed.ai" })Threat model
Read-only chain-visibility MCP. The full picture is in SECURITY.md; the short version:
No private keys, no signing, no broadcasts. The server cannot move funds.
Input validators on every tool reject malformed inputs (bad checksums, malformed hashes, URL-shaped domains, private/loopback hostnames).
Output sanitization strips C0/C1 control characters and zero-width / direction-override marks from every string returned to the calling agent.
External strings carry an
_origin: "external"marker so the calling agent knows the value came from a third party.50 KB response cap on serialized tool output; oversized responses collapse to a structured stub.
RPC allowlist limits self-hosters to known endpoints; arbitrary URLs are rejected and fall back to public Base RPC.
No telemetry, no phone-home, no analytics.
Provenance: npm releases are published via GitHub Actions OIDC with cryptographic provenance attestations. Verify with
npm audit signatures.
Report security issues to security@tensorfeed.ai. Please do not file a public issue or CVE for an unfixed vulnerability.
License
MIT
Related
Coinbase Base MCP - the official transact-side MCP for Base. Pair with this package for a full pay + verify loop: Base MCP signs the x402 payment, this package independently confirms the settlement on-chain.
@tensorfeed/mcp-server - companion package, the TensorFeed data MCP (news, status, models, benchmarks, premium endpoints). Complementary role: this server verifies x402 payments on-chain; mcp-server wraps the TF data API as MCP tools.
TensorFeed - AI ecosystem data layer
TensorFeed developers - free + premium API for AI agents
Agent Fair-Trade Agreement (AFTA) - open standard for honest agent commerce
x402 spec - the payment protocol this MCP verifies
Available Tools
11 toolsbalanceGet ETH balanceA
Returns the native ETH balance of an address on Base mainnet.
Inputs: address (required).
block_numberGet latest Base block numberA
Returns the latest block number on Base mainnet.
Inputs: no named parameters.
callRead-only contract callA
Performs an eth_call against a contract on Base mainnet. Read-only; never broadcasts a transaction.
Inputs: contract (required), data (required).
get_tx_receiptGet transaction receiptA
Returns the receipt for a transaction on Base mainnet, including status, gas used, and a summary of emitted logs.
Inputs: tx_hash (required).
parse_x402_manifestFetch and parse a publisher's x402 manifestA
Fetches https://{domain}/.well-known/x402.json (or x402) and returns the structured manifest. Used to discover what an x402-paid publisher accepts (scheme, network, payTo, prices, paid endpoints).
Inputs: domain (required).
recent_transfersRecent USDC transfers touching an addressB
Returns USDC Transfer events involving the given address over the last N blocks on Base mainnet. Direction filter: in, out, or both.
Inputs: address (required), blocks_back, direction.
tf_payment_lookupCheck if a tx was a USDC payment to TensorFeedA
On-chain lookup: was this transaction hash a USDC payment to TensorFeed's canonical payment wallet (0x549c82e6bFC54bdaE9A2073744CBC2AF5D1FC6D1) on Base mainnet? Returns structured details if yes. For credit attribution and endpoint mapping, the paying agent should call https://tensorfeed.ai/api/payment/history with its bearer token.
Inputs: tx_hash (required).
usdc_balanceGet USDC balanceA
Returns the USDC balance of an address on Base mainnet (Circle native bridged USDC).
Inputs: address (required).
usdc_recent_payments_toRecent USDC payments to an addressA
Returns USDC transfers TO the given address over the last N blocks on Base mainnet. A convenience wrapper for x402 merchants verifying incoming agent payments.
Inputs: address (required), blocks_back.
verify_afta_federationAFTA certification check for a domainA
Calls TensorFeed's canonical AFTA certification endpoint for a domain. Returns a scored checklist of which Agent Fair-Trade Agreement tenets the domain's public surfaces satisfy. Read-only.
Inputs: domain (required).
verify_x402_settlementVerify an x402 payment settlement on BaseA
Given a tx hash, expected recipient, and expected USDC amount, returns a structured verdict on whether the on-chain USDC Transfer event actually matches the claimed settlement. Use to independently verify any x402 payment receipt.
Inputs: tx_hash (required), expected_recipient (required), expected_amount_usdc (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose: balance, block_number, call, get_tx_receipt are standard chain queries; parse_x402_manifest, tf_payment_lookup, verify_afta_federation, verify_x402_settlement are x402-specific; recent_transfers, usdc_balance, usdc_recent_payments_to are USDC-focused. No overlapping ambiguity.
All names use snake_case and are descriptive, but conventions vary: some are pure nouns (balance, block_number), others verb_noun (parse_x402_manifest, verify_x402_settlement), and some have prefixes (usdc_balance, tf_payment_lookup). Mostly consistent with minor deviations.
11 tools is well within the optimal range for a domain-specific server. Each tool serves a clear need: blockchain basics, USDC operations, and x402 payment verification. No tool feels superfluous.
Covers essential blockchain querying (balance, block, tx) and comprehensive x402 payment verification (manifest, payment lookup, settlement, federation). Minor gaps like lack of transaction simulation or ABI resolution, but for its stated purpose it's quite complete.
Maintenance
Related MCP Connectors
Deterministic MCP utilities, validation, evidence verification, and x402 commerce on Base.
SqueezeOS MCP for x402-paid USDC APIs on Base. Flagship read settle-proven 2026-11-02 (SELF-PROOF).
x402 pay-per-call APIs over MCP, settled in USDC on Base for autonomous agents and developers.
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
Related MCP Servers
- FlicenseAqualityCmaintenanceMCP server for a live x402 payment gateway on Base (USDC). Lets AI agents discover, preview for free, then pay per call — with prepaid gasless payments, signed receipts, and delta delivery.7-
- AlicenseNot gradedqualityCmaintenanceMCP server that provides AI agents with pay-per-call access to a suite of tools (honeypot check, token market, DeFi yields, etc.) via USDC on Base using the x402 protocol.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access pay-per-call onchain and URL safety APIs over MCP, covering transaction explanations, token approval checks, address inspection, contract risk heuristics, URL safety, gas snapshots, ENS resolution, calldata decoding, and wallet portfolio data. Payments are handled per call in USDC on Base via x402, with no signup or API key required.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query Base on-chain data such as balances, token metadata, transactions, gas, names, prices, transfers, and contract details through paid MCP tools using x402 payments.MIT