Load OpenAPI 2.x/3.x specs and expose generic tools to discover and call multiple APIs
Connect Openapi to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Load OpenAPI 2.x/3.x specs and expose generic tools to discover and call multiple APIs. The openapi mcp server is what makes that connection.
Connect AI clients to OpenAPI APIs quickly, with one MCP server, direct CLI access, and built-in auth support.
openapi-dynamic-mcp lets MCP clients and shell users work with OpenAPI APIs without writing custom glue code for each service. Point it at one or more OpenAPI specs, then list APIs, inspect endpoints, authenticate, and make requests through a consistent interface.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
OPENAPI_DYNAMIC_MCP_AUTH_FILE — __API_KEYlist_apis — List configured APIslist_api_endpoints — Search or paginate endpoints in one APIget_api_endpoint — Inspect endpoint metadata, parameters, responses, and securityget_api_schema — Return a schema object or JSON Pointer target from the specmake_endpoint_request — Preview or execute an endpoint requestCursor — The Cursor tool exposed by this serverOAuth2 — The OAuth2 tool exposed by this serverBecause this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.
Configuration is passed through the environment: PET_API_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
20+Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Openapi's toolset — OPENAPI_DYNAMIC_MCP_AUTH_FILE, list_apis, list_api_endpoints and 5 more — is a fair guide to whether it matches your workflow. It is maintained by mayorandrew; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| OPENAPI_DYNAMIC_MCP_AUTH_FILE | <API>_<SCHEME>_API_KEY |
| list_apis | List configured APIs |
| list_api_endpoints | Search or paginate endpoints in one API |
| get_api_endpoint | Inspect endpoint metadata, parameters, responses, and security |
| get_api_schema | Return a schema object or JSON Pointer target from the spec |
| make_endpoint_request | Preview or execute an endpoint request |
| Cursor | The Cursor tool exposed by this server. |
| OAuth2 | The OAuth2 tool exposed by this server. |
### Cursor
```json
{
"mcpServers": {
"openapi": {
"command": "npx",
"args": [
"-y",
"openapi-dynamic-mcp@latest",
"--config",
"/absolute/path/to/config.yaml"
]
}
}
}Configuration as documented by the project. Restart the client after saving.
20+| Variable | Description | Required |
|---|---|---|
| PET_API_BASE_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.