OAS-MCP
About
OAS-MCP is a Go application that automatically generates a Model Context Protocol (MCP) server and tools from an OpenAPI specification (YAML or JSON). It is designed for developers who want to expose REST API endpoints as MCP tools.
Details
- Author
- nonchan7720
- Downloads
- 286
- Categories
- Other, API
Jump to
- Auto-generates Go client code from OpenAPI specs
- Builds MCP servers using generated client code
- Provides each API endpoint as a separate MCP tool
- Uses SSE (Server-Sent Events) for real-time communication
Clone the repository, install dependencies with go mod download, then run go run cmd/main.go -path=./api/openapi.yaml -output=./pkg/client to generate client code and MCP server. Alternatively, use go generate ./....
OAS-MCP
OpenAPI仕様からModel Context Protocol(MCP)サーバーを自動生成するツール
概要
OAS-MCPは、OpenAPI仕様書(YAML/JSON)からModel Context Protocol(MCP)サーバーとツールを自動的に生成するGoアプリケーションです。OpenAPIの各エンドポイントはMCPツールとして利用可能になります。
機能
- OpenAPI仕様からGoクライアントコードを自動生成
- 生成したクライアントコードを利用したMCPサーバーの構築
- 各APIエンドポイントをMCPツールとして提供
- SSE (Server-Sent Events) を活用したリアルタイム通信
必要条件
- Go 1.24以上
インストール方法
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




