GO

gujord/openapi-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

70 stars 11 forks 품질 86 트렌드 14MIT

gujord/openapi-mcp는 MCP 서버 후보자로 https://github.com/gujord/openapi-mcp.에서 수입

개요

gujord/openapi-mcp는 MCP 서버 후보자로 https://github.com/gujord/openapi-mcp.에서 수입

개요(AI 번역)

** OpenAPI-MCP 프록시는 MCP 도구로 OpenAPI specs를 번역하고, 사용자 지정 래퍼없이 외부 API에 액세스 할 수 있습니다!**

AI 에이전트와 외부 API 사이의 간격을 브릿지

OpenAPI to Model Context Protocol (MCP) 프록시 서버는 dynamically translating으로 AI 에이전트와 외부 API 사이의 간격을 브릿지합니다. OpenAPI 사양은 표준화 된 ** MCP 도구 **, ** 자원 **, ** ** 전문가 **. 이 simplifies integration by eliminating a needs 용 custom API wrappers.

**FastMCP ** 공식 MCP 패턴과 모범 사례를 따르는 서버는 다음과 같습니다.

  • ✅ Official FastMCP Integration - 최적의 성능을위한 최신 FastMCP 프레임 워크를 사용합니다.

  • ✅Proper MCP Transport - stdio, SSE 및 스트리밍 가능한 HTTP 전송 지원

  • ✅ Modular Architecture - 의존성 주입에 대한 우려의 청소 분리

  • ✅Production Ready - 튼튼한 오류 처리, 종합 로깅 및 유형 안전

  • 등록: https://github.com/gujord/OpenAPI-MCP


유용한 것을 발견하면 GitHub에서 ⭐을 제공하십시오!


키 기능

핵심 기능

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

OpenAPI to Model Context Protocol (MCP)

OpenAPI-MCP exposes operations from an OpenAPI document as MCP tools. It also provides schema resources, a usage prompt, and request previews. The server uses FastMCP for MCP transport and tool registration.

Release candidate: 2.0.0rc1. This candidate targets FastMCP 4.1.6 and MCP Python SDK 2.3.0, with compatible minor updates allowed. Version 1.0.4 does not contain these fixes. Read the upgrade guide before upgrading an existing installation. See the review and validation record for tested versions, findings, and remaining work.

Install and run

Python 3.10 or later is required. Install the candidate explicitly:

pip install 'openapi-mcp-proxy==2.0.0rc1'

To use this checkout:

python -m venv .venv
source .venv/bin/activate
pip install -e .
OPENAPI_URL="./test/fixtures/petstore.json" \
MCP_ALLOWED_OPERATIONS='["GET /pets"]' \
SERVER_NAME="petstore" openapi-mcp

The default transport is stdio. A client launches the process and communicates through its standard input and output. OPENAPI_URL accepts a local JSON/YAML file or an HTTP(S) URL. Use specifications and API endpoints you trust.

A stdio client configuration can use the installed executable:

{
  "mcpServers": {
    "petstore": {
      "command": "/absolute/path/to/.venv/bin/openapi-mcp",
      "env": {
        "OPENAPI_URL": "/absolute/path/to/OpenAPI-MCP/test/fixtures/petstore.json",
        "SERVER_NAME": "petstore",
        "MCP_ALLOWED_OPERATIONS": "[\"GET /pets\"]"
      }
    }
  }
}

For Streamable HTTP:

OPENAPI_URL="./test/fixtures/petstore.json" \
SERVER_NAME="petstore" \
MCP_ALLOWED_OPERATIONS='["GET /pets"]' \
MCP_HTTP_ENABLED=true \
MCP_HTTP_PORT=8001 \
openapi-mcp

The MCP endpoint is http://127.0.0.1:8001/mcp. The supplied client configuration uses mcp-remote to connect stdio clients to HTTP. Client applications and mcp-remote are separate components and were not tested in the offline review.

Legacy SSE is available explicitly with MCP_TRANSPORT_TYPE=sse, at /sse. The default HTTP endpoint changed from /sse to /mcp; update existing clients.

Choose which API operations to expose

By default, no API operations are exposed. Set MCP_ALLOWED_OPERATIONS to a

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "petstore": { "command": "/absolute/path/to/.venv/bin/openapi-mcp", "env": { "OPENAPI_URL": "/absolute/path/to/OpenAPI-MCP/test/fixtures/petstore.json", "SERVER_NAME": "petstore", "MCP_ALLOWED_OPERATIONS": "[\"GET /pets\"]" } } } }