MCP服务器检查工具

一款用于检查MCP服务器配置的工具,可列出已配置的MCP服务器及其工具,适用于Claude Code命令配置场景。

  • by MatMercer
  • Go
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 MatMercer/mcpinspect

使用说明

mcpinspect

用于检查MCP服务器的工具。

在配置Claude Code命令时,我注意到没有简单的方法为项目命令指定允许的MCP工具,这个工具可以很容易地列出配置的MCP服务器。

警告: 允许执行操作(创建、更新、删除)的MCP工具时要小心。在授予访问权限之前,请查看工具说明。

支持的操作系统和工具

  • MacOS
    • 克劳德代码

安装

macOS(苹果硅)

curl -L https://github.com/MatMercer/mcpinspect/releases/latest/download/mcpinspect_macOS_arm64.zip -o mcpinspect.zip
unzip mcpinspect.zip
chmod +x mcpinspect
sudo mv mcpinspect /usr/local/bin/

# zsh requires this for auto complete
rehash

用法

mcpinspect [server-name] [flags]

Flags:
  -c, --config string   path to Claude config file (default "~/.claude.json")
  -h, --help            help for mcpinspect

示例

列出所有已配置的MCP服务器

$ mcpinspect
NAME           TYPE   URL                         COMMAND
linear-server  http   https://mcp.linear.app/mcp  [N/A]
...

检查特定服务器的工具

$ mcpinspect linear-server
NAME                  DESCRIPTION
create_comment        Create a comment on a specific Linear issue
create_issue          Create a new Linear issue
create_issue_label    Create a new Linear issue label
create_project        Create a new project in Linear
get_document          Retrieve a Linear document by ID or slug
get_issue             Retrieve detailed information about an issue by ID
...

23 tools | http | Linear MCP v1.0.0

使用自定义配置文件

$ mcpinspect -c /path/to/custom/claude.json

鸣谢

@ocervell-GO释放骨架