Kubb

v4.37.8Developer Toolsstable

🧡 The meta framework for code generation. Automate OpenAPI to type-safe TypeScript, Zod, and TanStack Query with a modular, plugin-based engine.

axiosclaudecodegenfakerkubb
Share:
1,722
Stars
0
Downloads
0
Weekly
0/5

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

Generate type-safe TypeScript from OpenAPI specifications.
Automate code generation with Zod and TanStack Query.
Use a modular, plugin-based engine for custom code generation.
kubb-labs

Maintainer

LicenseNOASSERTION
Languagetypescript
Versionv4.37.8
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @kubb/mcp

Manual Installation

npx -y @kubb/mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

Install Kubb MCP via npm

Install the @kubb/mcp package from npm.

npm install -g @kubb/mcp
2

Prepare your OpenAPI specification

Ensure you have an OpenAPI 3.0 or 3.1 spec file (JSON or YAML) ready for code generation.

3

Add Kubb to your MCP client configuration

Register the Kubb server in your Claude Desktop config.

{
  "mcpServers": {
    "kubb": {
      "command": "npx",
      "args": ["-y", "@kubb/mcp"]
    }
  }
}
4

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.

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.

Quick Config Preview

{ "mcpServers": { "kubb": { "command": "npx", "args": ["-y", "@kubb/mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides