drio
Open app

OpenAPI MCP Server

Source

OpenAPI MCP Server

Catalog onlyCatalog onlySTDIO

Overview

OpenAPI MCP Server is a project that installs the Model Context Protocol Server, providing configured REST APIs as context to Large Language Models (LLMs). It enables LLMs to interact with REST APIs and perform API calls using LLM prompts.

To use the OpenAPI MCP Server, install the package via pip, create a .env file with the required values for OPENAPI_SPEC_PATH and API_BASE_URL, and run the server using the command uv run openapi_mcp_server.

  • Supports HTTP API calls: GET, PUT, POST, PATCH. - Configurable environment variables for API interaction. - Easy installation and setup process.
  1. Enabling LLMs to make API calls for data retrieval.
  2. Integrating LLMs with existing REST APIs for enhanced functionality.
  3. Facilitating automated testing of API endpoints using LLMs.

Add to your AI client

Use these steps to connect OpenAPI MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "openapi-mcp-server-rahgadda": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-openapi-mcp-server-rahgadda"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "openapi-mcp-server-rahgadda": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-openapi-mcp-server-rahgadda"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "openapi-mcp-server-rahgadda": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-openapi-mcp-server-rahgadda"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "openapi-mcp-server-rahgadda": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-openapi-mcp-server-rahgadda"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "openapi-mcp-server-rahgadda": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-openapi-mcp-server-rahgadda"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "openapi-mcp-server-rahgadda": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-openapi-mcp-server-rahgadda"
      ]
    }
  }
}

FAQ

What programming language is OpenAPI MCP Server written in?

OpenAPI MCP Server is written in Python.

Is there a license for OpenAPI MCP Server?

Yes, it is licensed under the MIT license.

How can I contribute to the project?

Contributions are welcome, and you can submit a Pull Request on GitHub.