kubb
🧡 Turn your API spec into type-safe code. Generate TypeScript types, API clients, hooks, validators and mocks from a spec such as OpenAPI.
No outside reports on file
Kubb is relatively safe when used with trusted, internal API specs, but always review generated code before using it and never trust spec files from unknown sources.
Based on public adoption and transparency signals as of Oct 24, 2026. Our opinion, not a code audit or security guarantee.
What it can access
- Local filesNo local folder access notedLOW
- Command executionNo shell command runner notedLOW
- Network reachConnects to outside service APINOTED
- CredentialsNo API token requiredLOW
- Package sourcenpm (@kubb/mcp)PUBLIC
Inferred from this listing’s public package details and description. Check the project’s source before installing.
Install
npx -y @kubb/mcpEverything known
We found nothing about this project in the sources we read (last checked 2026-10-30). That does not mean it has no problems.
0 incidents · 0 advisories · 0 news articles · 0 community threads · checked 2026-10-30
Popularity grade: B (from public signals such as stars and downloads, not a code review). Graded 2026-10-24.
Sources we read: OSV, GitHub Advisory Database, CISA Known Exploited Vulnerabilities, 44 security news feeds and our incident library. Last checked 2026-10-30.
About Kubb
Kubb is a code generator that reads API specifications (like OpenAPI) and automatically creates TypeScript types, API client code, React hooks, data validators, and mock data. It helps developers quickly turn API documentation into ready-to-use code without manual typing.
Who it’s for
TypeScript developers and teams who want to reduce boilerplate code and keep their client code in sync with API changes. It's useful for projects using OpenAPI specs or similar API definition formats.
Alternatives
- OpenAPI Generator: Popular open-source tool for generating client code from OpenAPI specs across many languages.
- ts-rest: TypeScript library that ties API specification and client code together in one definition.
- TanStack Router: Framework that can auto-generate type-safe route and API handling code.
- Swagger Codegen: Another widely-used code generator for OpenAPI/Swagger specifications.
Setup
Check these steps against the project’s own instructions before running anything.
Follow the project's README at https://github.com/kubb-labs/kubb (opens external site) for installation and integration instructions. The MCP server package can be installed via npm, but configuration depends on your specific setup.
Why this grade
Signal-based grade (4/7 points): well starred on GitHub, listed in several sources, public source code. This reflects adoption and transparency, not a code review.
Popularity and upkeep
- GitHub stars
- 1.8k
- Listing last refreshed
- 2026-10-30
These are public popularity signals, not a maintenance check. Look at the repository’s commit history and open issues.
Risks to watch for
- Code generation from untrusted specs: If an API specification file is malicious or crafted by an attacker, generated code could contain vulnerabilities or unexpected behavior.
- API exposure in generated clients: Generated API client code will contain hardcoded endpoints and may expose authentication tokens or API keys if not configured carefully.
- Validation bypass: Generated validators might not catch all edge cases, potentially allowing invalid data through if the spec itself is incomplete or wrong.
- Dependency risks: The tool pulls in dependencies that could be compromised; generated code adds more dependencies to your project.
- Social engineering via specs: An attacker could disguise malicious patterns in spec files that look legitimate but generate problematic code.
How to lower the risk
Least-privilege permissions
- Run the MCP server with minimal file system access to only the specs directory.
- Review generated code before integrating it into production.
Network isolation
- Keep the tool offline or restrict outbound connections to known API servers.
- Don't let it auto-fetch specs from the internet without explicit approval.
Monitoring
- Log which spec files are processed and when code generation happens.
- Check generated code diffs to spot unexpected changes.
Red flags to watch for
- Specs from unknown or untrusted sources before generation.
- Generated code that includes hardcoded secrets or credentials.
- Sudden new dependencies added by generated code.
Questions
How do I install Kubb?
Run npx -y @kubb/mcp in your terminal, or add the server entry to your claude_desktop_config.json or .cursor/mcp.json as shown in the Setup section on this page. Full setup docs and environment variables are in github.com/kubb-labs/kubb.
Are there security reports about Kubb?
No reports found for this package in our research (last checked 2026-10-30). Kubb currently holds Grade B (Some risk signals) based on public adoption and transparency signals. Key risk areas to watch include code generation from untrusted specs, api exposure in generated clients, validation bypass.
Is Kubb actively maintained?
Kubb has 1.8k GitHub stars. Our directory data was last refreshed on 2026-10-30. Check recent commit activity, release tags, and open issues at github.com/kubb-labs/kubb before pinning it in production.
What are alternatives to Kubb?
Notable alternatives to Kubb include OpenAPI Generator (Popular open-source tool for generating client code from OpenAPI specs across many languages), ts-rest (TypeScript library that ties API specification and client code together in one definition), TanStack Router (Framework that can auto-generate type-review route and API handling code), Swagger Codegen (Another widely-used code generator for OpenAPI/Swagger specifications). You can also compare Kubb side by side with other MCP servers in the Related tools section on this page.
Key facts
- Type
- App connector
- Publisher
- kubb-labs
- Source code
- github.com/kubb-labs/kubb
- Install command
- npm install @kubb/mcp
- Est. context load
- ~850 tokens / turn (~5 tool schemas, 0.43% of 200k context)
- Popularity
- 1.8k GitHub stars
- Last updated
- 2026-10-30
- Last graded
- 2026-10-24
Community
Discussions for Kubb
Ask questions or share configuration tips. Governed by our Community Rules & Terms.
No posts match this filter yet.
Be the first to ask a question or share a working tip.
Check before you install, in Claude
Your assistant answers Block, Review or No known issues for any package before it installs it.
Get this check inside Claude