MM

modelcontextprotocol/mcpb

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2160 stars 213 forks 质量 59 趋势 31NOASSERTION

桌面扩展:桌面应用中的一键本地MCP服务器安装

概览

如果你在找DXT工具,它们已经改名为MCPB。请更新你的依赖和工具:- dxt CLI 现在是 mcpb - .dxt 文件现在是 .mcpb 文件 - @anthropic-ai/dxt 包将迁移到 @anthropic-ai/mcpb MCP 捆绑包(.mcpb)是包含本地 MCP 服务器和描述服务器及其功能的manifest.json的压缩压缩包。其格式在精神上类似于 Chrome 扩展(.crx)或 VS Code 扩展(.vsix),使终端用户只需一键即可安装本地 MCP 服务器。 该仓库提供三个组件:MANIFEST.md 中的捆绑包规范、用于创建捆绑包的CLI工具(见 CLI.md),以及 Claude 用于 macOS 和 Windows 加载和验证 MCPB 捆绑包的代码(src/index.ts)。

概述(AI 翻译)

** ⚠️ 重要通知:本项目将由 DXT(桌面扩展)更名为 MCPB(MCP 捆绑包)**

如果你在找DXT工具,它们已经更名为MCPB。请更新你的依赖和工具:

  • dxt CLI现为mcpb
  • .dxt 文件现在变成了 .mcpb 文件
  • @anthropic-ai/dxt 包裹将被移至 @anthropic-ai/mcpb

MCP 捆绑包([.mcpb)是包含本地 MCP 服务器和描述服务器及其功能的 manifest.json 的压缩压缩包。其格式在精神上类似于 Chrome 扩展(.crx)或 VS Code 扩展(.vsix),使终端用户只需一键即可安装本地 MCP 服务器。

该仓库提供三个组件:MANIFEST.md 中的捆绑包规范、用于创建捆绑包的CLI工具(见 CLI.md),以及 Claude 用于 macOS 和 Windows 加载和验证 MCPB 捆绑包的代码(src/index.ts)。

  • 对于本地MCP服务器的开发者,我们致力于使服务器的分发和安装更加便捷
  • 对于支持本地MCP服务器的应用开发者,我们旨在简化对MCPB捆绑包的支持

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Bundles (MCPB)

⚠️ IMPORTANT NOTICE: This project is being renamed from DXT (Desktop Extensions) to MCPB (MCP Bundles)

If you’re looking for the DXT tools, they have been renamed to MCPB. Please update your dependencies and tooling:

  • dxt CLI is now mcpb
  • .dxt files are now .mcpb files
  • @anthropic-ai/dxt package will be moved to @anthropic-ai/mcpb

MCP Bundles (.mcpb) are zip archives containing a local MCP server and a manifest.json that describes the server and its capabilities. The format is spiritually similar to Chrome extensions (.crx) or VS Code extensions (.vsix), enabling end users to install local MCP servers with a single click.

This repository provides three components: The bundle specification in MANIFEST.md, a CLI tool for creating bundles (see CLI.md), and the code used by Claude for macOS and Windows to load and verify MCPB bundles (src/index.ts).

  • For developers of local MCP servers, we aim to make distribution and installation of said servers convenient
  • For developers of apps supporting local MCP servers, we aim to make it easy to add support for MCPB bundles

Claude for macOS and Windows uses the code in this repository to enable single-click installation of local MCP servers, including a number of end user-friendly features - such as automatic updates, easy configuration of MCP servers and the variables and parameters they need, and a curated directory. We are committed to the open ecosystem around MCP servers and believe that its ability to be universally adopted by multiple applications and services has benefits developers aiming to connect AI tools to other apps and services. Consequently, we’re open-sourcing the MCP Bundle specification, toolchain, and the schemas and key functions used by Claude for macOS and Windows to implement its own support of MCP Bundles. It is our hope that the mcpb format doesn’t just make local MCP servers more portable for Claude, but other AI desktop applications, too.

For Bundle Developers

At the core, MCPB are simple zip files containing your entire MCP server and a manifest.json. Consequently, turning a local MCP server into a bundle is straightforward: You just have to put all your required files in a folder, create a manifest.json, and then create an archive.

To make this process easier, this package offers a CLI that helps you with the creation of both the manifest.json and the final .mcpb file. To install it, run:

npm install -g @anthropic-ai/mcpb
  1. In a folder containing your local MCP server, run mcpb init. This command will guide you through the creation of a manifest.json.
  2. Run mcpb pack to create a mcpb file.
  3. Now, any app implementing support for MCPB can run your local MCP server. As an example, open the file with Claude for macOS and Windows to show an installation dialog.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →