MCP.so
登录

Openapi To MCP Server

@ouvreboite

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

ouvreboite

提交者

Jean-Baptiste Muscat

关于 Openapi To MCP Server

An MCP server for your API

Openapi To MCP Server 配置

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

{
  "mcpServers": {
    "petstore": {
      "command": "openapi-to-mcp",
      "args": [
        "https://petstore3.swagger.io/api/v3/openapi.json"
      ]
    }
  }
}

Openapi To MCP Server 工具

工具列表暂未提供

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

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

概览

What is Openapi To Mcp?

Openapi To Mcp is a .NET tool that reads an OpenAPI specification and exposes each API endpoint as a strongly typed MCP tool, enabling AI assistants to interact with any REST API via the Model Context Protocol.

How to use Openapi To Mcp?

Install the .NET global tool via dotnet tool install --global openapi-to-mcp or download the pre-built executable from releases. Then configure your MCP client (e.g., Claude Desktop) with the command openapi-to-mcp <open-api> where <open-api> is a URL or file path to the OpenAPI specification. Additional options include authentication (bearer token, OAuth2), tool naming strategy, and host override.

Key features of Openapi To Mcp

  • Converts OpenAPI 2.0 and 3.0 specs (JSON/YAML) into MCP tools
  • Supports bearer token and OAuth2 (client_credentials, password, refresh_token)
  • Configurable tool naming strategy: operationId, verb+path, or extension
  • Custom OpenAPI extensions for instructions, tool name, description, and enable/disable
  • Only STDIO transport; local file or remote URL specs supported
  • Tools are discarded if name does not match ^[a-zA-Z0-9_-]{1,64}$

Use cases of Openapi To Mcp

  • Expose a private API to an MCP-compatible AI assistant without writing custom adapters
  • Quickly turn any public API with an OpenAPI spec into consumable tools for agents
  • Integrate GitHub API (or similar) with authentication into a Claude Desktop session
  • Enable AI to call your REST endpoints using strongly typed parameters from the spec

常见问题

1

Does Openapi To Mcp support OpenAPI 3.1?

No, currently only OpenAPI 2.0 and 3.0 are supported. 3.1 will be supported once the underlying OpenAPI.NET library adds support.

2

What runtime or dependencies are required?

The tool runs on .NET and is installed as a .NET global tool. Pre-built executables are also available for systems without .NET.

3

Which MCP transport is used?

Only STDIO transport is currently supported – no SSE or other transports.

4

How does authentication work?

You can provide a bearer token via `--bearer-token` (added as `Authorization: Bearer` header) or use OAuth2 with the appropriate options (client credentials, password, or refresh token). The tool can read token URLs from the OpenAPI specification.

5

Can I override the host that the tool calls?

Yes, use the `--host-override` option. If not provided, the host is determined from the spec’s server URL (first absolute URL) or the remote spec’s own host.

评论

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