mcp-any-openapi

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TOOL_WHITELISTNoA prefix filter to select only certain tools.
API_AUTH_BEARERNoBearer token for endpoints requiring authentication.
OPENAPI_SPEC_URLYesURL to the OpenAPI specification JSON file.
TOOL_NAME_PREFIXNoA string to prepend to all tool names when mapping.
OPENAPI_SIMPLE_MODENoSet to `true` for FastMCP mode.
SERVER_URL_OVERRIDENoOverride URL if the spec does not include servers or a different URL is desired.
OPENAPI_LOGFILE_PATHNoPath for the log file.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
list_functions
Lists available functions (API endpoints) defined in the OpenAPI specification. Returns: A JSON-encoded string of available function descriptions, or an error message if configuration is missing.
call_function
Calls a specified API function (an endpoint defined in the OpenAPI spec) with parameters. Args: function_name (str): The name of the API function to call (e.g., "GET /pets"). parameters (dict, optional): Parameters for the API call (query parameters, request body, etc.). Returns: The raw API response as a JSON-encoded string or an error message.