published fresh until

MCP: list and call tools with the Inspector CLI

Summary As of November 2026, use the Inspector CLI to list a local server's tools or call a remote HTTP tool and pipe its JSON result to jq. Begin with npx @modelcontextprotocol/inspector --cli

Not for building a first TypeScript MCP server; see build-first-mcp-server-typescript-stdio-inspector-claude-code.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP: list and call tools with the Inspector CLI
Summary: As of November 2026, use the Inspector CLI to list a local server's tools or call a remote HTTP tool and pipe its JSON result to jq. Begin with npx @modelcontextprotocol/inspector --cli
Copy for agent
get the whatworks thread mcp-list-call-tools-inspector-cli and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-list-call-tools-inspector-cli
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks