MCP.so
登录

OpenAPI MCP Server

@3loc

基本信息

分类

其他

传输方式

stdio

作者

3loc

关于 OpenAPI MCP Server

This is a skeleton project that you can use as a starting point for building your own MCP server. The example addition function demonstrates how to implement handlers across all three protocols.

OpenAPI MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "openapi-mcp-server-3loc": {
      "command": "docker",
      "args": [
        "compose",
        "build"
      ]
    }
  }
}

OpenAPI MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

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

概览

What is OpenAPI MCP Server?

OpenAPI MCP Server is a skeleton project for building your own Model Context Protocol (MCP) server. It includes an example addition function and demonstrates how to implement handlers across all three supported protocols: Standard I/O (stdio), Server-Sent Events (SSE), and OpenAPI/REST endpoints.

How to use OpenAPI MCP Server?

Run the server using Docker or Docker Compose. Set the MODE environment variable to stdio, sse, or openapi to select the transport mode. Launch a specific service (e.g., docker compose up sse-mcp-server) or run directly with Docker (e.g., docker run -i --rm -e MODE=stdio 3loc/openapi-mcp-server). Configure the server using an mcp.json file.

Key features of OpenAPI MCP Server

  • Supports three transport modes: stdio, SSE, and OpenAPI
  • Provides a starting point for building custom MCP servers
  • Includes an example addition function handler
  • Deployable via Docker or Docker Compose
  • Configurable through environment variable MODE
  • Can be used with mcp.json configuration file

Use cases of OpenAPI MCP Server

  • Starting point for developing a new MCP server
  • Testing and prototyping MCP functionality across different transports
  • Demonstrating how to implement MCP handlers for all three protocols
  • Quick local deployment of a basic MCP server using Docker

常见问题

1

What operating modes does OpenAPI MCP Server support?

It supports three modes: `stdio` (standard I/O), `sse` (Server-Sent Events on port 8001), and `openapi` (OpenAPI/REST on port 8002).

2

How do I run OpenAPI MCP Server in SSE mode?

Use `docker run -p 8001:8000 --rm -e MODE=sse 3loc/openapi-mcp-server` or `docker compose up sse-mcp-server`.

3

How do I configure OpenAPI MCP Server?

Create an `mcp.json` file with the appropriate command/args for stdio mode or a URL for SSE mode. The server reads the `MODE` environment variable to select the transport.

4

What is included as an example in OpenAPI MCP Server?

The server includes an example addition function that demonstrates how to implement handlers across all three protocols.

5

What are the runtime requirements for OpenAPI MCP Server?

The server runs inside a Docker container. The image is `3loc/openapi-mcp-server`. No other dependencies are listed.

评论

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