openapi-to-mcp

openapi-to-mcp

3.4

If you are the rightful owner of openapi-to-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

openapi-to-mcp is a tool that converts OpenAPI specifications into Model Context Protocol (MCP) tools, allowing API endpoints to be exposed as strongly typed tools.

openapi-to-mcp is a powerful utility designed to transform OpenAPI specifications into Model Context Protocol (MCP) tools. This tool allows developers to expose API endpoints as strongly typed tools, facilitating seamless integration and interaction with APIs. It supports OpenAPI versions 2.0 and 3.0, enabling the use of both JSON and YAML formats for local or remote specifications. The tool provides flexibility in naming strategies for tools and supports various authentication methods, including bearer tokens and OAuth2. With openapi-to-mcp, developers can easily manage API interactions, ensuring that all path, query, and JSON body parameters are exposed and responses are returned as-is. The tool is available as a NuGet package and can be installed globally for ease of use.

Features

  • Supports OpenAPI 2.0 and 3.0 specifications in JSON/YAML format.
  • Allows customization of tool names and descriptions using OpenAPI custom extensions.
  • Supports bearer token and OAuth2 authentication methods.
  • Provides flexibility in tool naming strategies.
  • Exposes all path, query, and JSON body parameters.