# 使用 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
- **版本:** 2.0.0
- **来源摘要:** Visual testing tool for MCP servers
- **主页:** <https://modelcontextprotocol.io/docs/tools/inspector>
- **最后更新:** 2026-07-30T03:58:44Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mcp-inspector (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.0
## 项目历史与用法

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

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

- 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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
