Easily inspect and interact with MCP servers directly from Visual Studio Code—no need to download external inspectors. This extension provides seamless integration for monitoring and debugging MCP protocols within your development environment
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Inspect, debug and interact with Model Context Protocol
servers without leaving Visual Studio Code. MCP Inspector connects to a server,
lists the tools it exposes, and lets you run them with your own arguments — no
separate inspector process required.
Features
Connect to a local server over STDIO, or to a remote URL with automatic Streamable HTTP → SSE detection
Reach servers behind a private CA or mutual TLS with built-in certificate pickers (desktop)
Sign in to OAuth-protected servers in the desktop app or VS Code for the Web, with tokens kept in VS Code SecretStorage
Add custom headers per server, including Authorization: Bearer … tokens
Pick a server script with the native file dialog, or type a command such as npx
Browse every tool a server exposes, including its input schema
See MCP Apps badges and preflight findings, run tools independently, and render a View with an optional execution context
Execute tools with typed schema fields (text, number, boolean, enum, JSON), a raw-JSON mode, live progress, elapsed time, pretty-printed JSON results, and one-click copy
Diagnose failures with classified error cards — endpoint/command, DNS, TLS, CORS, auth, network, protocol, or tool — with Retry, Open settings, Copy curl, and Use relay where they apply
Launch from the activity-bar view or the Command Palette, and inspect in a full panel
Run in the desktop app and in VS Code for the Web, with a relay fallback when a server blocks the browser origin
For agents and CI
The same core ships as mcp-inspector, a headless checker. It asks whether a
server's MCP Apps metadata will render before a host tries, and it never
opens a browser.
Until the npm package is published, install it from GitHub:
The installer keeps a checkout in ~/.mcp-inspector/src, builds the CLI, and
writes mcp-inspector to ~/.local/bin (macOS/Linux) or
%USERPROFILE%\.mcp-inspector\bin (Windows). Re-run it to update. Override the
location with MCP_INSPECTOR_HOME or MCP_INSPECTOR_BIN_DIR, or pin a tag with
MCP_INSPECTOR_REF=v1.0.0.
apps check runs APP001–APP015 and compares both handshakes: with and
without io.modelcontextprotocol/ui. --call-tools also exercises
tools/call, which turns on the result checks.
apps render mounts a View without calling a tool by default. Use
--execution <id>, --latest, or --random to render with a saved
execution, or --run --args '<json>' (with --yes in non-interactive
terminals) to execute explicitly. Rendering never repeats a saved execution.
It needs Chromium: npx playwright install chromium. The other commands do
not need a browser.
tools call saves every execution. executions list shows them. The history
lives in ~/.mcp-inspector/executions.json; set MCP_INSPECTOR_HISTORY to
use another file.
Output is JSON when stdout is not a TTY. Force it with --json, ask for a
human summary with --pretty, or stream every wire message with --ndjson.
Exit codes: 0 clean, 1 error findings, 2 could not connect, 3 usage.
Every document has a schema field such as
mcp-inspector/apps-check@1. mcp-inspector schema apps check prints its
JSON schema, and --help --json describes the commands for an agent.
Headers: --header 'Authorization: Bearer …', or
MCP_INSPECTOR_HEADER_AUTHORIZATION=… in the environment.
Select the MCP Inspector icon in the activity bar.
Run the Create New MCP Request command from the Command Palette.
Choose the server type:
Local (STDIO) — pick the server script with Browse…, or type a command such as npx, then add arguments
Remote (URL) — enter the endpoint, for example https://example.com/mcp
Choose how to authenticate:
Automatic (browser sign-in) — if the server answers 401, the inspector opens its sign-in page
Static header / token — add an Authorization header below; no sign-in flow starts
Remote, desktop only: if the server uses a private CA or mutual TLS,
open the TLS section under Headers and use Browse… for the CA
bundle, client certificate, and key. The paths are saved automatically.
After connecting, Tools run independently with Run. A tool that
declares a View gets an MCP App ↗ link.
MCP Apps has one card per ui:// resource and lists every associated
tool. Render here / Open beside mount the View without running a
tool. Run & render on a tool runs it once and renders the View with that
result. Initial context can reuse a previous execution without running
the tool again.
Executions keeps arguments, results, status, source and duration.
Protocol shows the actual server and View messages, grouped by lifecycle
or as a raw chronological stream.
Remote endpoints are tried as Streamable HTTP first, then SSE. A URL ending in
/sse is tried as SSE first. The status line names the transport that worked.
Header values are kept in memory for the session and are not written to workspace
storage, so header values do not end up on disk.
OAuth sign-in
Some remote servers answer 401 and require OAuth. Connect as usual: the
inspector opens the server's sign-in page, waits for the redirect, and retries
the connection when you finish. To skip sign-in, select Authentication →
Static header / token and add an Authorization: Bearer … header.
Client registrations, PKCE verifiers, and tokens are kept in VS Code
SecretStorage, scoped to the server's origin and path. They are never written to
workspace files or webview state.
In VS Code for the Web, the server's OAuth endpoints must allow the editor's
origin via CORS. If they do not, the built-in relay can proxy them; while
proxying it can see the authorization code and token response but does not store
or log them. See WEB.md for the relay flow, required CORS headers, and
the static-token alternative.
Private CAs and client certificates
Remote servers that use a certificate from a private CA, or that require mutual
TLS (mTLS), work in the desktop app. Open the TLS section under Headers
and use Browse… for each file. The chosen paths are saved to settings, so
they persist across sessions and stay visible in the Settings UI.
Setting
Purpose
mcp--inspector.tls.caFile
CA bundle (PEM) the server chain is verified against
Only paths are stored. Certificate and key contents are read from disk when a
connection starts and are never written to settings, workspace files, or
SecretStorage. Server verification is never disabled: a private CA widens what
is trusted, and an unconfigured server still fails.
The client certificate and key must be set together. TLS settings apply to
Streamable HTTP, SSE, and the OAuth discovery and token requests those
transports make.
These settings are desktop-only. In VS Code for the Web, the browser owns the
TLS handshake: it trusts the operating system's certificate store and can offer
a client certificate already installed there, but a web extension cannot supply
a CA bundle or key file. See
WEB.md.
Commands
Command
Description
mcp--inspector.createNewRequest
Open the MCP Inspector panel and start a new request
Requirements
Visual Studio Code 1.98.0 or newer
VS Code for the Web
MCP Inspector works in vscode.dev and github.dev for remote servers, using
the same automatic Streamable HTTP / SSE detection. OAuth sign-in works there
too; STDIO requires the desktop app or Codespaces.
If a server does not allow the browser origin, the inspector offers the
open-source relay at https://mcp-relay.dhananjaay.dev. See WEB.md for
CORS requirements, relay usage, localhost notes, and troubleshooting.
Contributing
Contributions are welcome. Read CONTRIBUTING.md for local setup,
commit conventions, and the pull request process.
Known limitations
TLS settings are desktop-only. In VS Code for the Web the browser owns the
TLS handshake, so a private CA or client certificate cannot be supplied.
STDIO servers require the desktop app or Codespaces.
OAuth-protected servers in VS Code for the Web must allow the editor origin,
or be used through the relay.
Tool forms map top-level properties. Nested objects and arrays are edited as
JSON, and oneOf/anyOf schemas fall back to a text field.
One server connection at a time; multi-server workspaces are not supported yet.
Tools are listed and called; prompts and resources are not exposed yet.