MCP.so
登录

OAS-MCP

@nonchan7720

关于 OAS-MCP

openapi to mcp server

基本信息

分类

其他

许可证

MIT license

运行时

go

传输方式

stdio

发布者

nonchan7720

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is OAS-MCP?

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.

How to use OAS-MCP?

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 ./....

Key features of OAS-MCP

  • 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

Use cases of OAS-MCP

  • Rapidly bridging existing REST APIs to MCP-based AI assistants
  • Exposing OpenAPI endpoints as tools for AI agents
  • Automating MCP server creation from API specifications

FAQ from OAS-MCP

What are the prerequisites?

Go version 1.24 or higher is required.

What transport mechanism does OAS-MCP use?

It uses Server-Sent Events (SSE) for real-time communication.

What are the main dependencies?

It relies on ogen-go/ogen for OpenAPI Go code generation, mark3labs/mcp-go for MCP server implementation, and dave/jennifer for code generation.

评论

其他 分类下的更多 MCP 服务器