# 使用 Homebrew, MacPorts 安装 mcp-inspector

查看 mcp-inspector 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mcp-inspector
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mcp-inspector
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mcp-inspector
```

  证据: MacPorts ports tree: llm/mcp-inspector/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mcp-inspector
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mcp-inspector>
- **版本:** 0.22.0
- **来源摘要:** Visual testing tool for MCP servers
- **主页:** <https://modelcontextprotocol.io/docs/tools/inspector>
- **仓库:** <https://github.com/modelcontextprotocol/inspector>
- **上游文档:** <https://github.com/modelcontextprotocol/inspector#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/@modelcontextprotocol/inspector/-/inspector-0.22.0.tgz>
- **最后更新:** 2026-06-05T17:14:41Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- mcp-inspector (cli)
- mcp-inspector (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.22.0
- 管理器更新时间: 2026-06-05
- 本地数据: OK
- 上游仓库: https://modelcontextprotocol.io/docs/tools/inspector
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

MCP Inspector is the official visual testing and debugging tool for Model Context Protocol servers. It packages a browser UI and a local proxy so developers can exercise MCP servers over stdio, SSE, or Streamable HTTP while inspecting tools, resources, prompts, and authentication behavior.

### 项目历史

The public repository was created under the modelcontextprotocol GitHub organization in October 2024, shortly before MCP tooling became a common dependency of AI-editor and desktop-agent workflows. Its README describes a two-part architecture: a React-based MCP Inspector Client and a Node.js MCP Proxy that bridges the browser UI to MCP servers.

The official MCP documentation treats the Inspector as a developer tool and links it from the developer-tools section of the docs site. Later README updates added explicit proxy authentication and security guidance after the project became a common way to run local MCP processes from a browser-driven workflow.

### 采用历史

The Inspector is distributed primarily as an npm-executed tool, with the README documenting `npx @modelcontextprotocol/inspector` as the quick-start path and a container image as an alternative. Homebrew packaging gives macOS and Linux package-manager users a pinned `mcp-inspector` executable for the same official tool.

GitHub repository metadata showed more than ten thousand stars and more than a thousand forks by July 2026, which is unusually high for a protocol-specific debugging utility and reflects its role as the default manual test harness for MCP server authors.

### 使用方式

Typical use is to launch the Inspector with no arguments for UI mode, or to pass an MCP server command such as `node build/index.js` so the tool can start the server and connect through its proxy. The README documents default local ports 6274 for the client UI and 6277 for the proxy server.

The Inspector can export server entries or complete MCP server files for use in clients such as Cursor, Claude Code, or the Inspector CLI. Its docs also warn that the proxy can spawn local processes and should not be exposed to untrusted networks.

### 为什么软件包爱好者会关心

For package users, MCP Inspector is the rough equivalent of a protocol REPL plus GUI debugger: it lets a packaged MCP server be smoke-tested without building a bespoke client. That made it a natural Homebrew formula despite the upstream Node-centric install path.

Its significance is also operational. Because MCP servers often ship as tiny CLI packages launched by larger clients, a standalone inspector gives maintainers a reproducible way to debug transport, environment-variable, and authentication issues outside any one host application.

### 时间线

- 2024: GitHub repository created under modelcontextprotocol/inspector.
- 2025: Inspector documented as the official MCP visual testing and debugging tool.
- 2025: Proxy authentication and security guidance documented in the README.
- 2026: Repository metadata showed broad adoption with thousands of stars and forks.

### Related projects

- modelcontextprotocol/registry provides the official MCP server registry and publisher CLI.
- sparfenyuk/mcp-proxy and geelen/mcp-remote solve adjacent MCP transport-bridging problems.
- MCP SDKs and example servers provide the protocol implementations commonly tested with the Inspector.

### 来源

- <https://api.github.com/repos/modelcontextprotocol/inspector>
- <https://github.com/modelcontextprotocol/inspector>
- <https://github.com/modelcontextprotocol/inspector#readme>
- <https://modelcontextprotocol.io/docs/tools/inspector>
- source_facts.description
- source_facts.package-manager-url


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mcp-inspector
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- MacPorts - mcp-inspector: normalized package name match | MacPorts ports tree: llm/mcp-inspector/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [MCP tool packages](https://www.automicvault.com/zh-hans/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [chrome-devtools-mcp](https://www.automicvault.com/zh-hans/pkg/brew/chrome-devtools-mcp/) - Shares av.db curated category or tags: cli, debugging, developer-tools, mcp.
- [klee](https://www.automicvault.com/zh-hans/pkg/brew/klee/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, testing.
- [airtable-mcp-server](https://www.automicvault.com/zh-hans/pkg/brew/airtable-mcp-server/) - Shares av.db curated category or tags: cli, developer-tools, mcp.
- [allure](https://www.automicvault.com/zh-hans/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [artillery](https://www.automicvault.com/zh-hans/pkg/brew/artillery/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [busted](https://www.automicvault.com/zh-hans/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [bzt](https://www.automicvault.com/zh-hans/pkg/brew/bzt/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-fuzz](https://www.automicvault.com/zh-hans/pkg/brew/cargo-fuzz/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [mcp-get](https://www.automicvault.com/zh-hans/pkg/brew/mcp-get/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, mcp, node.
- [mcp-remote](https://www.automicvault.com/zh-hans/pkg/brew/mcp-remote/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, mcp, node.

## Combined YAML source

View the package source record on GitHub. [combined/mcp-inspector.yml](https://github.com/automic-vault/db/blob/main/combined/mcp-inspector.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
