🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?
Claim this page →
kubb
🧡 The meta framework for code generation. Automate OpenAPI to type-safe TypeScript, Zod, and TanStack Query with a modular, plugin-based engine.
{
"mcpServers": {
"kubb": {
"command": "npx",
"args": ["-y", "https://github.com/kubb-labs/kubb"]
}
}
}Kubb
The meta framework for code generation
Point Kubb at a schema and it generates types, clients, hooks, validators, mocks, and more.
Installation
bun add kubb
# or
pnpm add kubb
# or
npm install kubb
Quick start
Run the setup wizard to create a kubb.config.ts:
npx kubb init
The wizard creates a package.json if needed, guides you through plugin selection, installs packages, and writes kubb.config.ts. Then generate your code:
npx kubb generate
See the documentation for detailed usage and advanced features.
Features
- Generate from a schema: Kubb produces TypeScript types, type-safe API clients, TanStack Query hooks for React and Vue, SWR hooks, Zod validators, Faker mocks, and MSW handlers.
- Plug in input formats through adapters like
@kubb/adapter-oas, with TypeScript-first output that runs on Node.js and Bun. - Pick what you generate from the plugin ecosystem:
plugin-ts,plugin-axios,plugin-fetch,plugin-react-query,plugin-vue-query,plugin-swr,plugin-zod,plugin-faker,plugin-msw,plugin-cypress,plugin-redoc, andplugin-mcp. Enable only the ones a project needs. - Choose your HTTP client: use the axios or fetch presets, or point at a custom client module so generated requests run through your own wrapper.
- Control the generated tree: group files by tag, emit barrel exports, and include or exclude operations to keep the output focused.
- Build your own output with custom plugins, adapters, and the JSX-based renderer (
@kubb/renderer-jsx) for full control over what lands on disk. - Hook into your bundler with
unplugin-kubb, which runs generation inside Vite, Nuxt, Astro, webpack, and other build tools. - Drive generation from AI tools through the built-in Model Context Protocol (MCP) server, which works with Claude, Cursor, and other MCP-compatible assistants.
- Generate from inside Claude Code with the Kubb plugin, which adds slash commands, a config skill, and an agent that run the Kubb CLI.
Supporting Kubb
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
Contributing
We welcome contributions that help improve Kubb. A few ways to get involved:
- Found a bug? File it in the issue tracker.
- Have an idea to improve Kubb? Open an issue to share it.
- Need help? Ask the community on Discord.
See CONTRIBUTING.md for the project structure, local setup, and commands.
Contributors 
License
This repository is licensed under the MIT License, Copyright © 2025 Stijn Van Hulle.
See LICENSE for details.
Star history
// compatibility
| Platforms | cli, api, web, mobile |
|---|---|
| Operating systems | — |
| AI compatibility | claude |
| License | MIT |
| Pricing | open-source |
| Language | TypeScript |
// faq
What is kubb?
🧡 The meta framework for code generation. Automate OpenAPI to type-safe TypeScript, Zod, and TanStack Query with a modular, plugin-based engine.. It is open-source on GitHub.
Is kubb free to use?
kubb is open-source under the MIT license, so it is free to use.
What category does kubb belong to?
kubb is listed under mcp-servers in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/kubb)
// retro hit counter
[](https://claudeers.com/kubb)
// reviews
// guestbook
// related in MCP Servers
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete…
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
An open-source AI agent that brings the power of Gemini directly into your terminal.
// built by
1 of its contributors also build on official projects — claude-code, claude-cookbooks, claude-plugins-official
→ see how kubb connects across the ecosystem