RC

reapi-com/mcp-openapi

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

90 stars 17 forks Качество 60 Тренд 15MIT

reapi-com/mcp-openapi - кандидат на сервер MCP, импортированный из https://github.com/reapi-com/mcp-openapi.

Обзор

reapi-com/mcp-openapi - кандидат на сервер MCP, импортированный из https://github.com/reapi-com/mcp-openapi.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который загружает и обслуживает несколько спецификаций OpenAPI для интеграции IDE с поддержкой LLM. Этот сервер служит мостом между спецификациями OpenAPI и инструментами разработки на базе LLM, такими как Cursor и другие редакторы кода.

Особенности

Загружает несколько спецификаций OpenAPI из каталога Экспозиция операций и схем API через протокол MCP Позволяет LLM понимать и работать с вашими API непосредственно в вашей IDE.

  • Поддерживает отнесенные схемы для полного контекста API Поддерживает каталог всех доступных API

##Перенаправлено с ReAPI

Этот MCP-сервер с открытым исходным кодом спонсируется ReAPI, платформой API следующего поколения, которая упрощает разработку и тестирование API. Хотя этот сервер обеспечивает локальную интеграцию OpenAPI для разработки, ReAPI предлагает два мощных модуля:

API CMS

Дизайн API с использованием интуитивно понятного редактора без кода

  • автоматически генерировать и публиковать спецификации OpenAPI; Сотрудничество с членами команды в режиме реального времени
  • Контроль версий и управление изменениями

API тестирование

Самое удобное для разработчиков решение для тестирования API без кода Создание и управление тестовыми кейсами с интуитивно понятным интерфейсом

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

@reapi/mcp-openapi

A Model Context Protocol (MCP) server that loads and serves multiple OpenAPI specifications to enable LLM-powered IDE integrations. This server acts as a bridge between your OpenAPI specifications and LLM-powered development tools like Cursor and other code editors.

Features

  • Loads multiple OpenAPI specifications from a directory
  • Exposes API operations and schemas through MCP protocol
  • Enables LLMs to understand and work with your APIs directly in your IDE
  • Supports dereferenced schemas for complete API context
  • Maintains a catalog of all available APIs

Powered by ReAPI

This open-source MCP server is sponsored by ReAPI, a next-generation API platform that simplifies API design and testing. While this server provides local OpenAPI integration for development, ReAPI offers two powerful modules:

🎨 API CMS

  • Design APIs using an intuitive no-code editor
  • Generate and publish OpenAPI specifications automatically
  • Collaborate with team members in real-time
  • Version control and change management

🧪 API Testing

  • The most developer-friendly no-code API testing solution
  • Create and manage test cases with an intuitive interface
  • Powerful assertion and validation capabilities
  • Serverless cloud test executor
  • Perfect for both QA teams and developers
  • CI/CD integration ready

Try ReAPI for free at reapi.com and experience the future of API development.

Cursor Configuration

To integrate the MCP OpenAPI server with Cursor IDE, you have two options for configuration locations:

Create a .cursor/mcp.json file in your project directory. This option is recommended as it allows you to maintain different sets of specs for different projects

{
  "mcpServers": {
    "@reapi/mcp-openapi": {
      "command": "npx",
      "args": ["-y", "@reapi/mcp-openapi@latest", "--dir", "./specs"],
      "env": {}
    }
  }
}

Tip: Using a relative path like ./specs makes the configuration portable and easier to share across team members.

Note: We recommend using @latest tag as we frequently update the server with new features and improvements.

Important: Project-specific configuration helps manage LLM context limits. When all specifications are placed in a single folder, the combined metadata could exceed the LLM’s context window, leading to errors. Organizing specs by project keeps the context size manageable.

Option 2: Global Configuration

Create or edit ~/.cursor/mcp.json in your home directory to make the server available across all projects:

{
  "mcpServers": {
    "@reapi/mcp-openapi": {
      "command": "npx",
      "args": ["-y", "@reapi/mcp-openapi@latest", "--dir", "/path/to/your/specs"],
      "env": {}
    }
  }
}

Enable in Cursor Settings

After adding the configuration:

  1. Open Cursor IDE
Открыть полный README на GitHub

Установка

npx -y @reapi/mcp-openapi@latest --dir ./specs
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "@reapi/mcp-openapi": { "command": "npx", "args": ["-y", "@reapi/mcp-openapi@latest", "--dir", "./specs"], "env": {} } } }