Back to Home
MatMercer icon

mcpinspect

Verified Safe

by MatMercer

Overview

A CLI tool to inspect MCP (Model Context Protocol) servers configured for Claude Code.

Installation

Run Command
mcpinspect

Security Notes

The `stdio` server type executes arbitrary commands and arguments directly from the `.claude.json` configuration file via `exec.CommandContext`. If the config file is compromised or contains malicious entries (e.g., a `stdio` server with `command: "rm", args: ["-rf", "/"]`), running `mcpinspect <server-name>` for such a server could lead to arbitrary code execution. The tool correctly uses the macOS keychain for OAuth tokens instead of hardcoding, which is a good security practice. However, the direct execution of user-defined commands for `stdio` servers presents a significant risk if the user's configuration file is not implicitly trusted.

Similar Servers

Stats

Interest Score33
Security Score6
Cost ClassLow
Avg Tokens300
Stars1
Forks0
Last Update2025-11-22

Tags

CLIMCPInspectionClaude CodeGo