mcp/openapi

Verified Publisher

By mcp

Updated 10 months ago

Fetch, validate, and generate code or curl from any OpenAPI or Swagger spec - all from a single URL.

Image
Machine learning & AI
1

10K+

mcp/openapi repository overview

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

AttributeDetails
Docker Imagemcp/openapi
Authorlepoco
Repositoryhttps://github.com/lepoco/openapi.client

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/lepoco/openapi.client/blob/30bc5dfc95c789c0dadecf4816dcbf641b49aa3b/Dockerfile
Commit30bc5dfc95c789c0dadecf4816dcbf641b49aa3b
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/openapi --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceMIT License

Available Tools (5)

Tools provided by this ServerShort Description
create_csharp_snippetGenerate 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_commandGenerate 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_responsesAnalyze 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_operationsRetrieve 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_documentAnalyze 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

Tool: 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.

ParametersTypeDescription
addressOrFileContentsstringURL 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.
baseAddressstringOptional base URL to be used in the generated cURL command.
operationIdstringOperation ID for which to create a snippet.

Tool: 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.

ParametersTypeDescription
addressOrFileContentsstringURL 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.
baseAddressstringOptional base URL to be used in the generated cURL command.
operationIdstringOperation ID for which to generate the cURL command.

Tool: 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.

ParametersTypeDescription
addressOrFileContentsstringURL 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.
operationIdstringOperation ID for which to retrieve known responses.

Tool: 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.

ParametersTypeDescription
addressOrFileContentsstringURL 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.

Tool: 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.

ParametersTypeDescription
addressOrFileContentsstringURL 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?

Install from MCP:Hub

Tag summary

Content type

Image

Digest

sha256:26234065b

Size

91.7 MB

Last updated

10 months ago

docker pull mcp/openapi

This week's pulls

Pulls:

1,045

Jul 6 to Jul 12