Enables AI to discover and interact with multiple Swagger/OpenAPI documented APIs, providing tools for listing endpoints, inspecting data models, and automatically generating TypeScript code for API integration.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Swagger MCP (Multi-API Edition)list the endpoints for the petstore api"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Swagger MCP (Multi-API Edition)
English | 한국어
AI가 Swagger/OpenAPI 문서를 이해하고 활용할 수 있도록 도와주는 MCP 서버입니다.
이 버전은 Vizioz/Swagger-MCP를 포크하여 다중 API 지원 기능을 추가한 커스텀 버전입니다.
주요 기능
다중 API 지원:
apis.yaml설정 파일로 여러 API를 단일 MCP 서버에서 관리API 목록 조회:
listApis도구로 설정된 모든 API 확인엔드포인트 조회: 특정 API의 모든 엔드포인트 목록 조회
모델 조회: 특정 엔드포인트에서 사용하는 모델 정보 조회
TypeScript 코드 생성: 모델 및 MCP 도구 정의 코드 자동 생성
캐싱: Swagger 정의를 로컬에 캐싱하여 빠른 조회
빠른 시작
1. Docker로 실행 (권장)
2. API 설정 파일 생성
프로젝트의 에 apis.yaml 파일을 생성합니다.
apis.yaml.example을 참고하여 작성하세요:
중요:
apis.yaml은 API URL 등 민감한 정보를 포함할 수 있으므로, 프로젝트의.gitignore에 추가하는 것을 권장합니다.
3. Cursor MCP 설정
프로젝트의 .cursor/mcp.json 파일에 추가:
중요:
/path/to/your/project/.cursor/apis.yaml경로를 실제 프로젝트 경로로 변경하세요.
4. 추가 API 설정 (선택)
apis.yaml 파일에 API를 추가/수정:
사용 가능한 도구
listApis
설정된 모든 API 목록을 조회합니다.
listEndpoints
특정 API의 모든 엔드포인트를 조회합니다.
listEndpointModels
특정 엔드포인트에서 사용하는 모델을 조회합니다.
generateModelCode
모델의 TypeScript 인터페이스 코드를 생성합니다.
generateEndpointToolCode
엔드포인트를 위한 MCP 도구 정의 코드를 생성합니다.
version
MCP 서버 버전을 반환합니다.
사용 예시
AI에게 API 정보 요청하기
로컬 개발
요구사항
Node.js v20 이상
npm 또는 pnpm
설치 및 빌드
Docker Compose
파일 구조
기존 버전과의 차이점
기능 | 기존 버전 | Multi-API Edition |
API 개수 | 1개 (CLI 인자) | 무제한 (설정 파일) |
API 추가 | MCP 서버 재등록 | apis.yaml 수정만 |
API 선택 | 불가 |
|
설정 방식 | CLI 인자 | YAML 설정 파일 |
라이선스
MIT License - 원본 프로젝트: Vizioz/Swagger-MCP