MCP Bundles (.mcpb): one-click local MCP servers
What an MCP Bundle (.mcpb, formerly a DXT Desktop Extension) is, what goes in manifest.json, and how to pack, sign, and publish one to the MCP Registry.
An MCP Bundle is a single .mcpb file that holds a local MCP server and everything it needs to run. Open it in a desktop app that supports the format and you get an install dialog instead of a JSON file to edit. The format started life as DXT, short for Desktop Extensions, and was renamed to MCPB. The specification, the mcpb command-line tool, and the loader code live in the MCPB repository.
This guide covers what is in a bundle, the manifest fields that matter, the CLI steps to pack and sign one, and how a bundle shows up in the official MCP Registry. If you have not written the server yet, start with the build guide. If you only want to use servers, the install guide is the better read.
Why bundles exist
A local MCP server is a program the client starts on your machine. The usual install is a block of JSON: a command such as npx or uvx, some arguments, and environment variables for API keys. That works for developers. It is a wall for everyone else, who may not have Node.js or Python installed, and who should not be pasting secrets into a text file.
The MCPB README compares the format to Chrome extensions (.crx) and VS Code extensions (.vsix). The developer ships one file. The app reads its manifest, asks the user for the settings it declares, stores sensitive values securely, and starts the server. Claude for macOS and Windows uses the code in the repository for single-click installs, automatic updates, configuration of the variables a server needs, and a curated directory. The format is open, so other desktop apps can add support with the same schemas.
Bundles are for local servers. A remote server is already just a URL, and there is nothing to package.
The DXT to MCPB rename
If you find older posts about Desktop Extensions, the mapping is one to one:
- The
dxtCLI is nowmcpb. .dxtfiles are now.mcpbfiles.- The
@anthropic-ai/dxtnpm package moves to@anthropic-ai/mcpb.
The archive layout and manifest ideas carried over. Update your tooling and file names. Some directories still use the DXT label for the same format.
What goes in a bundle
A bundle is a zip archive. The README is explicit that manifest.json is the only required file, but a working bundle also carries the server and its dependencies. A Node.js bundle typically looks like this:
bundle.mcpb (ZIP file)
├── manifest.json # required: metadata and how to start the server
├── server/
│ └── index.js # entry point
├── node_modules/ # bundled dependencies
├── package.json # optional
└── icon.png # optional
The README recommends Node.js over Python because Node.js ships with Claude for macOS and Windows, so a Node bundle runs without the user installing a runtime. Python bundles can vendor packages in server/lib or ship a virtual environment, but compiled dependencies such as pydantic, which the MCP Python SDK needs, cannot be bundled portably. The spec answers that with a uv server type, documented for manifest version 0.4 and later: you ship a pyproject.toml, and the host app installs Python and the dependencies with uv. Binary bundles carry a compiled executable and need no runtime at all; static linking is preferred.
The manifest, field by field
The manifest spec in the repository (version 0.3 at the time of writing) requires six fields: manifest_version, name, version (semver), description, author (with at least a name), and server. A minimal Node manifest that asks for an API key looks like this:
{
"manifest_version": "0.3",
"name": "my-extension",
"version": "1.0.0",
"description": "A simple MCP extension",
"author": { "name": "Extension Author" },
"server": {
"type": "node",
"entry_point": "server/index.js",
"mcp_config": {
"command": "node",
"args": ["${__dirname}/server/index.js"],
"env": { "API_KEY": "${user_config.api_key}" }
}
},
"user_config": {
"api_key": {
"type": "string",
"title": "API Key",
"description": "Your API key for authentication",
"sensitive": true,
"required": true
}
}
}
The parts worth understanding:
- server.type is
node,python,binary, oruv.entry_pointnames the main file. - mcp_config is the command the app runs, the same shape as a client config.
${__dirname}is replaced with the folder the bundle was unpacked into. - user_config declares settings the app collects in its own UI.
${user_config.KEY}substitutes the answer into arguments or environment variables. Mark keys and tokenssensitiveso the app masks the input and stores it securely. The spec suggests environment variables for secrets and arguments for paths. - compatibility can pin client versions, platforms (
darwin,win32,linux), and runtime versions. Leave it out and apps are encouraged to run the bundle anywhere. - tools and prompts list what the server offers, so a directory can show it before install. Set
tools_generatedwhen the server adds tools at runtime. - privacy_policies is required when the bundle sends user data to an outside service.
Optional fields such as display_name, long_description, icon, screenshots, keywords, license, and repository feed the install dialog and any store listing.
Pack, sign, and verify with the CLI
Install the CLI from npm, then work from the folder that holds your server:
npm install -g @anthropic-ai/mcpb
mcpb init # interactive manifest.json
mcpb validate . # check the manifest against the spec
mcpb pack . # writes a .mcpb archive
mcpb sign my-extension.mcpb --cert cert.pem --key key.pem
mcpb verify my-extension.mcpb
mcpb info my-extension.mcpb
Signing uses an X.509 certificate in PEM format, ideally with the code signing extended key usage, plus its private key and any intermediate certificates. mcpb sign --self-signed creates a throwaway certificate for testing, and mcpb verify warns when a signature is self-signed. mcpb unsign strips a signature during development. For a public release, sign with a CA-issued certificate so users can tell the file came from you.
Before you pack, install production dependencies with a lockfile (npm ci or the equivalent) so the bundle is reproducible, and test on a clean machine without your development tools.
Publish a bundle to the MCP Registry
The official MCP Registry accepts bundles as a package type. In server.json, add a package with registryType set to mcpb, an identifier that is the download URL of the .mcpb file on a GitHub or GitLab release, and a fileSha256 hash of the artifact:
{
"registryType": "mcpb",
"identifier": "https://github.com/username/image-processor-mcp/releases/download/v1.0.0/image-processor.mcpb",
"fileSha256": "fe333e598595000ae021bd27117db32ec69af6987f507ba7a63c90638ff633ce",
"transport": { "type": "stdio" }
}
Two rules from the registry docs: the URL must contain the string "mcp" (the .mcpb extension counts), and the hash is required. The registry itself does not check the hash, but clients do before they install. Compute it with openssl dgst -sha256 your-file.mcpb. Once the server is in the registry, MCPpedia picks it up on the next sync; you can also submit it directly.
Safety for people installing bundles
One click does not make a server safer. A bundle runs local code with your user account's permissions, exactly like a server you start from a JSON config. Treat it the same way:
- Install bundles from the publisher's own release page or a directory you trust, and check the signature when the app shows it.
- Read the settings the install dialog asks for. A weather server has no reason to ask for your file system.
- Give tokens the narrowest scope that works, and remove bundles you no longer use.
The security best practices guide covers vetting a server before you run it, and the Claude Desktop page shows the manual config if you would rather not use a bundle at all.
Frequently asked questions
Is an MCP Bundle the same thing as a DXT Desktop Extension?
Yes. The project was renamed from DXT (Desktop Extensions) to MCPB (MCP Bundles). The dxt CLI became mcpb, .dxt files became .mcpb files, and the @anthropic-ai/dxt package moved to @anthropic-ai/mcpb.
What is inside a .mcpb file?
A zip archive with a manifest.json at the root, the server code, and its bundled dependencies. The manifest says how to start the server and which settings to ask the user for. The manifest is the only required file.
Which apps can install an MCP Bundle?
Claude for macOS and Windows installs .mcpb files with a single click, and the format is open so other desktop apps can add support. Clients that do not support bundles still take a normal JSON config; the install guide covers those.
Can I publish an MCP Bundle to the official MCP Registry?
Yes. Use registryType mcpb in server.json, point identifier at a .mcpb file on a GitHub or GitLab release, and include fileSha256. The URL must contain the string mcp, and clients check the hash before installing.