APIbase.pro — The API Hub for AI Agents
Search flights, compare prices, track status, trade prediction markets — all via MCP. One endpoint. 33 tools. 5 providers. Pay per call.
Live Platform | Tool Catalog | MCP Endpoint | Health
What is APIbase?
APIbase is a production MCP server that gives AI agents instant access to real-world APIs — flight search, prediction markets, DeFi trading, and more. No SDK installation, no API key juggling, no rate limit management. Connect once, use 33 tools.
Built for AI agents, not humans. Every tool is designed for autonomous discovery, authentication, and invocation via the Model Context Protocol.
Why agents use APIbase
One MCP endpoint —
https://apibase.pro/mcpconnects to 5 providersReal-time flight search — Amadeus + Sabre GDS, 500+ airlines, real prices
Pay per call — x402 micropayments (USDC), no subscriptions, no minimums
Auto-registration — agents get API keys instantly, zero human setup
Production-grade — 13-stage pipeline, escrow payments, idempotent operations
Quick Start (30 seconds)
For Claude Desktop / Cursor / Windsurf
Option A — Direct connection (Streamable HTTP):
{
"mcpServers": {
"apibase": {
"url": "https://apibase.pro/mcp"
}
}
}Option B — Via npm package (stdio bridge):
{
"mcpServers": {
"apibase": {
"command": "npx",
"args": ["-y", "apibase-mcp-client"]
}
}
}For any MCP-compatible agent
MCP Endpoint: https://apibase.pro/mcp
Tool Catalog: https://apibase.pro/api/v1/tools
Discovery: https://apibase.pro/.well-known/mcp.jsonRegister and get your API key
POST /api/v1/agents/register
Content-Type: application/json
{"agent_name": "my-agent", "agent_version": "1.0.0"}Returns api_key (ak_live_...) and agent_id. Store the key securely — it is shown once.
Call tools via MCP
Connect to https://apibase.pro/mcp using the MCP protocol (Streamable HTTP transport).
Authenticate with Authorization: Bearer ak_live_....
All tool calls follow the MCP tools/call method.
Call tools via REST
GET /api/v1/tools/{tool_id}?param1=value1¶m2=value2
Authorization: Bearer ak_live_...
Accept: application/jsonFlight Search Example
Ask your AI agent:
"Find the cheapest flights from New York to London next week"
The agent calls amadeus.flight_search and gets real-time prices from 500+ airlines:
{
"origin": "JFK",
"destination": "LHR",
"departure_date": "2026-03-20",
"adults": 1,
"travel_class": "ECONOMY",
"max_results": 5,
"currency": "USD"
}Returns itineraries with prices, airlines, stops, duration, baggage info — ready for the agent to compare and present.
Available Tools (33)
Amadeus — Flight Search & Travel Data (7 tools)
Real-time flight data from the world's largest GDS. Search flights across 500+ airlines, check live status, find airports.
Tool | Description | Price |
| Real-time flight offers with prices, airlines, stops, duration | $0.035 |
| Confirm final pricing for a flight offer | $0.020 |
| Real-time flight status — delays, cancellations, gates | $0.005 |
| Airport/city search by keyword or IATA code | $0.003 |
| Nearest airports by geographic coordinates | $0.003 |
| All direct destinations from an airport | $0.003 |
| Airline details by IATA or ICAO code | $0.002 |
Sabre GDS — Flight Search & Travel Data (4 tools)
Alternative flight search via Sabre Global Distribution System. Cross-reference prices with Amadeus for best deals.
Tool | Description | Price |
| Real-time flight offers with prices between airports | $0.010 |
| Cheapest flight destinations from an origin airport | $0.005 |
| Airline details by IATA or ICAO code | $0.002 |
| Travel theme categories (beach, skiing, romantic, etc.) | $0.002 |
Polymarket — Prediction Markets (11 tools)
Search, analyze, and trade on prediction markets. Real-time odds, order books, and trading via CLOB.
Tool | Description | Price |
| Search prediction markets | $0.0005 |
| Market details with probabilities | $0.0005 |
| Midpoint price for a token | $0.0005 |
| Historical price data | $0.0005 |
| Order book depth | $0.0005 |
| Trending markets by volume | $0.0005 |
| Place a limit order (GTC/GTD/FOK) | $0.001 |
| Cancel an open order | $0.001 |
| Get open orders | $0.0005 |
| Trade history | $0.0005 |
| Balance and allowance | $0.0005 |
Hyperliquid — DeFi Perpetuals (6 tools)
On-chain perpetual futures exchange. Market data, order books, positions, and account info.
Tool | Description | Price |
| Market data and funding rates | $0.002 |
| Order book depth | $0.003 |
| Candlestick / OHLCV data | $0.003 |
| User positions | $0.005 |
| Account summary | $0.005 |
| Vault details | $0.005 |
AsterDEX — DeFi Perpetuals (4 tools)
Decentralized perpetual exchange on Asterism. Market data, order books, and candlestick charts.
Tool | Description | Price |
| Exchange info and trading pairs | $0.001 |
| Market data and 24h stats | $0.002 |
| Order book depth | $0.003 |
| Candlestick / OHLCV data | $0.003 |
Payment
Field | Value |
Protocol | x402 (HTTP 402 Payment Required) |
Token | USDC on Base |
Address |
|
No subscriptions. No minimums. Pay only for what you use.
Authentication
Method | Header | Format |
API Key |
|
|
x402 Payment |
| Base64-encoded payment receipt |
Response Format
All responses include:
X-Request-IDheader for tracingJSON body with tool-specific
datafieldStandard error codes on failure
Rate Limits
Per-agent, per-tool token bucket
Global tier limits: free (20 req/s), paid (100 req/s)
429withRetry-Afterheader on limit exceededRedis-backed, fail-closed
Error Codes
HTTP | Code | Meaning |
400 |
| Invalid parameters |
401 |
| Missing or invalid API key |
402 |
| x402 payment needed |
404 |
| Tool or resource not found |
406 |
| Wrong Accept header (use |
429 |
| Rate limit exceeded |
500 |
| Server error |
502 |
| Provider unavailable |
503 |
| System not ready |
MCP Discovery
GET /.well-known/mcp.json
{
"name": "APIbase",
"protocol": "MCP",
"version": "1.0",
"mcp_endpoint": "https://apibase.pro/mcp",
"authentication": "x402"
}Architecture
13-stage pipeline: AUTH → IDEMPOTENCY → SCHEMA_VALIDATION → CACHE → RATE_LIMIT → ESCROW → PROVIDER_CALL → LEDGER → RESPONSE
Fail-closed: Redis down = reject all requests, no silent degradation
Idempotent: same request + same key = same result, no double charges
Observable: Prometheus metrics, Grafana dashboards, structured logging
Self-Hosting
git clone https://github.com/whiteknightonhorse/APIbase.git
cp .env.example .env # configure secrets
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -dRequires: Docker, PostgreSQL 16, Redis 7.2, Node.js 20.
16 containers: API, Worker, Outbox, PostgreSQL, Redis, Nginx, Prometheus, Grafana, Loki, Promtail, Alertmanager, and exporters.