OpenAPI Toolkit MCP Server
Fetch, validate, and generate code or curl from any OpenAPI or Swagger spec - all from a single URL.
What is an MCP Server?
MCP Info
Image Building Info
Available Tools (5)
| Tools provided by this Server |
Short Description |
create_csharp_snippet |
Generate a C# code snippet for a given operation ID from a URL OR a raw JSON string or file contents pointing to an OpenAPI or Swagger JSON document. |
generate_curl_command |
Generate a cURL command for a given operation ID from a URL OR a raw JSON string or file contents pointing to an OpenAPI or Swagger JSON document. |
get_known_responses |
Analyze an OpenAPI or Swagger document provided as a URL OR a raw JSON string or file contents, and list possible HTTP responses (status codes and descriptions) for the specified operation ID. |
get_list_of_operations |
Retrieve a list of operations (endpoints) from a URL OR a raw JSON string or file contents pointing to an OpenAPI or Swagger JSON document. |
validate_document |
Analyze and validate an OpenAPI or Swagger document provided as a URL OR a raw JSON string or file contents, and list possible errors, issues and problems with specification for the specified operation ID. |
Tools Details
Generate a C# code snippet for a given operation ID from a URL OR a raw JSON string or file contents pointing to an OpenAPI or Swagger JSON document.
| Parameters |
Type |
Description |
addressOrFileContents |
string |
URL address of the OpenAPI or Swagger JSON document OR raw JSON contents of the OpenAPI or Swagger specification. Can be provided as text or from a file. |
baseAddress |
string |
Optional base URL to be used in the generated cURL command. |
operationId |
string |
Operation ID for which to create a snippet. |
Generate a cURL command for a given operation ID from a URL OR a raw JSON string or file contents pointing to an OpenAPI or Swagger JSON document.
| Parameters |
Type |
Description |
addressOrFileContents |
string |
URL address of the OpenAPI or Swagger JSON document OR raw JSON contents of the OpenAPI or Swagger specification. Can be provided as text or from a file. |
baseAddress |
string |
Optional base URL to be used in the generated cURL command. |
operationId |
string |
Operation ID for which to generate the cURL command. |
Analyze an OpenAPI or Swagger document provided as a URL OR a raw JSON string or file contents, and list possible HTTP responses (status codes and descriptions) for the specified operation ID.
| Parameters |
Type |
Description |
addressOrFileContents |
string |
URL address of the OpenAPI or Swagger JSON document OR raw JSON contents of the OpenAPI or Swagger specification. Can be provided as text or from a file. |
operationId |
string |
Operation ID for which to retrieve known responses. |
Retrieve a list of operations (endpoints) from a URL OR a raw JSON string or file contents pointing to an OpenAPI or Swagger JSON document.
| Parameters |
Type |
Description |
addressOrFileContents |
string |
URL address of the OpenAPI or Swagger JSON document OR raw JSON contents of the OpenAPI or Swagger specification. Can be provided as text or from a file. |
Analyze and validate an OpenAPI or Swagger document provided as a URL OR a raw JSON string or file contents, and list possible errors, issues and problems with specification for the specified operation ID.
| Parameters |
Type |
Description |
addressOrFileContents |
string |
URL address of the OpenAPI or Swagger JSON document OR raw JSON contents of the OpenAPI or Swagger specification. Can be provided as text or from a file. |
Use this MCP Server
{
"mcpServers": {
"openapi": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MODE",
"mcp/openapi"
],
"env": {
"MODE": "Stdio"
}
}
}
}
Why is it safer to run MCP Servers with Docker?