trackmcp
Back to directory
lexwhiting

settlegrid

View on GitHub

The settlement layer for AI agent payments. Per-call billing, 10 protocols, built-in discovery. Free forever.

1 stars TypeScriptOthers Updated Jul 6, 2026
agent-paymentsai-agentsai-billingai-paymentsapi-monetizationdeveloper-toolsmcpmicropaymentsmodel-context-protocolmonetizationsdksettlementstripe-connectusage-based-billingx402mcp-billingmcp-serversettlement-layerai-tool-discovery

Documentation

The Settlement Layer for AI Agent Payments

Monetize any AI tool with 2 lines of code. Per-call billing, 14 agent payment protocols brokered or tracked, built-in discovery.

·

·

·

·

·


Quick Start

bash
npm install @settlegrid/mcp
typescript
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:

bash
npx create-settlegrid-tool

Why SettleGrid?

SettleGridStripe BillingNeverminedPaid.ai
Protocol support14 tracked (9 brokered + 2 detection + 3 emerging)REST onlyx402 / DeFiMCP only
Real-time meteringRedis hot pathBatch onlyOn-chainPer-call
Built-in discovery8+ registriesNoneNoneNone
Multi-hop settlementYesNoYesNo
Agent identity (KYA)YesNoNoNo
Budget enforcementYesNoNoNo
Outcome-based billingYesNoYesNo
Free tier (0% fees)YesNoNoNo
$1 minimum payoutYesNoNoNo
Open-source SDKYesNoYesNo
Fraud detectionYesYesNoNo

Discovery — Your Tools, Found Everywhere

SettleGrid doesn't just bill — it distributes. Every active tool is automatically discoverable across:

ChannelHow 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
json
{
  "mcpServers": {
    "settlegrid-discovery": {
      "command": "npx",
      "args": ["@settlegrid/discovery"]
    }
  }
}

6 Pricing Models

ModelBest forExample
Per-InvocationSearch, lookups, CRUD5¢/call
Per-TokenLLM wrappers, text processing$0.001/1K tokens
Per-ByteFile conversion, data export1¢/MB
Per-SecondVideo processing, ML inference2¢/second
TieredMulti-method toolsread 1¢, write 5¢
Outcome-BasedLead gen, data extraction25¢ on success

Payment Protocol Coverage

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)

Features

Billing & Metering

  • A single Redis balance check on the hot path, on every call
  • Budget enforcement — HTTP 402 when exceeded
  • Auto-refill credits via Stripe
  • Multi-hop settlement across agent chains — each hop settled as it completes

Security & Compliance

  • Agent identity (KYA) with trust scoring
  • Fraud detection (12 real-time signals)
  • IP allowlisting (CIDR support)
  • HMAC-SHA256 webhook signatures
  • Audit logging with CSV export (SOC 2 ready)
  • Sandbox/test mode

Developer Experience

  • `sg.wrap()` — one function, any handler
  • 6 pricing models configurable from dashboard
  • 97 open-source templates with billing pre-wired
  • CLI scaffolder: `npx create-settlegrid-tool`
  • Discovery tab with badge generator, checklist, API URLs
  • Consumer reviews with developer responses
  • Quality gates + Verified badge for activated tools
  • Proactive monitoring (onboarding drip, quality alerts, monthly summary)

Pricing

TierPriceOps/monthTake Rate
Free$0 forever25,0000%
Starter$9/mo100,0005%
Growth$29/mo500,0005%
Scale$79/mo2,000,0005%

$1 minimum payout — the lowest in the industry. Stripe Connect Express for instant payouts.

REST API Middleware

For non-MCP services (Express, Next.js, Hono, etc.):

typescript
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' })
  })
}

Project Structure

code
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)

License

MIT © 2026 SettleGrid

Frequently asked questions

What is settlegrid?

settlegrid is The settlement layer for AI agent payments. Per-call billing, 10 protocols, built-in discovery. Free forever.

How do I install settlegrid?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is settlegrid open source?

Yes — it is hosted on GitHub at https://github.com/lexwhiting/settlegrid and has 1 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP