Docker image for MCP OpenAPI Schema Explorer. Explore API specs efficiently via MCP Resources.
1.4K
This Docker image runs the MCP OpenAPI Schema Explorer, an MCP (Model Context Protocol) server that provides token-efficient access to OpenAPI (v3.0) and Swagger (v2.0) specifications via MCP Resources.
It allows MCP clients (like Cline or Claude Desktop) to explore the structure and details of large OpenAPI specifications without needing to load the entire file into an LLM's context window.
Source Code & Full Documentation: https://github.com/kadykov/mcp-openapi-schema-explorer
openapi://info, openapi://paths/..., openapi://components/...).--output-format).info.title from the loaded spec.$refs (#/components/...) are transformed into clickable MCP URIs.Pull the image:
docker pull kadykov/mcp-openapi-schema-explorer:latest
The container expects the path or URL to the OpenAPI specification as a command-line argument.
Pass the URL directly to docker run:
docker run --rm -i kadykov/mcp-openapi-schema-explorer:latest https://petstore3.swagger.io/api/v3/openapi.json
Mount your local file into the container using the -v flag and provide the path inside the container as the argument:
# Example: Mount local file ./my-spec.yaml to /spec/api.yaml inside the container
docker run --rm -i -v "$(pwd)/my-spec.yaml:/spec/api.yaml" kadykov/mcp-openapi-schema-explorer:latest /spec/api.yaml
(Note: Replace $(pwd)/my-spec.yaml with the actual absolute path to your local file on the host machine)
Use the --output-format flag (optional, defaults to json):
# Using YAML output with a remote URL
docker run --rm -i kadykov/mcp-openapi-schema-explorer:latest https://petstore3.swagger.io/api/v3/openapi.json --output-format yaml
# Using minified JSON with a local file
docker run --rm -i -v "$(pwd)/my-spec.yaml:/spec/api.yaml" kadykov/mcp-openapi-schema-explorer:latest /spec/api.yaml --output-format json-minified
Supported formats: json, yaml, json-minified.
latest: Points to the most recent stable release.1.2.1) are available corresponding to the npm package versions.You can configure your MCP client (like Cline or Claude Desktop) to run this Docker image as an MCP server.
// Example: ~/.config/cline/mcp_config.json
{
"mcpServers": {
"My API Spec (Docker Remote)": {
"command": "docker",
"args": [
"run",
"--rm",
"-i", // Required for MCP communication
"kadykov/mcp-openapi-schema-explorer:latest",
"https://petstore3.swagger.io/api/v3/openapi.json"
// Optional: Add "--output-format", "yaml" here if needed
],
"env": {}
}
}
}
// Example: ~/.config/cline/mcp_config.json
{
"mcpServers": {
"My API Spec (Docker Local)": {
"command": "docker",
"args": [
"run",
"--rm",
"-i", // Required for MCP communication
"-v",
"/full/path/to/your/local/openapi.yaml:/spec/api.yaml", // Host path : Container path
"kadykov/mcp-openapi-schema-explorer:latest",
"/spec/api.yaml", // Path inside the container
"--output-format",
"yaml" // Optional format
],
"env": {}
}
}
}
(Remember to replace /full/path/to/your/local/openapi.yaml with the correct absolute path on your host machine)
For issues or questions, please refer to the GitHub repository or open an issue.
Content type
Image
Digest
sha256:8ec08569d…
Size
63.5 MB
Last updated
4 months ago
docker pull kadykov/mcp-openapi-schema-explorer