Skip to main content

A Model Context Protocol server powered by fastMCP for inspecting local OpenAPI specs.

Project description

OpenAPI Tools MCP Server

A Model Context Protocol server powered by fastMCP for inspecting local OpenAPI specs. It exposes tools for listing and retrieving spec details with optional glob/tag filters and $ref resolution.

Add as an MCP server

Add this server to your MCP client configuration (PyPI):

{
  "mcpServers": {
    "openapi-tools": {
      "command": "uvx",
      "args": [
        "--from",
        "openapi-tools-mcp",
        "openapi-tools-mcp"
      ]
    }
  }
}

This launches the openapi-tools-mcp entrypoint from PyPI via uvx.

TOML version (PyPI):

[mcp_servers.openapi-tools]
command = "uvx"
args = ["--from", "openapi-tools-mcp", "openapi-tools-mcp"]

You can also install directly from GitHub with uvx:

uvx --from git+ssh://git@github.com/kardaj/openapi-tools-mcp.git openapi-tools-mcp

Available tools

  • spec_info(spec_path): Quickly summarize a spec file (OpenAPI version, title/description, servers). Use this first to confirm you're reading the right spec and its base URLs.
  • spec_list(section, spec_path, filter_by_glob?, filter_by_tag?): Enumerate keys within a spec section (e.g., all paths, schemas, or responses). Use to discover what exists before drilling into details.
  • spec_get(section, name, spec_path, resolve_refs=True): Retrieve a specific item from a section (e.g., one path or schema), with optional $ref resolution and source line numbers for precise navigation.

All tools expect a readable OpenAPI YAML/JSON file path on the local filesystem. An example spec lives at tests/openapi.example.yml.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openapi_tools_mcp-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openapi_tools_mcp-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file openapi_tools_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: openapi_tools_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for openapi_tools_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6263ee118f5ab6ae81921a97c047e1c7103ac389f287a601cb423f7fe2213a3d
MD5 a6425bd587cdd236ef13d2a3fa39f803
BLAKE2b-256 472ad39d52cc9a90154723c275530e26cd0e1538b7fa44b1d83122237a9c9d41

See more details on using hashes here.

File details

Details for the file openapi_tools_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openapi_tools_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 326940fa9eb808bb43e32acf370f67b8f887595f51fd8dabf4b2ec7296b77507
MD5 9fbbdbe64ffe9c4aac3d3aee53579675
BLAKE2b-256 71e95a22e9c3f342b82d977732ca09c88bfb7a3bd35fca438fe8b7f8d5f421fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page