openapi-to-mcp
MCP Scribe
모든 OpenAPI 스키마를 프로덕션급 MCP 서버로 변환하세요.
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 전송에만 필요한 uvicorn과 starlette를 설치합니다. 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은 사전에 변환되며, 외부 및 재귀적 |
코드 없는 도구 생성 | 작업당 하나의 MCP 도구를 JSON Schema 2020-12로 생성하며, 전체 |
자격 증명 격리 | 스펙에 선언된 자격 증명 매개변수는 도구 스키마에서 제거되고 요청 시 주입됩니다. 모델이 보유하지 않은 비밀을 생성하도록 요청받는 일은 없습니다. |
엔터프라이즈 인증 | API 키(헤더, 쿼리, 쿠키), bearer, HTTP basic, 자동 갱신이 포함된 OAuth2 클라이언트 자격 증명, 임의의 정적 헤더 — 구성 가능하며 모든 요청에 적용됩니다. |
멀티 테넌트 격리 | 헤더 허용 목록과 fail-closed 적용을 통한 호출자별 자격 증명 전달로, 하나의 공유 서버가 하나의 공유 ID나 하나의 공유 청구서를 의미하지 않습니다. |
기본 제공 복원력 |
|
기본적으로 안전한 재시도 | POST와 PATCH는 명시적으로 활성화하지 않는 한 절대 재시도되지 않습니다. 과금 가능한 요청을 다시 보내는 것은 실패보다 더 나쁜 것으로 간주됩니다. |
공격 표면 제어 | 태그, 경로 정규식, 메서드 또는 |
컨텍스트 거버넌스 | 응답은 구성 가능한 예산으로 잘리며, 모델에게 요청을 좁히는 방법을 알려주는 힌트가 포함됩니다. |
이중 전송 | 개인별 사용자 서버용 stdio, 공유 및 수평 확장 배포를 위한 |
비밀 정보 관리 |
|
운영 도구 |
|
배포 가능한 산출물 |
|
문서
문서 | 내용 |
완전한 사용자 가이드 — 멘탈 모델, 전송, 자격 증명, 멀티 테넌시, 필터링, 스키마 셰이핑, 안정성, 디버깅, 배포, 문제 해결. | |
전체 참조 — 모든 CLI 명령과 플래그, 유형과 기본값을 포함한 모든 구성 키, 전체 환경 변수 표, Python API, 예외 계층 구조. | |
기여자 및 에이전트 가이드 — 명령, 모듈별 아키텍처, 핵심 불변 조건, 규칙, 주의 사항. | |
에이전트 스킬 정의 — 자율 에이전트가 명령을 선택하고, 설정을 검증하고, 자격 증명을 처리하는 방법. |
라이선스
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}
}This server cannot be installed
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceAutomatically converts any OpenAPI specification into an MCP server, exposing all HTTP endpoints as callable tools with support for various authentication methods and request types.2
- FlicenseNot gradedqualityDmaintenanceDynamically converts any API with an OpenAPI v3 specification into MCP tools for AI assistants. It supports multiple authentication methods including OAuth2, Bearer tokens, and API keys for flexible integration.
- AlicenseNot gradedqualityAmaintenanceTurns any OpenAPI/Swagger API into MCP tools, enabling AI assistants to call REST API endpoints directly.2MIT
- AlicenseNot gradedqualityDmaintenanceExposes OpenAPI endpoints as MCP tools, enabling LLMs to discover and interact with REST APIs through the MCP protocol.13MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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