mcpField
O
Openapi2mcp

Openapi2mcp

Local
github.com/oil-oilDeveloper Tools0

About Openapi2mcp

OpenAPI2MCP (Model Context Protocol) that allows AI clients to call any OpenAPI-compatible REST API through the MCP interface. This tool converts OpenAPI specifications into MCP tools, enabling AI clients to interact with external APIs seamlessly

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"openapi2mcp-oil-oil": {
"command": "npx",
"args": [
"-y",
"openapi2mcp"
],
"env": {
"TRANSPORT_TYPE": "<TRANSPORT_TYPE>",
"API_BASE_URL": "<API_BASE_URL>",
"OPENAPI_SPEC_URL": "<OPENAPI_SPEC_URL>",
"HEADERS": "<HEADERS>"
}
}
}
}
Run commandnpx -y openapi2mcp
Environment variables to set
TRANSPORT_TYPE
API_BASE_URL
OPENAPI_SPEC_URL
HEADERS

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmopenapi2mcp

Tools

19

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
bodyobjectYes
body.idintegerNo
body.namestringYes
body.categoryobjectNo
body.category.idintegerNo
body.category.namestringNo
body.photoUrlsarrayYes
body.tagsarrayNo
body.statusenumNoavailable | pending | sold

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

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.