Skip to main content
Glama
README.md
# api-router

Free JSON API and MCP server that compares AI and developer API providers (LLM inference, scraping, proxies, GPU) by free tier, health and latency, plus two free utilities for agents. Some signup links are referral links. No LLM runs in the request path.

Base URL: https://api-router.instinctagentai.workers.dev

## Endpoints
- GET /v1/catalog
- GET /v1/best-route?task=inference|scraping|gpu|storage|proxy&budget=low|fast
- GET /v1/health-route?category=llm|scraping|proxy|gpu
- POST /v1/json-repair with {"text":"...","schema":{optional}} : fixes broken JSON and validates against a JSON Schema subset
- GET /v1/page-to-markdown?url=...&format=md : clean markdown from a public page, 30 requests per IP per day
- /.well-known/agent-card.json : A2A agent card
- /llms.txt : discovery file for AI tools

## MCP
`npx mcp-api-router` (version 0.2.0)

Tools: best_route, catalog, find_fastest_healthy_provider, json_repair, page_to_markdown

Example client config:

```json
{ "mcpServers": { "api-router": { "command": "npx", "args": ["-y", "mcp-api-router"] } } }
```

Daily benchmark: benchmarks/latest.md

## Where it is listed
- npm: https://www.npmjs.com/package/mcp-api-router
- Official MCP Registry: io.github.instinctagentai/mcp-api-router (https://registry.modelcontextprotocol.io/v0/servers?search=instinctagentai)
- GitHub topics: mcp, mcp-server, model-context-protocol, a2a, ai-agents
- Discovery files: /llms.txt, /.well-known/agent-card.json
- Planned: Glama, awesome-mcp-servers (needs a Glama backlink first), other directories that follow their own rules

TDQS

B3.4/5.0

Scored across 5 tools

Disambiguation3/5

best_route and find_fastest_healthy_provider overlap heavily: both take a category and both return referral_url plus user_bonus_description, differing only in the selection criterion (best-for-task vs lowest latency). The category vocabularies also conflict (inference vs llm), which will cause misselection. catalog, json_repair, and page_to_markdown are clearly distinct.

Naming Consistency4/5

Names are uniformly snake_case and readable, with json_repair and page_to_markdown following a consistent verb_noun style. Minor deviations: catalog is a bare noun and best_route is adjective_noun rather than an action, so the verb pattern is not fully uniform.

Tool Count4/5

Five tools is a comfortable, well-scoped set for a provider-routing server. However, json_repair and page_to_markdown sit outside the routing domain and read as unrelated add-ons, and the two recommendation tools arguably could be one parameterized tool.

Completeness3/5

A router should let an agent actually dispatch or test a provider call, but the surface only recommends and lists providers — there is no execute/proxy operation and no way to query health or pricing beyond the static catalog. The bundled utilities (json_repair, page_to_markdown) partially compensate for output handling but don't close the core gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues