</>MCP Agents Market
Plugin

kubb

by kubb-labs1.8kTypeScriptUpdated 2026-09-06

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

Claude CodeCursorClaude Desktop

Kubb is a meta-framework for code generation that integrates with Claude Code and other AI tools through an MCP server. It transforms OpenAPI specifications into type-safe TypeScript clients, Zod validators, TanStack Query hooks, and mock data using a modular plugin architecture. Developers point Kubb at an API schema and automatically generate complete type-safe API layers, eliminating manual boilerplate and keeping frontend code synchronized with backend contracts.

Key Features

Generate TypeScript types, Axios/Fetch clients, TanStack Query/SWR hooks, Zod validators, Faker mocks, and MSW handlers from OpenAPI 2.0/3.0/3.1 schemas
Built-in MCP server enables AI-driven generation through Claude, Cursor, and Claude Code
Modular plugin system (plugin-ts, plugin-axios, plugin-react-query, plugin-zod, plugin-faker, plugin-msw) with only needed plugins enabled
Type-safe clients with status-keyed results, authentication, file uploads, server-sent events, and interceptor support
Flexible file organization by tag, operation filtering, and output to disk, memory, or custom storage
Bundler integration via unplugin-kubb for Vite, Nuxt, Astro, and webpack
Component-based code generation with JSX renderer and extensible authoring toolkit (kubb/kit)
Interactive setup wizard (npx kubb init) configures plugins and generates kubb.config.ts

Use Cases

  • 01Generate complete type-safe API clients from OpenAPI specifications for frontend applications
  • 02Automate creation of React Query or SWR hooks for data fetching with full TypeScript support
  • 03Scaffold Zod schemas for runtime validation matching backend API contracts
  • 04Generate mock data with Faker and MSW handlers for testing without backend dependencies
  • 05Keep frontend code synchronized with backend APIs through automated regeneration on schema changes
  • 06Use Claude Code or Cursor to generate and customize API integrations through natural language

Related Plugins

View more

kubb โ€” FAQ

What is Kubb?+

Kubb is a code generation meta-framework that transforms OpenAPI schemas into type-safe TypeScript clients, validators, hooks, and mocks. It includes an MCP server for integration with AI tools like Claude Code and Cursor.

How do I install Kubb?+

Install Kubb via npm, pnpm, or bun (e.g., 'npm install kubb'). Run 'npx kubb init' to launch the setup wizard, which guides you through plugin selection and creates a kubb.config.ts configuration file. Then run 'npx kubb generate' to produce your code.

Which AI clients does Kubb work with?+

Kubb works with Claude Code, Cursor, and Claude Desktop through its built-in MCP server. The plugin-mcp module enables AI-driven code generation from these tools.

Does Kubb require API keys or external services?+

Kubb itself does not require API keys to generate code from local OpenAPI files. However, if your OpenAPI schema is hosted remotely or you use AI features through Claude/Cursor, those services may require authentication.

Is Kubb free to use?+

Yes, Kubb is open source and licensed under the MIT License. It is free for commercial and personal use.

Can I customize the generated code?+

Yes, Kubb provides a plugin authoring toolkit (kubb/kit) with a JSX renderer for building custom generators. You can enable or disable plugins, filter operations, and control file organization through kubb.config.ts.

How do I install kubb?+

Open the source repository on GitHub and follow its README. kubb is a plugin โ€” MCP Agents Market links you directly to the official repo.

Is kubb free?+

kubb is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches