Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Openapi Fetch

FreeNot checked

A CLI tool that registers OpenAPI GET endpoints as MCP tools, enabling API requests via MCP clients like Cursor.

GitHubEmbed

About

A CLI tool that registers OpenAPI GET endpoints as MCP tools, enabling API requests via MCP clients like Cursor.

README

A CLI tool to register OpenAPI endpoints as Model Context Protocol (MCP) tools. You can make API requests through an MCP client such as Cursor.

https://github.com/user-attachments/assets/b8f7e7f9-ca8f-475a-84fc-609e03c7ae96

Features

  • Fetches OpenAPI YAML from a URL or local file (Currently, only YAML format is supported)
  • Registers each GET endpoint as an MCP tool (This library only supports GET requests for safety reasons)
  • Supports custom headers and environment variable configuration

Cursor MCP setting

When using a local OpenAPI spec

    "openapi-fetch-mcp": {
      "command": "npx",
      "args": ["openapi-fetch-mcp"],
      "env": {
        "API_URL": "https://your-api-url.com",
        "CUSTOM_HEADERS": "{\"X-Your-Api-Key\":\"xxxxxxxxx\"}",
        "OPENAPI_FILE_PATH": "/FULL_PATH_TO_OPEN_API_YAML_FILE"
      }
    }

When using a remote OpenAPI spec

    "openapi-fetch-mcp": {
      "command": "npx",
      "args": ["openapi-fetch-mcp"],
      "env": {
        "API_URL": "https://your-api-url.com",
        "CUSTOM_HEADERS": "{\"X-Your-Api-Key\":\"xxxxxxxxx\"}",
        "OPENAPI_URL": "https://your-open-api-url.com"
      }
    }

Environment Variables

  • OPENAPI_URL: URL to the OpenAPI YAML file (optional if using OPENAPI_FILE_PATH)
  • OPENAPI_FILE_PATH: Path to the local OpenAPI YAML file (optional if using OPENAPI_URL)
  • API_URL: Base URL for the API server
  • CUSTOM_HEADERS: (optional) JSON string for custom headers, e.g. '{"Authorization":"Bearer ..."}'

Example (Using PokeAPI)

    "openapi-fetch-mcp": {
      "command": "npx",
      "args": ["openapi-fetch-mcp"],
      "env": {
        "OPENAPI_URL": "https://raw.githubusercontent.com/PokeAPI/pokeapi/refs/heads/master/openapi.yml",
        "API_URL": "https://pokeapi.co"
      }
    }

License

MIT

Author

makomori

日本語

from github.com/makomori/openapi-fetch-mcp

Install Openapi Fetch in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install openapi-fetch-mcp

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add openapi-fetch-mcp -- npx -y openapi-fetch-mcp

FAQ

Is Openapi Fetch MCP free?

Yes, Openapi Fetch MCP is free — one-click install via Unyly at no cost.

Does Openapi Fetch need an API key?

No, Openapi Fetch runs without API keys or environment variables.

Is Openapi Fetch hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Openapi Fetch in Claude Desktop, Claude Code or Cursor?

Open Openapi Fetch on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Openapi Fetch with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs