MCP.so
ログイン

OPENAPI Specifications => MCP (Model Context Protocol) Tools

@2013xile

OPENAPI Specifications => MCP (Model Context Protocol) Tools について

OpenAPI specifications => MCP (Model Context Protocol) tools

基本情報

カテゴリ

その他

ライセンス

MIT

ランタイム

node

トランスポート

stdio

公開者

2013xile

設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is OPENAPI Specifications => MCP (Model Context Protocol) Tools?

A utility library that converts OpenAPI specifications into MCP tools, enabling faster development of MCP servers based on OpenAPI definitions. It is designed for developers who want to expose REST APIs as tools in the Model Context Protocol ecosystem.

How to use OPENAPI Specifications => MCP (Model Context Protocol) Tools?

Install the package and import the Converter class. Instantiate it with optional baseURL and httpClient, then call converter.load({ specs }) to load OpenAPI specifications. Retrieve the tool list via converter.getToolsList() and the tool caller via converter.getToolsCaller(). Use these with an MCP server (e.g., StdioServerTransport) to handle tool listing and execution.

Key features of OPENAPI Specifications => MCP (Model Context Protocol) Tools

  • Converts OpenAPI specs into MCP tool definitions
  • Supports custom base URL and HTTP client
  • Provides both tool list and tool caller functions
  • Works seamlessly with StdioServerTransport
  • Enables rapid MCP server development from APIs

Use cases of OPENAPI Specifications => MCP (Model Context Protocol) Tools

  • Create an MCP server from any REST API that has an OpenAPI specification
  • Expose API operations as tools for AI assistants or agents
  • Prototype MCP integrations quickly without writing boilerplate code

FAQ from OPENAPI Specifications => MCP (Model Context Protocol) Tools

What does this library do?

It converts OpenAPI specifications into MCP tools, providing a tool list and a tool caller that can be used to build an MCP server.

What are the runtime dependencies?

The library requires TypeScript/Node.js and the @modelcontextprotocol/sdk package for the MCP server infrastructure.

Can I use a custom HTTP client?

Yes, you can pass an httpClient that implements the HTTPClient interface, which includes a request method. Example: new Converter({ httpClient: axios }).

How do I load multiple OpenAPI specifications?

Pass the specifications as an object to converter.load({ specs }). The specs parameter can be a single spec or multiple specs depending on your implementation.

Is StdioServerTransport the only supported transport?

The example uses StdioServerTransport, but the library is transport‑agnostic; other MCP transports can be used as long as the server is built with the generated tools.

コメント

「その他」の他のコンテンツ