Skip to main content
Glama
The-Swarm-Corporation

openapi-to-mcp

MCP Scribe

모든 OpenAPI 스키마를 프로덕션급 MCP 서버로 변환하세요.

PyPI Python License

Swarms GitHub Swarms website Discord Twitter


Related MCP server: Any API MCP Server

개요

MCP Scribe를 OpenAPI 스키마에 지정하세요. 그러면 MCP 서버가 생성됩니다.

스펙의 모든 작업은 모델이 호출할 수 있는 도구가 되며, JSON Schema, 자격 증명, 재시도, 속도 제한, 응답 형성은 이미 처리되어 있습니다. 유지 관리할 생성 코드도, 동기화를 유지할 어댑터 계층도 없습니다. 스펙이 진실의 원천이며, 서버는 시작 시 스펙에서 파생됩니다.

MCP Scribe는 실제 API를 언어 모델 앞에 두는 팀을 위해 설계되었습니다. 여기서 중요한 실패 모드는 자격 증명 유출, 과금 대상 엔드포인트에 대한 통제 불능 재시도, 모델이 탐색하기에 너무 큰 도구 표면입니다.


설치

pip install mcp-scribe

소스에서 전역 CLI로 설치:

git clone https://github.com/kyegomez/mcp-scribe && cd mcp-scribe
uv tool install --editable ".[http]"

http 추가 기능은 HTTP 전송에만 필요한 uvicornstarlette를 설치합니다. stdio 서버는 둘 다 필요하지 않습니다.

요구 사항: Python 3.10 – 3.13.


빠른 시작

공유 서버 배포

명령 하나면 됩니다. 스펙을 넣으면 서버가 실행됩니다.

mcp-scribe deploy https://api.swarms.world/openapi.json --port 8000

해당 서버 호출

import asyncio
import os
import sys

from dotenv import load_dotenv
from mcp import ClientSession
from mcp.client.streamable_http import streamable_http_client
from mcp.shared._httpx_utils import create_mcp_http_client

load_dotenv()

# Streamable HTTP path defaults to /mcp (see transport.path).
MCP_URL = "http://127.0.0.1:8000/mcp"


async def main() -> None:
    api_key = os.environ.get("SWARMS_API_KEY")
    if not api_key:
        sys.exit(
            "set SWARMS_API_KEY first: export SWARMS_API_KEY=sk-..."
        )

    http = create_mcp_http_client(headers={"x-api-key": api_key})
    async with http, streamable_http_client(
        MCP_URL, http_client=http
    ) as (read, write), ClientSession(read, write) as session:
        await session.initialize()
        result = await session.call_tool(
            "get_available_models_v1_models_available_get",
            {},
        )
        print(result.content[0].text)


if __name__ == "__main__":
    asyncio.run(main())

CLI 명령

Usage: mcp-scribe [OPTIONS] COMMAND [ARGS]...

Turn any OpenAPI schema URL into a production-grade MCP server.

Options:
  --help          Show this message and exit.

Commands:
  serve     Run the MCP server.
  deploy    Serve over HTTP with production defaults. The short path to a shared server.
  inspect   Show the tools a spec produces — the fastest way to validate a setup.
  call      Invoke one tool from the terminal — the same code path the server uses.
  generate  Write a self-contained, deployable MCP server project for a spec.
  install   Build the server and register it with your MCP client in one step.
  version   Print the version.

주요 기능

기능

제공 내용

범용 스펙 수집

URL, 파일 또는 stdin에서 OpenAPI 3.1, 3.0, Swagger 2.0을 지원합니다 — JSON 또는 YAML. Swagger 2.0은 사전에 변환되며, 외부 및 재귀적 $refs는 미리 가져와서 해석됩니다.

코드 없는 도구 생성

작업당 하나의 MCP 도구를 JSON Schema 2020-12로 생성하며, 전체 style/explode 매트릭스, 재귀 모델용 $defs, 도구 호출 정확성을 위한 자동 본문 평탄화를 포함합니다.

자격 증명 격리

스펙에 선언된 자격 증명 매개변수는 도구 스키마에서 제거되고 요청 시 주입됩니다. 모델이 보유하지 않은 비밀을 생성하도록 요청받는 일은 없습니다.

엔터프라이즈 인증

API 키(헤더, 쿼리, 쿠키), bearer, HTTP basic, 자동 갱신이 포함된 OAuth2 클라이언트 자격 증명, 임의의 정적 헤더 — 구성 가능하며 모든 요청에 적용됩니다.

멀티 테넌트 격리

헤더 허용 목록과 fail-closed 적용을 통한 호출자별 자격 증명 전달로, 하나의 공유 서버가 하나의 공유 ID나 하나의 공유 청구서를 의미하지 않습니다.

기본 제공 복원력

Retry-After를 준수하는 full-jitter 지수 백오프, 호스트별 회로 차단기, 토큰 버킷, 동시성 상한, 도구 호출당 벽시계 예산을 제공합니다.

기본적으로 안전한 재시도

POST와 PATCH는 명시적으로 활성화하지 않는 한 절대 재시도되지 않습니다. 과금 가능한 요청을 다시 보내는 것은 실패보다 더 나쁜 것으로 간주됩니다.

공격 표면 제어

태그, 경로 정규식, 메서드 또는 operationId로 필터링합니다. --read-only는 한 번의 플래그로 서버를 GET/HEAD/OPTIONS로 제한합니다.

컨텍스트 거버넌스

응답은 구성 가능한 예산으로 잘리며, 모델에게 요청을 좁히는 방법을 알려주는 힌트가 포함됩니다.

이중 전송

개인별 사용자 서버용 stdio, 공유 및 수평 확장 배포를 위한 /health 프로브와 무상태 세션을 갖춘 스트리밍 HTTP.

비밀 정보 관리

.env 파일, MCP_SCRIBE_* 환경 변수, 구성의 ${VAR} 보간을 지원합니다. 비밀은 메모리에서 SecretStr로 저장되고 출력에서 가려집니다.

운영 도구

inspect로 아무것도 시작하지 않고 설정을 검증하고, call --dry-run으로 정확한 나가는 요청을 확인하며, 구조화된 JSON 로깅과 핫 스펙 리로드를 제공합니다.

배포 가능한 산출물

generate는 Dockerfile, 고정된 요구 사항, 구성, 오프라인 시작을 위한 벤더링된 스펙을 포함한 자체 포함 프로젝트를 생성합니다.


문서

문서

내용

docs/DOCS.md

완전한 사용자 가이드 — 멘탈 모델, 전송, 자격 증명, 멀티 테넌시, 필터링, 스키마 셰이핑, 안정성, 디버깅, 배포, 문제 해결.

docs/REFERENCE.md

전체 참조 — 모든 CLI 명령과 플래그, 유형과 기본값을 포함한 모든 구성 키, 전체 환경 변수 표, Python API, 예외 계층 구조.

CLAUDE.md

기여자 및 에이전트 가이드 — 명령, 모듈별 아키텍처, 핵심 불변 조건, 규칙, 주의 사항.

MCP_SCRIBE_SKILL.md

에이전트 스킬 정의 — 자율 에이전트가 명령을 선택하고, 설정을 검증하고, 자격 증명을 처리하는 방법.


라이선스

Apache-2.0. LICENSE를 참조하세요.


인용

@misc{mcpscribe2026,
    title   = {mcp-scribe: production-grade MCP servers from OpenAPI schemas},
    author  = {Gomez, Kye},
    year    = {2026},
    url     = {https://github.com/kyegomez/mcp-scribe}
}
@misc{mcp2024,
    title   = {Model Context Protocol},
    author  = {Anthropic},
    year    = {2024},
    url     = {https://modelcontextprotocol.io}
}
A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Point Gecko at an OpenAPI spec; get first-call-correct, auth-hidden agent tools.

  • Free public MCP for AI agents — 193 tools, 44 workflows. No API key.

  • Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/The-Swarm-Corporation/mcp-scribe'

If you have feedback or need assistance with the MCP directory API, please join our Discord server