Skip to content
PluginStats

@kubb/mcp weekly downloads statistics

By kubb (2 listings) · npm · MCP servers

MCP server for Kubb. Exposes code generation as a tool over the Model Context Protocol so AI assistants like Claude, Cursor, and other MCP-compatible clients can generate TypeScript types, clients, and more.

View on npm Fresh · Dec 6, 2026

@kubb/mcp has 148,230 recorded weekly downloads on npm, an increase of 57.2% over the past 30 days, ranking #572 of 3,247 tracked listings.

Weekly downloads
148,230
Official API · Dec 5, 2026
7-day growth
-4.4%
-6.8K weekly downloads
30-day growth
+57.2%
+53.9K weekly downloads
90-day growth
+693%
+129.5K weekly downloads
Rank
#572
▼ 21 in 7 days

About @kubb/mcp

<div align="center"> <a href="https://kubb.dev" target="_blank" rel="noopener noreferrer"> <img src="https://kubb.dev/og.png" alt="Kubb banner"> </a>

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Stars][stars-src]][stars-href] [![License][license-src]][license-href] [![Node][node-src]][node-href]

<h4> <a href="https://kubb.dev" target="_blank">Documentation</a> <span> · </span> <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a> <span> · </span> <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Request Feature</a> </h4> </div> <br />

@kubb/mcp

Model Context Protocol server for Kubb

@kubb/mcp is the MCP server for Kubb. It exposes Kubb code generation as tools over the Model Context Protocol, so AI assistants such as Claude and Cursor can validate a spec and generate TypeScript types and API clients from the chat.

The server has a tool for every kubb command except studio and mcp. Each tool is named after its command with a kubb_ prefix. kubb_generate runs a full Kubb build from a kubb.config.ts and returns its build events when the build succeeds. A failed build returns its diagnostics instead. kubb_diff shows what kubb_generate would change, kubb_validate checks an OpenAPI spec, and kubb_init scaffolds a kubb.config.ts. kubb_add, kubb_update, kubb_remove, and kubb_list manage extensions from the Kubb registry.

The server only has tools for what the kubb CLI can do. A new tool comes with a new command or flag. Features beyond the CLI, such as run history, lookup in generated code, multiple agents, and team permissions, are in the Kubb Studio MCP server. See kubb studio to connect it.

Installation

Install as a dev dependency:

bun add -D @kubb/mcp
# or
pnpm add -D @kubb/mcp
# or
npm install -D @kubb/mcp

[!IMPORTANT] The kubb mcp command comes from @kubb/cli, which the kubb package includes. Install kubb to use it.

Usage

Start the MCP server

Start the server using the Kubb CLI:

npx kubb mcp

Or run it directly as a standalone package:

npx @kubb/mcp

Both commands start the same server over stdio.

Configure an MCP client

Add one of these entries to your MCP client's config, such as claude_desktop_config.json for Claude Desktop.

Using kubb mcp:

{
  "mcpServers": {
    "kubb": {
      "command": "npx",
      "args": ["kubb", "mcp"]
    }
  }
}

Using the standalone package:

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

The server looks for kubb.config.* in the directory the client starts it in, and rejects a config path outside that directory. Claude Code starts it in the folder you run claude from, so register it from the project root:

claude mcp add kubb -- npx kubb mcp

Clients such as Claude Code ignore a cwd key in this config. When a client starts the server in another directory, change into the project first (macOS and Linux):

{
  "mcpServers": {
    "kubb-petstore": {
      "command": "sh",
      "args": ["-c", "cd '/path/to/your/project' && npx kubb mcp"]
    }
  }
}
Available tools

Every tool sets the MCP annotations: kubb_validate, kubb_diff, and kubb_list are read-only, and kubb_generate, kubb_update, and kubb_remove are destructive. kubb_generate and every tool that runs the kubb CLI return 30,000 characters at most. Longer output is cut and ends with an [Output cut: ...] notice.

kubb_generate

Runs a Kubb build from your config. A successful build returns the summary kubb generate prints, such as ✓ Generated 14 files · 11 unchanged and 3 modified · +11 −7, then the build events. A failed build returns its diagnostics. While it runs, a client that asks for progress gets a step for each plugin and one for the write. Claude Code gets the summary in color.

Parameters:

  • configPath (string, optional): Path to a config file inside the working directory. Defaults to kubb.config.ts (or .mts, .cts, .js, .mjs, .cjs) in the working directory
  • inputPath (string, optional): Path inside the working directory, or http(s) URL on a public host, of the OpenAPI/Swagger spec (overrides config file setting)
  • outputPath (string, optional): Output directory path (overrides config file setting)
  • logLevel (enum, optional): One of 'silent', 'info', 'verbose' (default: 'info'), passed to a config that exports a function

Examples:

Using default config file:

{
  "configPath": "./kubb.config.ts"
}

Overriding input and output:

{
  "configPath": "./kubb.config.ts",
  "inputPath": "./specs/petstore.yaml",
  "outputPath": "./src/generated"
}

With verbose logging:

{
  "configPath": "./kubb.config.ts",
  "logLevel": "verbose"
}
kubb_validate

Validates an OpenAPI/Swagger specification from a path or URL.

Parameters:

  • inputPath (string, required): Path inside the working directory, or http(s) URL on a public host, of the OpenAPI/Swagger specification
kubb_init

Writes a kubb.config.ts in the working directory without prompts. It does not install packages, and it fails when kubb.config.ts already exists.

Parameters:

  • inputPath (string, optional): Path inside the working directory, or http(s) URL, of the OpenAPI spec (default: ./openapi.yaml)
  • outputPath (string, optional): Output directory inside the working directory (default: ./src/gen)
kubb_diff, kubb_add, kubb_update, kubb_remove, and kubb_list…

Description from the npm listing.

  • ai
  • codegen
  • kubb
  • llm
  • mcp
  • meta-framework
  • model-context-protocol
  • typescript

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@kubb/mcp weekly downloads on npm, last 90 days: 148,230 weekly downloads as of Dec 5, 2026, +693% over 90 days.@kubb/mcpWeekly downloads on npm · Last 90 days148,230downloads / week+693% over 90 days020K40K60K80K100K120K140K160KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@kubb/mcp weekly downloads on npm, last 90 days: 148,230 weekly downloads as of Dec 5, 2026, +693% over 90 days.

7/30/90-day growth

@kubb/mcp weekly downloads growth on npm: -4.4% over 7 days, +57.2% over 30 days, +693% over 90 days.@kubb/mcpWeekly downloads growth on npm148,230downloads / week now7-day growth-6,848 weekly downloads-4.4%30-day growth+53,914 weekly downloads+57.2%90-day growth+129,544 weekly downloads+693%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@kubb/mcp weekly downloads growth on npm: -4.4% over 7 days, +57.2% over 30 days, +693% over 90 days.

Ranking history

@kubb/mcp npm ranking history: currently #572 (by weekly downloads).@kubb/mcpnpm ranking · by weekly downloads · Last 90 days#572current rank#540#560#580#600#620#640#660#680Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@kubb/mcp npm ranking history: currently #572 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 29, #12 (overall #572)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 3, #19 (overall #59)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @kubb/mcp
Date (UTC)Weekly downloadsChange vs. previous
148,230-11.6K
159,840+4.3K
155,551+3.6K
151,994+1.2K
150,811-6.7K
157,560-1.6K
159,125+4K
155,078+2.6K
152,439+563
151,876+106
151,770+11K
140,788+9.5K
131,239+7.5K
123,728—

Similar npm MCP servers plugins

All 20 @kubb/mcp alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@kubb/mcp. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.