New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@bitbybit-dev/mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitbybit-dev/mcp

MCP server for the Bitbybit 3D CAD API: version-exact lookups of every function, its parameters, defaults and examples, for AI coding agents

Source
npmnpm
Version
1.3.2-rc.0
Version published
Weekly downloads
394
Maintainers
1
Weekly downloads
 
Created
Source

@bitbybit-dev/mcp: the Bitbybit CAD MCP server

An MCP server that documents the Bitbybit 3D CAD API for AI coding agents: every function, its parameters, defaults, return type and examples, for the exact version your project uses. Bitbybit has 1725 functions across three CAD kernels - more than any model holds in memory - so an agent working from memory invents plausible names that do not exist. An agent with this server looks each one up instead, and writes code that compiles the first time.

It answers from the API index Bitbybit publishes with every release (https://git-cdn.bitbybit.dev/v<version>/ai-context/index.json), never from memory, and never from a moving "latest".

Diagram of the Bitbybit platform showing how a website reaches its geometry: script runners, iframe embeds, the NPM packages, the CAD Cloud REST API and AI agents over MCP

The diagram shows what an agent is writing code for. The MIT-licensed npm packages run the CAD kernels in your users' browsers or in your own Node process; script runners load the same engine from one file; the CAD Cloud REST API runs the work on managed servers. This server knows all of them, and every answer carries a tier - oss, platform-pro or cloud-pro - so an agent never sends you to a paid service for something the free packages already do.

Connect it

The same server runs two ways. Hosted at https://mcp.bitbybit.dev/mcp over Streamable HTTP, which needs nothing installed and serves the newest release; or locally over stdio with npx, which needs Node 20 and serves the version your project has installed. Start with the remote.

Claude Code

claude mcp add --transport http bitbybit https://mcp.bitbybit.dev/mcp

or the local server:

claude mcp add --transport stdio bitbybit -- npx -y @bitbybit-dev/mcp

For a project, commit a .mcp.json at its root so every collaborator's Claude Code finds it:

{ "mcpServers": { "bitbybit": { "type": "http", "url": "https://mcp.bitbybit.dev/mcp" } } }

Cursor (.cursor/mcp.json)

{ "mcpServers": { "bitbybit": { "url": "https://mcp.bitbybit.dev/mcp" } } }

VS Code (.vscode/mcp.json) - the type is required, or VS Code tries to start the URL as a program:

{ "servers": { "bitbybit": { "type": "http", "url": "https://mcp.bitbybit.dev/mcp" } } }

Either form takes the local server instead: { "command": "npx", "args": ["-y", "@bitbybit-dev/mcp"] }, with "type": "stdio" in VS Code. claude.ai, ChatGPT and the Claude API connect to the remote as a custom connector - every configuration is documented here.

Which version it serves

The server documents one exact version of the API. It picks it in this order:

  • --version <version> on the command line;
  • BITBYBIT_VERSION=<version> in the environment;
  • the version of the @bitbybit-dev packages installed around the working directory (core, then the renderer packages, then occt); packages that disagree are reported on stderr and the first wins;
  • its own version, which is the newest API version it was released with.

Indexes are cached in $XDG_CACHE_HOME/bitbybit-mcp (or ~/.cache/bitbybit-mcp); --no-cache skips the cache. Everything the program prints goes to stderr; stdout is the protocol.

Tools

ToolWhat it answers
search_apimembers by keywords, with path, summary, tier and engines
describethe full contract of one member by dotted path; an unknown path is reported with the nearest existing ones
list_namespacethe members one level below a namespace
get_examplescode examples for a member, a namespace or a topic
get_guidesections of the public guide on where geometry should run
search, fetchthe same lookups in the shape ChatGPT connectors require

Every tool is read-only. Tiers in the answers: oss (in the npm packages, MIT), platform-pro (only when scripting inside bitbybit.dev), cloud-pro (only on CAD Cloud, with an API key).

The companion server

This server answers questions; it never runs geometry. When you want the agent to produce geometry - measure a STEP file, run a pipeline, unfold a sheet-metal part, convert to glTF - connect the Bitbybit CAD Cloud MCP alongside it, with a CAD Cloud API key:

claude mcp add --transport http bitbybit-cloud https://api.bitbybit.dev/mcp --header "X-API-Key: <your key>"

The two are designed to work together: the agent learns a member here and calls it there with the same dotted path and the same argument object.

As a library

The package exports the tool registry and the index reader, so another server can serve the same tools:

import { createDocsRegistry, contextForIndex, GUIDES, GUIDE_PAGE_URL } from "@bitbybit-dev/mcp";
import { loadIndex } from "@bitbybit-dev/mcp/index-loader";
import { createMcpServer } from "@bitbybit-dev/mcp/server";

const version = "<a released version>";
const index = await loadIndex({ version });
const context = contextForIndex(index, GUIDES, GUIDE_PAGE_URL);
const server = createMcpServer(createDocsRegistry(), context, { name: "bitbybit", version });

toHttp(registry, context) renders the same tools for a plain HTTP endpoint, and guarded(registry, report) is the error boundary every server puts around a registry: a handler that throws answers a generic error result and the throw goes to report, so no internal message reaches a client. Registry.map(wrap) re-wraps every handler for such concerns of your own. The package root imports no Node built-in, so a bundler can take it into an edge runtime; the loader and the version detector, which read the file system, are the separate index-loader and installed-version entries, and the $ref inliner the tool schemas go through is the dependency-free json-schema entry.

Privacy

The stdio server sends nothing anywhere except one request to the CDN for the index of the version it serves.

ResourceURL
Using AI with Bitbybithttps://learn.bitbybit.dev/learn/using-ai-with-bitbybit/intro
This server, documentedhttps://learn.bitbybit.dev/learn/using-ai-with-bitbybit/mcp/bitbybit-mcp
CAD Cloud MCPhttps://learn.bitbybit.dev/learn/using-ai-with-bitbybit/mcp/cad-cloud-mcp
Agentic CAD - where geometry should runhttps://learn.bitbybit.dev/learn/using-ai-with-bitbybit/agentic-cad
Context files, for hosts without MCPhttps://learn.bitbybit.dev/learn/using-ai-with-bitbybit/prompt-contexts
GitHubhttps://github.com/bitbybit-dev/bitbybit/tree/master/packages/dev/mcp
Monorepohttps://github.com/bitbybit-dev/bitbybit
TypeScript API Referencehttps://docs.bitbybit.dev

Bitbybit Platform

Beyond NPM packages, Bitbybit offers:

  • Visual Programming Editors - Rete & Blockly drag-and-drop 3D modeling, plus a Monaco TypeScript editor
  • CAD Cloud API - Build full pipelines that compose all Bitbybit algorithms, where each step can reference outputs of previous steps. Supports parametric model generation, STEP-to-glTF conversion, and complex CAD workflows via HTTP
  • Bitbybit Studio - A growing visual dashboard where API Key users can generate models, convert files, build pipelines with a GUI, inspect tasks, and preview 3D results
  • 3D Bits for Shopify - Interactive 3D product configurators for e-commerce
  • Script Runners - Execute visual scripts directly on your website
  • Built for AI Coding Agents - This server, the CAD Cloud MCP for running geometry, and context files for assistants without MCP
  • Business & Enterprise - We help businesses and enterprises develop custom applications and spin up optimized CAD tenant workflows on our managed servers

Support the Project

This package is part of the open-source Bitbybit ecosystem. Your subscription helps fund continued development.

Subscribe - Silver or Gold plan | Get API Key for CAD Cloud

Community

License

MIT © Bit By Bit Developers

Keywords

Bit By Bit Developers

FAQs

Package last updated on 19 Sep 2026

Related posts