Kubb MCP Server
kubb-labs/kubb
Gera código TypeScript e clientes API via MCP a partir de OpenAPI specs
Ver no GitHubServidor MCP que integra Kubb (gerador de código a partir de especificações OpenAPI) com assistentes de IA como Claude. Permite que AI assistants gerem tipos TypeScript, clientes API, hooks React/Vue, validadores Zod, mocks Faker e handlers MSW diretamente a partir de specs OpenAPI.
Instalação
npx convez-ai kubb-labs/kubb1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Gerar automaticamente tipos e clientes TypeScript a partir de APIs OpenAPI via Claude
- Criar mocks e validadores Zod para testes durante desenvolvimento assistido por IA
- Integrar geração de código com fluxos de IA em Cursor, Claude Code ou assistentes MCP-compatíveis
Veredito

Solução robusta que democratiza a geração de código a partir de especificações OpenAPI através de assistentes de IA. Ideal para times que usam Claude/Cursor e querem automatizar scaffolding de clientes API com segurança de tipo.
README
A tradução para o português deste README ainda está na fila.
Kubb
The meta framework for code generation
Point Kubb at an OpenAPI spec 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 spec: point Kubb at an OpenAPI document and it produces TypeScript types, type-safe API clients, TanStack Query hooks for React and Vue, SWR hooks, Zod validators, Faker mocks, and MSW handlers.
- Read Swagger 2.0, OpenAPI 3.0, and 3.1, with TypeScript-first output that runs on Node.js and Bun.
- Pick what you generate from the plugin ecosystem:
plugin-ts,plugin-client,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.