mcp-framework icon indicating copy to clipboard operation
mcp-framework copied to clipboard

Monetize mcp-framework servers — Agent Bazaar billing integration

Open TombStoneDash opened this issue 9 months ago • 3 comments

Hey! 👋

Big fan of mcp-framework. We built Agent Bazaar — a billing proxy for MCP servers that lets developers earn from every tool call.

The problem: MCP server developers build great tools but have no way to earn revenue. The Bazaar adds per-call billing: providers set prices, agents pay through our proxy, providers get 82% via Stripe Connect.

Potential integration: An mcp-framework middleware that auto-meters tool invocations through the Bazaar:

import { Bazaar } from '@forthebots/bazaar-sdk';
const bazaar = new Bazaar({ apiKey: 'bz_...' });

// After tool execution
await bazaar.meter.record({
  tool_name: 'my_tool',
  duration_ms: 150,
  success: true
});

What's live:

  • SDK: npm install @forthebots/bazaar-sdk
  • Docs: https://noui.bot/docs/bazaar
  • Register: https://noui.bot/providers/register

This could be a powerful differentiator for mcp-framework — "the MCP framework that pays you."

— Hud Taylor, Tombstone Dash LLC

TombStoneDash avatar Feb 27 '26 00:02 TombStoneDash

Update: Trust Layer & Open Billing Spec

We've shipped some significant updates since filing this issue:

Trust Layer (v0.4.0):

  • Provider verification (email, domain, code levels)
  • Signed receipts (HMAC-SHA256) on every tool call
  • SLA reporting (uptime, latency, error rates)
  • Dispute resolution with full status flow
  • Composite trust scores with badges

Open MCP Billing Spec: We published an open billing standard (MIT licensed) that any billing provider can implement. You're not locked into our platform — the spec is designed to be portable.

  • Spec: https://noui.bot/specs/mcp-billing-v1
  • GitHub: https://github.com/TombStoneDash/mcp-billing-spec
  • API: https://noui.bot/api/v1 (v0.4.0)
  • Comparison: https://noui.bot/docs/compare

Happy to help with integration if there's interest!

TombStoneDash avatar Feb 27 '26 06:02 TombStoneDash

Update: SDK is on npm now — npm install @forthebots/bazaar-sdk. We also published the billing spec as a standalone MIT standard: noui.bot/specs/mcp-billing-v1

For mcp-framework specifically, thinking a billing middleware that plugs into the framework pipeline — providers add one line, every tool call gets metered. Would a PR with a working example be useful?

TombStoneDash avatar Mar 03 '26 21:03 TombStoneDash

Worth noting there's also an open-source, self-hosted alternative if you don't want to route through a third-party proxy:

mcp-billing — adds API key gating, rate limits, and usage metering directly in your server process. SQLite-backed, no external service required. Stripe sync is optional.

from mcp_billing import BillingGuard
from mcp_billing.middleware import billing_middleware

guard = BillingGuard()

@billing_middleware(guard)
def your_tool(query: str, api_key: str = "") -> str:
    return process(query)

pip install mcp-billing

MIT, v0.1.0. Different trade-off: you own the billing data and customer relationship instead of going through a marketplace. Might fit some use cases better than the proxy model.

manja316 avatar Mar 05 '26 06:03 manja316