The settlement layer for AI agent payments. Per-call billing, 10 protocols, built-in discovery. Free forever.
settlegrid is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on agent-payments, ai-agents, ai-billing, ai-payments. It currently has 1 GitHub stars and 0 forks, and sits alongside related tools like piprail, mcp-client, p402-protocol.
Monetize any AI tool with 2 lines of code. Per-call billing, 14 agent payment protocols brokered or tracked, built-in discovery.
Website · Docs · Showcase · 1,017 Servers · Discovery Guide · Handbook
npm install @settlegrid/mcp
import { settlegrid } from '@settlegrid/mcp'
const sg = settlegrid.init({
toolSlug: 'my-tool',
pricing: { defaultCostCents: 5 },
})
const billedHandler = sg.wrap(myHandler)
Every call validates the consumer's API key, checks their credit balance, executes your function, and meters usage — all with a single Redis balance check on the hot path.
Or scaffold a complete project instantly:
npx create-settlegrid-tool
| SettleGrid | Stripe Billing | Nevermined | Paid.ai | |
|---|---|---|---|---|
| Protocol support | 14 tracked (9 brokered + 2 detection + 3 emerging) | REST only | x402 / DeFi | MCP only |
| Real-time metering | Redis hot path | Batch only | On-chain | Per-call |
| Built-in discovery | 8+ registries | None | None | None |
| Multi-hop settlement | Yes | No | Yes | No |
| Agent identity (KYA) | Yes | No | No | No |
| Budget enforcement | Yes | No | No | No |
| Outcome-based billing | Yes | No | Yes | No |
| Free tier (0% fees) | Yes | No | No | No |
| $1 minimum payout | Yes | No | No | No |
| Open-source SDK | Yes | No | Yes | No |
| Fraud detection | Yes | Yes | No | No |
SettleGrid doesn't just bill — it distributes. Every active tool is automatically discoverable across:
| Channel | How it works |
|---|---|
| Showcase | Consumers browse, search, and purchase credits |
| Discovery API | GET /api/v1/discover — programmatic search for directories & apps |
| MCP Discovery Server | AI agents find tools natively via MCP protocol |
| HTTP MCP Endpoint | Remote streamable HTTP transport for any MCP client |
| Official MCP Registry | The canonical MCP server registry |
| Smithery | 6,000+ MCP server directory |
| Glama | 14,000+ MCP server directory |
| RSS Feed | New tools syndicated automatically |
{
"mcpServers": {
"settlegrid-discovery": {
"command": "npx",
"args": ["@settlegrid/discovery"]
}
}
}
| Model | Best for | Example |
|---|---|---|
| Per-Invocation | Search, lookups, CRUD | 5¢/call |
| Per-Token | LLM wrappers, text processing | $0.001/1K tokens |
| Per-Byte | File conversion, data export | 1¢/MB |
| Per-Second | Video processing, ML inference | 2¢/second |
| Tiered | Multi-method tools | read 1¢, write 5¢ |
| Outcome-Based | Lead gen, data extraction | 25¢ on success |
The @settlegrid/mcp SDK adds native billing to any Model Context Protocol (MCP) tool server and provides a REST middleware for any HTTP service. On top of that, the hosted Smart Proxy at settlegrid.ai/api/proxy/{slug} brokers payments across agent payment protocols and tracks emerging specs as they mature.
9 brokered by the Smart Proxy (production or pending GA): MCP · x402 (Coinbase) · Stripe MPP · AP2 (Google) · ACP (OpenAI) · UCP (Google/Shopify) · Visa TAP · Mastercard Verifiable Intent · Circle Nanopayments
2 detection-adapter-only: L402 (Bitcoin Lightning) · KYAPay (Skyfire)
3 tracked as emerging: ACTP (Alipay's Agentic Commerce Trust Protocol) · EMVCo agent payments · DRAIN (Bittensor Subnet 58)
Billing & Metering
Security & Compliance
Developer Experience
sg.wrap() — one function, any handlernpx create-settlegrid-tool| Tier | Price | Ops/month | Take Rate |
|---|---|---|---|
| Free | $0 forever | 25,000 | 0% |
| Starter | $9/mo | 100,000 | 5% |
| Growth | $29/mo | 500,000 | 5% |
| Scale | $79/mo | 2,000,000 | 5% |
$1 minimum payout — the lowest in the industry. Stripe Connect Express for instant payouts.
For non-MCP services (Express, Next.js, Hono, etc.):
import { settlegridMiddleware } from '@settlegrid/mcp'
const withBilling = settlegridMiddleware({
toolSlug: 'my-api',
costCents: 5,
})
export async function GET(request: Request) {
return withBilling(request, async () => {
return Response.json({ data: 'hello' })
})
}
settlegrid/
├── apps/web/ # Next.js 15 platform (settlegrid.ai)
├── packages/mcp/ # @settlegrid/mcp SDK
├── packages/discovery-server/ # @settlegrid/discovery MCP server
├── packages/create-tool/ # npx create-settlegrid-tool CLI
├── open-source-servers/ # 1,017 indexed MCP servers
└── .mcp.json # MCP plugin config (Cursor, Claude)
| Website | settlegrid.ai |
| Documentation | settlegrid.ai/docs |
| Discovery Guide | settlegrid.ai/learn/discovery |
| Handbook | settlegrid.ai/learn/handbook |
| API Reference | settlegrid.ai/api/openapi.json |
| Discovery API | settlegrid.ai/api/v1/discover |
| RSS Feed | settlegrid.ai/api/feed |
| npm (SDK) | @settlegrid/mcp |
| npm (Discovery) | @settlegrid/discovery |
| MCP Registry | io.github.lexwhiting/settlegrid-discovery |
| Support | [email protected] |
MIT © 2026 SettleGrid
x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.
Discover and pay AI agents on nullpath's marketplace via MCP. x402 micropayments with USDC.
P402 Payment Protocol
Production-ready x402 facilitator server.
Rust SDK for the x402 payment protocol.
Accept payments from AI agents. Open-source. Your data, your domain, your rules. Free forever.
A production-ready payment settlement service for the x402 protocol. Built with Elysia and Node.js, it verifies cryptographic payment signatures and settles transactions on-chain for EVM, SVM (Solana), and Starknet networks.
Golang implementation of an x402 payment facilitator
x402 payment facilitator — verifies and settles EIP-3009 USDC micropayments on Base, Arbitrum, and Ethereum.