Skip to main content

An MCP 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.

The server also publishes MCP metadata (instructions and website_url) to guide clients toward local-file OpenAPI inspection workflows.

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.2.0.tar.gz (6.2 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.2.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openapi_tools_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for openapi_tools_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2a51992e86ec950695d1b650332d1c7a4a849a928211b2a598d54769e54e76c5
MD5 9ffae4fc7d459e4904bb7fda1a6b5946
BLAKE2b-256 6c339389f18519517789d54ea5bbab2ed319f48afe987290bf63720a9f9e066f

See more details on using hashes here.

Provenance

The following attestation bundles were made for openapi_tools_mcp-0.2.0.tar.gz:

Publisher: release.yml on kardaj/openapi-tools-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for openapi_tools_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1524cc2045c93db37fb01946b011ca1766498f294e9dceae417a87bf51e4103b
MD5 54a2d6934c930cc1521ab496b7edd64e
BLAKE2b-256 2748207e8f87a0f56d11a1c659e910988613d46b44024c842be1bcfb41508786

See more details on using hashes here.

Provenance

The following attestation bundles were made for openapi_tools_mcp-0.2.0-py3-none-any.whl:

Publisher: release.yml on kardaj/openapi-tools-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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