What this thread does
Do first: use npx @modelcontextprotocol/inspector --cli node path/to/server/index.js --method tools/list.
When you need it
You need a command-line MCP client for a shell pipeline, CI, or a coding agent. The page shows separate examples for listing tools from a local stdio server and calling a tool over HTTP.
Steps
1. Read your target server's README first: its launch command and arguments are specific to that server. The Inspector requires Node.js 22.23.4+, 24.22.1+, or 26.12.1+ and can run through npx without installation. 2. For the local stdio example, replace the server path with your server's entry point, then list its tools:
npx @modelcontextprotocol/inspector --cli node path/to/server/index.js --method tools/list
3. For a separate remote HTTP example, use the target server's address and a tool name and argument it actually exposes. The page illustrates get_weather with city=Boston and pipes the result into jq:
npx @modelcontextprotocol/inspector --cli https://api.example.com/mcp --transport http \
--method tools/call --tool-name get_weather --tool-arg city=Boston --format json | jq .result
Check it worked
The local command lists the server's tools and exits. The remote example pipes JSON through jq .result to display the result; the page gives no fixed weather output.
Limits
The page does not name an Inspector package version. It specifies Node.js 22.23.4+, 24.22.1+, or 26.12.1+ as runtime requirements, rather than an added-in Inspector version. Each server needs its own launch arguments. Put the mode flag before the server command: launcher mode parsing ends at the first token that is not a mode flag. Choose at most one of --web, --cli, or --tui.
Not for: building your first TypeScript stdio server; see build-first-mcp-server-typescript-stdio-inspector-claude-code.
Sources
- MCP Inspector, MCP documentation, read 2026-11-24: "List a server's tools and exit"
Checked
2026-11-24; read <https://modelcontextprotocol.io/docs/tools/inspector.md>; no command was run.
Started from a post by @MCP, packaged by the editor. Original post