Load OpenAPI 2.x/3.x specs and expose generic tools to discover and call multiple APIs
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
It is designed for common user workflows:
specUrl definitions3.0, 3.1, and Swagger 2.0429 Too Many Requests.20+Run the MCP server directly:
Minimal config:
You can also point at a remote spec:
Add each API you want to use under apis. Each entry can point to a local spec file or a remote spec URL.
Common options:
name: the API name shown in MCP and CLI commandsspecPath or specUrl: where to load the OpenAPI spec frombaseUrl: override the server URL from the specheaders: headers to send on every requesttimeoutMs: default request timeoutretry429: retry behavior for rate-limited APIsoauth2Schemes: per-scheme OAuth settings when the spec defines OAuth securityUse oauth2Schemes when an API defines one or more OAuth2 security schemes and you want to set token URLs, scopes, or interactive auth preferences for a specific scheme.
The scheme name must match the name in the OpenAPI spec. Common options are:
tokenUrlscopestokenEndpointAuthMethodauthMethoddeviceAuthorizationEndpointpkceIf you only need credentials, environment variables are often enough. Use oauth2Schemes when you want reusable config checked into the project.
Server mode is available as either the root command or the explicit serve subcommand:
Use the CLI when you want the same API access outside your MCP client, for scripting, debugging, or auth setup.
Every MCP tool is also available as a CLI subcommand that accepts one JSON object and emits JSON output:
Shared flags:
--input <json>: JSON object with command arguments--fields <jsonpath>: repeatable selector for filtering successful output--describe: print the command schema and help metadata--auth-file <path>: override the auth-store pathUse auth to pre-authenticate one configured security scheme and persist its token for later MCP or CLI calls:
For API key and bearer auth, --token provides the secret directly. For OAuth2, the command uses your configured credentials, completes the flow, and stores the result for later use.
Supported authentication types:
Typical auth flow:
auth once if the scheme needs a stored tokenBy default, tokens are stored beside your config file in:
You can override that path with either:
--auth-fileOPENAPI_DYNAMIC_MCP_AUTH_FILEThis makes repeated API use much smoother, especially for MCP clients that need to reconnect often.
When a request needs user interaction, the tool returns structured guidance that an MCP agent can relay to the user. Typical device-code output looks like:
This is especially useful for MCP agents because the auth step becomes a normal part of the user workflow instead of a dead-end error.
Environment variables are useful for secrets, base URL overrides, and CI setups.
Names are derived from normalized API and scheme names:
__ are collapsed_ are removedExamples:
pet-api -> PET_APIOAuth2 -> OAUTH2<API>_BASE_URL<API>_HEADERS as a JSON object stringOPENAPI_DYNAMIC_MCP_AUTH_FILE<API>_<SCHEME>_API_KEY<API>_<SCHEME>_TOKEN<API>_<SCHEME>_USERNAME<API>_<SCHEME>_PASSWORD<API>_<SCHEME>_ACCESS_TOKEN<API>_<SCHEME>_CLIENT_ID<API>_<SCHEME>_CLIENT_SECRET<API>_<SCHEME>_TOKEN_URL<API>_<SCHEME>_SCOPES as a space-delimited list<API>_<SCHEME>_TOKEN_AUTH_METHOD as client_secret_basic or client_secret_post<API>_<SCHEME>_USERNAME<API>_<SCHEME>_PASSWORD<API>_<SCHEME>_AUTH_METHOD as device_code or authorization_code<API>_<SCHEME>_DEVICE_AUTHORIZATION_ENDPOINT<API>_<SCHEME>_REDIRECT_PORT<API>_<SCHEME>_PKCE as true or falseUseful behaviors:
_ACCESS_TOKEN bypasses OAuth grant flows entirely._AUTH_METHOD forces device_code or authorization_code when both are possible._USERNAME and _PASSWORD are used for both HTTP basic auth and OAuth password grant, depending on the security scheme.No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/openapi-dynamic)<a href="https://allmcps.com/mcp/openapi-dynamic"><img src="https://allmcps.com/api/badge/openapi-dynamic?style=directory" alt="Openapi Dynamic on AllMCPs" /></a>