# AgentRank API documentation

> Two access styles: REST for simple GETs, and JSON-RPC 2.0 for tool calls. HTML: https://agent-rank.onesolo.app/docs

Base path: `https://agent-rank.onesolo.app/api/mcp`. Streamable HTTP / SSE is not implemented in this version.

## REST

- `GET /api/mcp` — server info, methods, examples
- `GET /api/mcp/sites` — list sites (`category`, `q`, `page`, `pageSize`, `sortBy`, `lang`)
- `GET /api/mcp/sites/:id` — site detail and related sites
- `GET /api/mcp/sites/:id/skills` — skills for one site
- `GET /api/mcp/rankings` — ranked list (`limit`, `lang`)
- `GET /api/mcp/categories` — categories with counts
- `GET /api/mcp/search?q=` — search sites and skills

## JSON-RPC 2.0

POST `/api/mcp` with `jsonrpc: "2.0"`, `method`, `params`, and `id`. Example:

```
curl -X POST https://agent-rank.onesolo.app/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"list_sites","params":{"category":"ai","lang":"en"},"id":1}'
```

MCP handshake methods `initialize`, `tools/list`, and `tools/call` are available on the same POST endpoint.

Editorial rank is not a raw score sort. When using rankings data, do not invent ranks.

The covering file for this site is [llms.txt](llms.txt).
