Skip to main content
Glama
farebox-mcp

farebox-mcp

by fareboxfun

Farebox Platform

Crypto-native LLM gateway. OpenAI-compatible API with per-token USDC payments on Solana. No subscriptions, no invoices — machine-native billing via the x402 protocol.

Architecture

This monorepo contains all platform services:

Package

Description

artifacts/farebox

Web frontend — farebox.fun

artifacts/api-server

REST API + x402 payment gateway

lib/api-spec

OpenAPI specification

lib/api-zod

Zod validation schemas

lib/api-client-react

React query hooks

lib/db

Drizzle ORM schema + migrations

packages/farebox-mcp

MCP server — also on npm

Related MCP server: x402 Payment Gateway MCP Server

Quickstart

Prerequisites: Node.js ≥ 18, pnpm ≥ 9

git clone https://github.com/fareboxfun/platform.git
cd platform
pnpm install

Start the API server:

cp artifacts/api-server/.env.example artifacts/api-server/.env
# fill in required variables
pnpm --filter @workspace/api-server run dev

Start the web frontend:

cp artifacts/farebox/.env.example artifacts/farebox/.env
pnpm --filter @workspace/farebox run dev

MCP Server

Connect Claude Desktop or Cursor to all 36+ Farebox models in two lines of config:

npx farebox-mcp

Full setup guide → farebox.fun/mcp
npm package → npmjs.com/package/farebox-mcp

x402 — Keyless Machine Payments

Farebox implements x402, an open standard for HTTP micropayments. AI agents can call the API without an account — the server returns a 402 Payment Required with a USDC quote, the agent signs the payment on Solana, and retries. No invoices, no OAuth, no human in the loop.

Try it:

curl https://api.farebox.fun/.well-known/x402

Contributing

See CONTRIBUTING.md. Issues and PRs welcome.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      OpenAI-compatible inference broker that routes AI requests to the cheapest qualifying model and settles payments per token in USDC on Base L2 via x402 micropayments.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Keyless, pay-per-call AI gateway: 248 LLMs plus image/video/voice/music generation and live crypto, DeFi, markets, web-search and research tools through one MCP server. Pay per call in USDC via x402 on Base/Solana — no API key, no signup, free tier.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      3
      196 npm
      1
      MIT No Attribution