MCP.so
登录

OPENAPI Specifications => MCP (MCP) Tools

@2013xile

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

2013xile

关于 OPENAPI Specifications => MCP (MCP) Tools

OpenAPI specifications => MCP (Model Context Protocol) tools

OPENAPI Specifications => MCP (MCP) Tools 配置

暂无标准配置

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

代码仓库

OPENAPI Specifications => MCP (MCP) Tools 工具

工具列表暂未提供

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

工具是从 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

常见问题

1

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.

2

What are the runtime dependencies?

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

3

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 })`.

4

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.

5

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.

评论

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