Docs in, task-shaped MCP server out.
docs2mcp reads an API's documentation, extracts a typed spec, groups endpoints into tools an agent can use, and generates a checked MCP server. This page shows how an agent did with those tools against two baselines built from the API's own OpenAPI file.
claude-haiku-5-5, 100 hand-written tasks with checked answers, each condition run 3 times (FastMCP once). Headline on the three APIs every condition covers: PokéAPI, Frankfurter, Postcodes.io.
Every condition, on the shared APIs
| Condition | Runs | Success | Grounded | Tool calls | Tokens / task | Complex tasks |
|---|---|---|---|---|---|---|
| A OpenAPI direct The API's own OpenAPI file, one tool per operation (docs2mcp's converter) | 180 | 95.0% | 95.0% | 1.73 | 33,511 | 83% |
| B docs2mcp direct docs2mcp from the docs, one tool per endpoint | 180 | 97.8% | 97.8% | 1.76 | 29,228 | 97% |
| C docs2mcp task-shaped docs2mcp from the docs, task-shaped tools | 180 | 98.3% | 98.3% | 1.61 | 26,065 | 100% |
| D FastMCP from OpenAPI FastMCP's from_openapi on the same OpenAPI file | 60 | 90.0% | 83.3% | 3.48 | 69,663 | 75% |
Grounded: the answer appeared in a tool result the agent saw, so it did not come from the model's memory.
Every API
| API | A | B | C | D | |
|---|---|---|---|---|---|
| Frankfurter | 96.7% | 100.0% | 100.0% | 90.0% | tools |
| Open Library | – | 85.0% | 78.3% | – | results only |
| Open-Meteo | – | 100.0% | 100.0% | – | results only |
| Open-Meteo Geocoding | – | 100.0% | 100.0% | – | results only |
| PokéAPI | 98.3% | 98.3% | 100.0% | 100.0% | tools |
| Postcodes.io | 90.0% | 95.0% | 95.0% | 80.0% | tools |
A and D exist only where the API publishes an OpenAPI file. Open Library and Open-Meteo show results only: their docs are AGPL, so their designs are not published.
The honest part
Task-shaped tools did best on complex tasks and used the fewest tokens. Across all six APIs they were level with docs2mcp's own one-tool-per-endpoint design, and behind it on Open Library. Most tasks were solved by every condition, so the gaps rest on a few tasks. The eval also found four real bugs before any result was claimed. Read the full results and limits, or browse every task.