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 · Oct 18, 2026

@kubb/mcp has 34,214 recorded weekly downloads on npm, an increase of 9.4% over the past 30 days, ranking #660 of 2,322 tracked listings.

Weekly downloads
34,214
Official API · Oct 18, 2026
7-day growth
-43.5%
-26.3K weekly downloads
30-day growth
+9.4%
+2.9K weekly downloads
90-day growth
+558%
+29K weekly downloads
Rank
#660
Among tracked npm listings

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 three tools. 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. validate checks an OpenAPI spec, and init scaffolds a kubb.config.ts.

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
generate

Runs a Kubb build from your config. A successful build returns the build events, and a failed build returns its diagnostics.

Parameters:

  • config (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
  • input (string, optional): Path to OpenAPI/Swagger spec file (overrides config file setting)
  • output (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:

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

Overriding input and output:

{
  "config": "./kubb.config.ts",
  "input": "./specs/petstore.yaml",
  "output": "./src/generated"
}

With verbose logging:

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

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

Parameters:

  • input (string, required): Path or URL to the OpenAPI/Swagger specification
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:

  • input (string, optional): Path to the OpenAPI spec (default: ./openapi.yaml)
  • output (string, optional): Output directory (default: ./src/gen)
  • plugins (string, optional): Comma-separated list of plugins, such as plugin-ts,plugin-zod

Configuration

The generate tool looks for kubb.config.ts in the working directory by default. Pass config to use another config file in that directory.

Example kubb.config.ts:

import { defineConfig } from 'kubb'
import { adapterOas } from '@kubb/adapter-oas'
import { pluginTs } from '@kubb/plugin-ts'
import { pluginAxios } from '@kubb/plugin-axios'

export default defineConfig({
  input: './petstore.yaml',
  output: {
    path: './src/generated',
  },
  adapter: adapterOas(),
  plugins: [pluginTs(), pluginAxios()],
})

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:

<p align="center"> <a href="https://github.com/sponsors/stijnvanhulle"> <img src="https://raw.githubusercontent.com/stijnvanhulle/sponsors/main/sponsors.svg" alt="My sponsors" /> </a> </p>

License

MIT

<!-- Badges -->…

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: 34,214 weekly downloads as of Oct 18, 2026, +558% over 90 days.@kubb/mcpWeekly downloads on npm · Last 90 days34,214downloads / week+558% over 90 days010K20K30K40K50K60K70KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@kubb/mcp weekly downloads on npm, last 90 days: 34,214 weekly downloads as of Oct 18, 2026, +558% over 90 days.

7/30/90-day growth

@kubb/mcp weekly downloads growth on npm: -43.5% over 7 days, +9.4% over 30 days, +558% over 90 days.@kubb/mcpWeekly downloads growth on npm34,214downloads / week now7-day growth-26,290 weekly downloads-43.5%30-day growth+2,946 weekly downloads+9.4%90-day growth+29,018 weekly downloads+558%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@kubb/mcp weekly downloads growth on npm: -43.5% over 7 days, +9.4% over 30 days, +558% over 90 days.

Ranking history

@kubb/mcp npm ranking history: currently #660 (by weekly downloads).@kubb/mcpnpm ranking · by weekly downloads · Last 90 days#660current rank#658#660#662#664#666#668#670Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@kubb/mcp npm ranking history: currently #660 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 33, #20 (overall #660)
All npm: every listing in weekly downloads order

Listing placement

MCP servers277 listings · 14 pages · page 5, #1 (overall #81)
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 (122)
Recent weekly downloads observations for @kubb/mcp
Date (UTC)Weekly downloadsChange vs. previous
34,214+5.1K
29,135-4.8K
33,889+453
33,436-13K
46,447-15.9K
62,3020
62,302+1.8K
60,504+1.6K
58,898+406
58,492+3.5K
55,032+2.7K
52,292+7.2K
45,115-9.5K
54,602—

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 Oct 20, 2026. See the methodology.