The MCP Inspector supports remote servers using different transport protocols.
SSE (Server-Sent Events) Transport
For remote SSE servers, pass the URL directly as the command.
List tools from remote SSE:
npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com --method tools/list
Streamable HTTP Transport
Use the --transport http flag for HTTP-based transport. You can also pass custom headers using the --header flag.
Call a tool on remote HTTP server with headers:
npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com \
--transport http \
--method tools/call \
--tool-name remotetool \
--tool-arg param=value \
--header "X-API-Key: your-api-key"
npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com --transport http --method tools/list