agent-x402
Enables policy-controlled USDC micropayments on Base via EIP-3009 transferWithAuthorization, including wallet address/balance checks and spend-policy enforcement before signing payments on eip155:8453.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agent X402
x402 micropayments for AI agents — pay per API call in USDC on Base. No account, no API key, no subscription. With a spend policy a prompt injection cannot talk its way past.
⭐ Star us on GitHub if this project helps you build better agents!
🚀 Быстрый старт
git clone https://github.com/rustemmustafingovua-byte/agent-x402
cd agent-x402 && npm install
npm testRelated MCP server: @bridgenode/mcp
🎯 Демо
const {X402Client, SpendPolicy} = require('agent-x402');
const client = new X402Client({
privateKey: process.env.PRIVATE_KEY,
policy: new SpendPolicy({ dailyUsd: 5, perRequestUsd: 0.5 })
});
const res = await client.fetch('https://api.venice.ai/api/v1/chat/completions', {
method: 'POST',
body: { model: 'claude-haiku-5-5', messages: [{role:'user',content:'hi'}] }
});
console.log('Paid:', res.paid, 'Amount USD:', res.amountUsd);💰 Монетизация
Pay-per-call API: продавайте доступ к своим API через x402 — $0 за подписку, оплата за вызов в USDC
Hosted endpoints: запустите inference-сервис и получайте микро-платежи за каждый запрос
Consulting: аудит x402-интеграций для enterprise-клиентов
Plugin marketplace: публикуйте плагины для x402-клиента в npm
Contributing
Fork the repo
Create a feature branch (
git checkout -b feat/amazing-thing)Commit your changes (
git commit -m 'feat: add amazing thing')Push to the branch (
git push origin feat/amazing-thing)Open a Pull Request
Bug reports and feature requests are welcome on the Issues page.
MIT © rustemmustafingovua-byte
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pay-per-call agent tools over x402 (USDC on Base) — no signup or API key.
Let an AI agent find and pay for x402 APIs and products in USDC on Base, within owner-set limits.
Pay-per-call tools for autonomous agents, settled in USDC on Base via x402.
Machine-payable API infrastructure for autonomous agents. Per-call x402 settlement in USDC.
Related MCP Servers
AlicenseAqualityCmaintenanceEnables AI agents to call LLM APIs via x402 micropayments in USDC on Base network, manage a local wallet, and query consumption records.355 npmMIT
@bridgenode/mcpofficial
AlicenseAqualityCmaintenanceEnables AI agents to make pay-as-you-go AI inference requests through x402 with automatic Solana USDC payments, no API keys or registration, while enforcing configurable spending limits.3196 npm1MIT No Attribution- FlicenseNot gradedqualityCmaintenanceEnables AI agents to pay per tool call in USDC via the x402 micropayment protocol, with no API keys or subscriptions required.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to autonomously pay for metered web APIs on a per-call basis, settling x402 v2 USDC micropayments via EIP-3009 authorization on Base Sepolia without human involvement. Spending is bounded by configurable per-call caps and host restrictions, and exposes tools to fetch paywalled URLs and inspect the agent wallet's address and balance.MIT