Cover image
Try Now
2025-03-30

Allow AI to wade through complex OpenAPIs using Simple Language

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

OpenAPI MCP Server

This is a Model Context Protocol (MCP) server that reads an OpenAPI specification file and exposes each API operation as a tool for Claude AI to use.

Features

  • Automatically parses OpenAPI YAML files
  • Generates MCP tools for each API operation
  • Handles path parameters, query parameters, and request bodies
  • Makes live API calls when Claude uses the tools
  • Easy integration with Claude Desktop

Installation

# Clone the repository
git clone https://github.com/yourusername/openapi-mcp-server.git
cd openapi-mcp-server

# Install dependencies
npm install

Usage

  1. Place your OpenAPI YAML file in the project directory or provide a path to it via environment variables.

  2. Set up environment variables (optional):

# Create a .env file
echo "DEBUG=true" > .env
echo "OPENAPI_FILE=./path/to/your/openapi.yaml" >> .env
  1. Initialize the server with Claude Desktop:
npm run init
  1. Or run the server manually:
npm start

Configuration

You can configure the server using environment variables:

  • DEBUG: Set to true to enable debug logging (default: false)
  • OPENAPI_FILE: Path to your OpenAPI YAML file (default: ./openapi.yaml)

How it Works

The server reads your OpenAPI specification file and:

  1. Extracts all paths and operations
  2. Creates a tool for each operation with appropriate input schemas
  3. When Claude calls a tool, the server makes the corresponding API request
  4. The response is returned to Claude for analysis

Example

With an OpenAPI spec like:

paths:
  /users:
    get:
      operationId: listUsers
      summary: List all users
      ...

Claude can call the listUsers tool, and the server will make a GET request to /users on your behalf.

License

MIT

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • albert tan
  • Japanese education, creating tailored learning experiences.

  • Lists Tailwind CSS classes in monospaced font

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • jae-jae
  • MCP server for fetch web page content using Playwright headless browser.

  • HiveNexus
  • An AI chat bot for small and medium-sized teams, supporting models such as Deepseek, Open AI, Claude, and Gemini. 专为中小团队设计的 AI 聊天应用,支持 Deepseek、Open AI、Claude、Gemini 等模型。

  • ravitemer
  • A powerful Neovim plugin for managing MCP (Model Context Protocol) servers

  • patruff
  • Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools

    Reviews

    5 (1)
    Avatar
    user_p09rbv3F
    2025-04-16

    As a dedicated user of the waha-api-mcp-server by gabfr, I must say this server is a game-changer. It consistently delivers robust performance and seamless integration with various applications. The user-friendly documentation and the active community make it an invaluable tool for developers looking to enhance their MCP applications. Highly recommended!