mcpField
O
OAS-MCP

OAS-MCP

Local
github.com/nonchan7720Developer Tools0Updated 74w ago

About OAS-MCP

OAS-MCP is a Go application that generates an MCP server from OpenAPI specifications in YAML or JSON. It exposes API endpoints as MCP tools and generates the corresponding Go client code.

Key features

  1. 01Generate Go client code from OpenAPI
  2. 02Build an MCP server
  3. 03Expose API endpoints as MCP tools
  4. 04Support real-time communication with SSE

Use cases

  1. 01Make existing OpenAPI endpoints available as MCP tools
  2. 02Generate a Go API client
  3. 03Communicate in real time over SSE

MCP support

The project generates an MCP server from an OpenAPI specification and exposes each API endpoint as a tool for MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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以上

インストール方法

# リポジトリをクローン
git clone https://github.com/nonchan7720/oas-mcp.git
cd oas-mcp

# 依存関係のインストール
go mod download

使用方法

# OpenAPI仕様からクライアントコードを生成
go run cmd/main.go -path=./api/openapi.yaml -output=./pkg/client

# または、go:generateを使用
go generate ./...

主な依存ライブラリ

ライセンス

このプロジェクトはオープンソースソフトウェアとして提供されています。詳細についてはLICENSEファイルをご覧ください。

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.