About mcp-openapi
mcp-openapi is a proof-of-concept MCP tool for generating method stubs from an OpenAPI schema file. It is intended for developers and can also run as a container for distributed use.
Key features
- 01Read an OpenAPI schema file
- 02Generate method stubs
- 03Run as a container
Use cases
- 01Generate stubs from an API schema
- 02Run the tool in a containerized environment
MCP support
The project is described as an MCP tool that generates method stubs from OpenAPI schemas; the README does not specify which tools or resources it exposes to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMESummary
A Model Context Protocol (MCP) Tool.
The tool reads an OpenAPI Schema file and generates the stubs to use the respective methods.
The tool can run as a container to easier support use in distributed environments.
What next...
This was written as a proof of concept.
It'll be tidied up at some point... I'd like to move it all to a Class.
Feel free to plagiarise... just keep to the licensing terms.
Acknowledgements
There's no disguising it.. this is based (rather heavily) on https://github.com/matthewhand/mcp-openapi-proxy
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.