mcp
🧩 The Ultimate Toolkit for Generating Type-Safe API Clients, Hooks, and Validators.
Installation
npx @kubb/mcpAsk AI about mcp
Powered by Claude · Grounded in docs
I know everything about mcp. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
The meta framework for code generation
Stop writing glue code. Define your API once and Kubb generates types, clients, hooks, validators, mocks and more.
Documentation · Report Bug · Request Feature
Installation
npm install kubb
# or
pnpm add kubb
Quick Start
Get started with Kubb in seconds:
npx kubb init
The interactive setup will:
- Create a
package.json(if needed) - Guide you through plugin selection
- Install packages automatically
- Generate
kubb.config.ts
Then generate your code:
npx kubb generate
See the documentation for detailed usage and advanced features.
Features
- Works with Node.js 22+ and TypeScript 6.
- Convert Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1 to TypeScript types, API clients, and more via the plugin ecosystem.
- Extensible plugin and middleware system for customizing and composing code generation.
- CLI support with interactive setup, progress bar, and detailed logs.
- Model Context Protocol (MCP) server for AI assistants like Claude, Cursor, and other MCP-compatible tools.
- JSX-based renderer (
@kubb/renderer-jsx) for building custom plugin output. - Barrel file generation via the
@kubb/middleware-barrelmiddleware.
Supporting Kubb
Kubb is an open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
Contributors 
License
Most of this repository is licensed under the MIT License, Copyright © 2025 Stijn Van Hulle. Some components are licensed under AGPL-3.0-or-later.
- Most packages — MIT
@kubb/agent— AGPL-3.0-or-later
See LICENSE for details.
