Kubb
🧡 The meta framework for code generation. Automate OpenAPI to type-safe TypeScript, Zod, and TanStack Query with a modular, plugin-based engine.
What is Kubb?
Kubb is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🧡 the meta framework for code generation. automate openapi to type-safe typescript, zod, and tanstack query with a modular, plugin-based engine.
🧡 The meta framework for code generation. Automate OpenAPI to type-safe TypeScript, Zod, and TanStack Query with a modular, plugin-based engine.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 🧡 The meta framework for code generation. Automate OpenAPI t
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @kubb/mcpManual Installation
npx -y @kubb/mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Kubb
Kubb is a meta framework for code generation that automates the conversion of OpenAPI specifications into type-safe TypeScript, Zod validators, and TanStack Query hooks. When integrated with Claude, this server enables you to generate production-ready API client code from specs—powered by a modular, plugin-based engine that supports Faker, MSW, and Axios integrations.
Prerequisites
- Node.js 16+ installed
- An MCP client such as Claude Desktop, Cursor, or VS Code
- npm for package management
Install Kubb MCP via npm
Install the @kubb/mcp package from npm.
npm install -g @kubb/mcpPrepare your OpenAPI specification
Ensure you have an OpenAPI 3.0 or 3.1 spec file (JSON or YAML) ready for code generation.
Add Kubb to your MCP client configuration
Register the Kubb server in your Claude Desktop config.
{
"mcpServers": {
"kubb": {
"command": "npx",
"args": ["-y", "@kubb/mcp"]
}
}
}Restart your MCP client
Restart Claude Desktop or Cursor to load the Kubb code generation server.
Kubb Examples
Client Configuration Example
How to configure Kubb in your MCP client:
{
"mcpServers": {
"kubb": {
"command": "npx",
"args": ["-y", "@kubb/mcp"]
}
}
}Prompts to try
Example prompts for API code generation:
1. "Generate TypeScript types from this OpenAPI spec for all endpoints"
2. "Create Zod validators for request and response bodies from the API spec"
3. "Generate TanStack Query hooks for all GET endpoints in the specification"
4. "Create Mock Service Worker (MSW) handlers for testing with this API spec"Troubleshooting Kubb
Code generation fails with invalid OpenAPI spec error
Validate your OpenAPI specification using an online validator or 'openapi-generator-cli validate'. Ensure it's properly formatted JSON or YAML and conforms to OpenAPI 3.0+.
Generated code has import errors or missing types
Verify all Kubb plugins (@kubb/typescript, @kubb/zod, etc.) are installed. Check the repository README for plugin configuration requirements.
Frequently Asked Questions about Kubb
What is Kubb?
Kubb is a Model Context Protocol (MCP) server that 🧡 the meta framework for code generation. automate openapi to type-safe typescript, zod, and tanstack query with a modular, plugin-based engine. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Kubb?
Install via npm with the command: npx -y @kubb/mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Kubb?
Kubb works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Kubb free to use?
Yes, Kubb is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
Kubb Alternatives — Similar Developer Tools Servers
Looking for alternatives to Kubb? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Awesome Claude Skills MCP Server
★ 61.1kA curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
Nacos MCP Server
★ 33.0kan easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
FastMCP
★ 25.3kA collection of MCP servers providing utilities including user greeting, message decoding, text file reading with PDF summary generation, and NASA-quality code auditing using a trained AI model to predict software defects and measure code complexity.
Python SDK
★ 23.1kPython SDK for protecting MCP servers and OAuth 2.1 resource servers with tokens issued by the Authplane authorization server. Includes framework adapters (e.g. MCP, FastMCP).
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Kubb in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Kubb?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.