{
  "markdown": "<p align=\"center\">\n  <a href=\"https://settlegrid.ai\">\n    <img src=\"https://img.shields.io/badge/Settle-Grid-10B981?style=for-the-badge&labelColor=1A1F3A&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMEI5ODEiIHN0cm9rZS13aWR0aD0iMiI+PHBhdGggZD0iTTEyIDJMMiA3bDEwIDUgMTAtNS0xMC01eiIvPjxwYXRoIGQ9Ik0yIDE3bDEwIDUgMTAtNSIvPjxwYXRoIGQ9Ik0yIDEybDEwIDUgMTAtNSIvPjwvc3ZnPg==\" alt=\"SettleGrid\" height=\"40\" />\n  </a>\n</p>\n\n<h1 align=\"center\">The Settlement Layer for AI Agent Payments</h1>\n\n<p align=\"center\">\n  <strong>Monetize any AI tool with 2 lines of code. Per-call billing, 14 agent payment protocols brokered or tracked, built-in discovery.</strong>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@settlegrid/mcp\"><img src=\"https://img.shields.io/npm/v/@settlegrid/mcp.svg?style=flat-square&color=10B981&label=SDK\" alt=\"npm\" /></a>\n  <a href=\"https://www.npmjs.com/package/@settlegrid/discovery\"><img src=\"https://img.shields.io/npm/v/@settlegrid/discovery.svg?style=flat-square&color=10B981&label=Discovery\" alt=\"npm\" /></a>\n  <a href=\"https://registry.modelcontextprotocol.io\"><img src=\"https://img.shields.io/badge/MCP_Registry-listed-10B981?style=flat-square\" alt=\"MCP Registry\" /></a>\n  <a href=\"https://smithery.ai\"><img src=\"https://img.shields.io/badge/Smithery-listed-10B981?style=flat-square\" alt=\"Smithery\" /></a>\n  <a href=\"https://opensource.org/licenses/MIT\"><img src=\"https://img.shields.io/badge/License-MIT-green.svg?style=flat-square\" alt=\"MIT\" /></a>\n  <a href=\"https://www.typescriptlang.org/\"><img src=\"https://img.shields.io/badge/TypeScript-5.7-3178C6?style=flat-square\" alt=\"TypeScript\" /></a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://settlegrid.ai\">Website</a> &middot;\n  <a href=\"https://settlegrid.ai/docs\">Docs</a> &middot;\n  <a href=\"https://settlegrid.ai/tools\">Showcase</a> &middot;\n  <a href=\"https://settlegrid.ai/servers\">1,017 Servers</a> &middot;\n  <a href=\"https://settlegrid.ai/learn/discovery\">Discovery Guide</a> &middot;\n  <a href=\"https://settlegrid.ai/learn/handbook\">Handbook</a>\n</p>\n\n---\n\n## Quick Start\n\n```bash\nnpm install @settlegrid/mcp\n```\n\n```typescript\nimport { settlegrid } from '@settlegrid/mcp'\n\nconst sg = settlegrid.init({\n  toolSlug: 'my-tool',\n  pricing: { defaultCostCents: 5 },\n})\n\nconst billedHandler = sg.wrap(myHandler)\n```\n\nEvery 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.\n\nOr scaffold a complete project instantly:\n\n```bash\nnpx create-settlegrid-tool\n```\n\n<p align=\"center\">\n  <img src=\"https://settlegrid.ai/screenshots/Dashboard%201.jpg\" alt=\"SettleGrid Dashboard\" width=\"800\" />\n</p>\n\n## Why SettleGrid?\n\n|  | SettleGrid | Stripe Billing | Nevermined | Paid.ai |\n|---|:---:|:---:|:---:|:---:|\n| **Protocol support** | 14 tracked (9 brokered + 2 detection + 3 emerging) | REST only | x402 / DeFi | MCP only |\n| **Real-time metering** | Redis hot path | Batch only | On-chain | Per-call |\n| **Built-in discovery** | 8+ registries | None | None | None |\n| **Multi-hop settlement** | Yes | No | Yes | No |\n| **Agent identity (KYA)** | Yes | No | No | No |\n| **Budget enforcement** | Yes | No | No | No |\n| **Outcome-based billing** | Yes | No | Yes | No |\n| **Free tier (0% fees)** | Yes | No | No | No |\n| **$1 minimum payout** | Yes | No | No | No |\n| **Open-source SDK** | Yes | No | Yes | No |\n| **Fraud detection** | Yes | Yes | No | No |\n\n## Discovery — Your Tools, Found Everywhere\n\nSettleGrid doesn't just bill — it distributes. Every active tool is automatically discoverable across:\n\n| Channel | How it works |\n|---------|-------------|\n| **[Showcase](https://settlegrid.ai/tools)** | Consumers browse, search, and purchase credits |\n| **[Discovery API](https://settlegrid.ai/docs#discovery)** | `GET /api/v1/discover` — programmatic search for directories & apps |\n| **[MCP Discovery Server](https://www.npmjs.com/package/@settlegrid/discovery)** | AI agents find tools natively via MCP protocol |\n| **[HTTP MCP Endpoint](https://settlegrid.ai/api/mcp)** | Remote streamable HTTP transport for any MCP client |\n| **[Official MCP Registry](https://registry.modelcontextprotocol.io)** | The canonical MCP server registry |\n| **[Smithery](https://smithery.ai)** | 6,000+ MCP server directory |\n| **[Glama](https://glama.ai)** | 14,000+ MCP server directory |\n| **[RSS Feed](https://settlegrid.ai/api/feed)** | New tools syndicated automatically |\n\n<p align=\"center\">\n  <img src=\"https://settlegrid.ai/screenshots/Showcase.jpg\" alt=\"SettleGrid Showcase\" width=\"800\" />\n</p>\n\n```json\n{\n  \"mcpServers\": {\n    \"settlegrid-discovery\": {\n      \"command\": \"npx\",\n      \"args\": [\"@settlegrid/discovery\"]\n    }\n  }\n}\n```\n\n## 6 Pricing Models\n\n| Model | Best for | Example |\n|-------|----------|---------|\n| **Per-Invocation** | Search, lookups, CRUD | 5&cent;/call |\n| **Per-Token** | LLM wrappers, text processing | $0.001/1K tokens |\n| **Per-Byte** | File conversion, data export | 1&cent;/MB |\n| **Per-Second** | Video processing, ML inference | 2&cent;/second |\n| **Tiered** | Multi-method tools | read 1&cent;, write 5&cent; |\n| **Outcome-Based** | Lead gen, data extraction | 25&cent; on success |\n\n## Payment Protocol Coverage\n\nThe `@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.\n\n**9 brokered by the Smart Proxy** (production or pending GA):\nMCP &middot; x402 (Coinbase) &middot; Stripe MPP &middot; AP2 (Google) &middot; ACP (OpenAI) &middot; UCP (Google/Shopify) &middot; Visa TAP &middot; Mastercard Verifiable Intent &middot; Circle Nanopayments\n\n**2 detection-adapter-only**:\nL402 (Bitcoin Lightning) &middot; KYAPay (Skyfire)\n\n**3 tracked as emerging**:\nACTP (Alipay's Agentic Commerce Trust Protocol) &middot; EMVCo agent payments &middot; DRAIN (Bittensor Subnet 58)\n\n## Features\n\n**Billing & Metering**\n- A single Redis balance check on the hot path, on every call\n- Budget enforcement — HTTP 402 when exceeded\n- Auto-refill credits via Stripe\n- Multi-hop settlement across agent chains — each hop settled as it completes\n\n**Security & Compliance**\n- Agent identity (KYA) with trust scoring\n- Fraud detection (12 real-time signals)\n- IP allowlisting (CIDR support)\n- HMAC-SHA256 webhook signatures\n- Audit logging with CSV export (SOC 2 ready)\n- Sandbox/test mode\n\n**Developer Experience**\n- `sg.wrap()` — one function, any handler\n- 6 pricing models configurable from dashboard\n- 97 open-source templates with billing pre-wired\n- CLI scaffolder: `npx create-settlegrid-tool`\n- Discovery tab with badge generator, checklist, API URLs\n- Consumer reviews with developer responses\n- Quality gates + Verified badge for activated tools\n- Proactive monitoring (onboarding drip, quality alerts, monthly summary)\n\n## Pricing\n\n| Tier | Price | Ops/month | Take Rate |\n|:---:|:---:|:---:|:---:|\n| **Free** | $0 forever | 25,000 | 0% |\n| **Starter** | $9/mo | 100,000 | 5% |\n| **Growth** | $29/mo | 500,000 | 5% |\n| **Scale** | $79/mo | 2,000,000 | 5% |\n\n$1 minimum payout — the lowest in the industry. Stripe Connect Express for instant payouts.\n\n## REST API Middleware\n\nFor non-MCP services (Express, Next.js, Hono, etc.):\n\n```typescript\nimport { settlegridMiddleware } from '@settlegrid/mcp'\n\nconst withBilling = settlegridMiddleware({\n  toolSlug: 'my-api',\n  costCents: 5,\n})\n\nexport async function GET(request: Request) {\n  return withBilling(request, async () => {\n    return Response.json({ data: 'hello' })\n  })\n}\n```\n\n## Project Structure\n\n```\nsettlegrid/\n├── apps/web/                  # Next.js 15 platform (settlegrid.ai)\n├── packages/mcp/              # @settlegrid/mcp SDK\n├── packages/discovery-server/ # @settlegrid/discovery MCP server\n├── packages/create-tool/      # npx create-settlegrid-tool CLI\n├── open-source-servers/       # 1,017 indexed MCP servers\n└── .mcp.json                  # MCP plugin config (Cursor, Claude)\n```\n\n## Links\n\n| | |\n|---|---|\n| **Website** | [settlegrid.ai](https://settlegrid.ai) |\n| **Documentation** | [settlegrid.ai/docs](https://settlegrid.ai/docs) |\n| **Discovery Guide** | [settlegrid.ai/learn/discovery](https://settlegrid.ai/learn/discovery) |\n| **Handbook** | [settlegrid.ai/learn/handbook](https://settlegrid.ai/learn/handbook) |\n| **API Reference** | [settlegrid.ai/api/openapi.json](https://settlegrid.ai/api/openapi.json) |\n| **Discovery API** | [settlegrid.ai/api/v1/discover](https://settlegrid.ai/api/v1/discover) |\n| **RSS Feed** | [settlegrid.ai/api/feed](https://settlegrid.ai/api/feed) |\n| **npm (SDK)** | [@settlegrid/mcp](https://www.npmjs.com/package/@settlegrid/mcp) |\n| **npm (Discovery)** | [@settlegrid/discovery](https://www.npmjs.com/package/@settlegrid/discovery) |\n| **MCP Registry** | [io.github.lexwhiting/settlegrid-discovery](https://registry.modelcontextprotocol.io) |\n| **Support** | support@settlegrid.ai |\n\n## License\n\nMIT &copy; 2026 [SettleGrid](https://settlegrid.ai)\n",
  "bytes": 9257,
  "sha": "9f0f9173a6b32e22be6aa4e7e89d26ec1f1d4aa1d29d63b41afe3eb1484142f9",
  "repo_slug": "lexwhiting/settlegrid",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_lexwhiting_settlegrid_discover_d6a3c164/readme"
}