api-agent

Turn REST or GraphQL APIs into queryable MCP tools with SQL post-processing

Local

Install

See the repository for setup

What it does

API Agent is an MCP server that exposes an arbitrary REST or GraphQL API to a compatible client as a natural-language query tool. Instead of writing per-API MCP code, you point it at a GraphQL endpoint, an OpenAPI 3.x document, or a Swagger 2.0 document; it loads the schema, plans API calls from a plain-English question, stores returned data in DuckDB, and applies SQL so that sorting, filtering, aggregation, and joins work even when the underlying API does not support them. It is aimed at developers and analysts who want conversational access to an API from an MCP client without building custom tooling for each service.

It runs as a local server (Docker or uv) and is added to an MCP client via a streamable-http, http, or sse endpoint, with the target URL and API type supplied through request headers. Authentication headers can be passed explicitly or forwarded from the client request. Queries are read-only by default; write methods require allowlisted paths. The main limitations are that each query targets one API, cross-target joins are not supported, the setup depends on an OpenAI API key and model, and Swagger YAML anchors or aliases are not handled.

Compatibility and authentication

Connection
Local
Transports
Unspecified
Authentication
Unknown

Security and permissions

  • When you run the server locally, it runs with your user permissions.
  • Authentication type: Unknown.

Repository data

Stars
299
Last push
Oct 23, 2026
License
MIT
Archived
No

Other OpenAI MCP servers

Compare servers

FAQ

What license does api-agent use?
MIT
Does api-agent run locally or remotely?
It runs locally.
Is api-agent an official server?
It is listed as a community server.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/mcp/api-agent"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options