Skip to content
Openapi Client logo
MCP server

Openapi Client MCP Server

OpenAPI Client is a toolkit that helps you create HTTP clients for external APIs based on their OpenAPI specifications. It simplifies the process of consuming and interacting with various web services.

Openapi Client scores 34 (Limited), licensed MIT and written in C#. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 18 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by lepocoMITC#18 stars
Trust score
34Limited
Trust score 34 of 100, Limited

Limited trust

34 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Trust breakdown

Where the 34 comes from

0 + 6 + 4 + 10 + 7 + 7 = 34. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security7 / 10

Not archived, a secure install path, a pinned version.

Security: 7 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "lepoco-openapi-client": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "mcp/openapi"      ]    }  }}

Environment variables

This server does not declare environment variables.

About

โ˜„๏ธ OpenAPI Client

Created with โค in Poland by lepo.co and the awesome open-source community.
OpenAPI Client is a modern toolkit for developers working with OpenAPI/Swagger specifications. It provides multiple tools to simplify the creation, inspection, validation, and integration of OpenAPI clients across .NET projects and MCP (Model Context Protocol) environments.

๐Ÿงฐ What's in this repo?

This repository contains a suite of OpenAPI tools designed to support different workflows:

ToolDescription
๐Ÿง  .NET Source GeneratorGenerates C# HTTP clients directly from OpenAPI JSON/YAML files at build time.
๐Ÿ’ป .NET CLI ToolCommand-line tool to generate clients from OpenAPI definitions manually.
๐Ÿ›ฐ๏ธ MCP ServerContainerized server with built-in tools for working with OpenAPI specs.

๐Ÿš€ MCP Server Tools

The MCP Server is the central piece of this toolkit. It runs as a standalone container or inside an MCP setup and exposes tools for working with OpenAPI documents.

๐Ÿ› ๏ธ Available Server Tools

ToolDescription
get_list_of_operationsLists all operation IDs from a given OpenAPI or Swagger JSON document.
get_known_responsesLists all known responses for given operation IDs from a OpenAPI or Swagger JSON document.
validate_documentValidates the structure and syntax of an OpenAPI JSON document.
generate_curl_commandGenerates a cURL command for a specific operation ID.
create_csharp_snippetCreates a simple HTTP request for a given operation ID.

๐Ÿณ Run the server with Docker

Build the image:

docker buildx build ./ -t mcp/openapi --no-cache
# or
dotnet publish ./src/OpenApi.Client.Mcp/OpenApi.Client.Mcp.csproj -c Release /t:PublishContainer

Run the container:

docker run -d -i --rm --name mcp-openapi mcp/openapi
# or for HTTP mode:
docker run -d -i --rm --name mcp-openapi mcp/openapi -e MODE=Http -p 64622:8080

Example MCP config (.mcp.json):

{
  "servers": {
    "openapi": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp/openapi"]
    }
  },
  "inputs": []
}

๐Ÿ“ฆ NuGet Package (Source Generator)

OpenApiClient is available as NuGet package on NuGet.org:
https://www.nuget.org/packages/OpenApiClient

Install the package to enable automatic OpenAPI client generation:

dotnet add package OpenApiClient

, or package manager console:

NuGet\Install-Package OpenApiClient

In your .csproj:

<ItemGroup>
  <AdditionalFiles Include="google.youtube.api.json" />
</ItemGroup>

Define a client:

[OpenApiClient("google.youtube.api")]
public partial class YouTubeClient;

Use it:

var client = new YouTubeClient(new HttpClient());
var subs = await client.SubscribersCountAsync("mychannel", CancellationToken.None);

Known limitations

Since we are using the generated internal OpenApiAttribute as a marker, conflicts may occur when we use InternalsVisibleTo.

We found the use of nullable essential, so C# 8.0 is required.

๐Ÿ’ป .NET CLI Tool

Generate OpenAPI clients from the terminal:

dotnet tool install --global OpenApiClient.Cli
dotnet openapi generate ./google.youtube.api.json --output ./clients/YouTubeClient.cs --namespace Google.YouTube --classname YouTubeClient

OpenAPI

OpenAPI specification is available at:
https://github.com/OAI/OpenAPI-Specification

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.

License

OpenAPI Client is free and open source software licensed under MIT License. You can use it in private and commercial projects.
Keep in mind that you must include a copy of the license in your project.

FAQ

What is Openapi Client?
OpenAPI Client is a toolkit that helps you create HTTP clients for external APIs based on their OpenAPI specifications. It simplifies the process of consuming and interacting with various web services.
How do I install Openapi Client?
Pick a client above and copy the generated config. Cursor and VS Code also have a deep link when the server can run locally or remotely.
Is Openapi Client official?
No. Registry-listed is not the same as vendor-official. Read the methodology for the difference.
How is the trust score calculated?
This listing scores 34 (Limited). The formula is published on the methodology page.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server