A command-line utility designed to effortlessly build and serve MCP servers with OpenAPI, Google Discovery specifications using modern .NET technologies.
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Nov 22, 2025
$ dotnet add package QuickMCP.CLIEffortlessly Build and Serve Model Context Protocol (MCP) Servers with OpenAPI, Swagger, or Google Discovery Specifications using .NET.
QuickMCP is a powerful .NET toolkit designed to streamline the creation and deployment of Model Context Protocol (MCP) servers. It allows developers to quickly generate servers from OpenAPI, Swagger, or Google Discovery specifications, reducing boilerplate code and accelerating development.
dotnet tool install -g QuickMCP.CLI
dotnet add package QuickMCP
# Serve directly from OpenAPI specification
quickmcp serve --spec-url https://petstore.swagger.io/v2/swagger.json
# Build a configuration file
quickmcp build config --spec-url https://petstore.swagger.io/v2/swagger.json --output-path ./config
# Serve using a configuration file
quickmcp serve --config-path ./config/mcp_server_config.json
# Add authentication to your configuration
quickmcp build config --spec-url https://api.example.com/swagger.json --auth bearer
// Create and configure a server
var serverInfoBuilder = new McpServerInfoBuilder();
serverInfoBuilder.FromUrl("https://petstore.swagger.io/v2/swagger.json")
.WithBaseUrl("https://petstore.swagger.io")
.AddDefaultHeader("User-Agent", "QuickMCP Client")
.AddAuthentication(new ApiKeyAuthenticator("your-api-key", "X-API-Key", "header"));
// Build server info
var serverInfo = await serverInfoBuilder.BuildAsync();
//Integrate with official MCP C# SDK
var hostBuilder = Host.CreateApplicationBuilder();
var mcpBuilder = hostBuilder.Services
.AddMcpServer()
.WithQuickMCP(mcpServerInfo)
.WithStdioServerTransport();
//Run Server
await hostBuilder.Build().RunAsync();
{
"mcpServers": {
"petStore": {
"command": "quickmcp",
"args": ["serve", "-c", "path/to/config.json"]
}
}
}For detailed documentation on the following topics, refer to the docs directory:
We welcome contributions! Submit PR or Issues to contribute to the project.
QuickMCP is licensed under the MIT License. See the LICENSE file for details.