Inspect

Inspect MCP

Inspect MCP lets AI tools that speak the Model Context Protocol hand work to Inspect. From an editor, terminal, or chat app, you can start a session, check on it, send follow-ups, and use anything else in the Inspect API.

The server URL is https://app.inspect.com/mcp. Tools that support MCP OAuth connect by signing in to Inspect in the browser. Other tools send an API key in the Authorization header.

What the server exposes

The server offers two tools over the public API:

  • search runs JavaScript against the OpenAPI schema so the client can find endpoints and their parameters.
  • execute runs JavaScript that calls /api/v2 endpoints through codemode.request, so one tool call can chain several requests and return only what's needed.

Each tool call has 60 seconds to finish. Calls can only reach paths under /api/v2/. Requests run as you, with the same permissions, rate limits, and spend limits as direct API calls. With an API key, the key's restrictions, such as read-only and the IP allowlist, apply too.

Connect with OAuth

Clients that support MCP OAuth connect to the same URL without an API key. The client opens Inspect in your browser, where you sign in and approve it. Approval grants the codemode scope: the client can use the two tools above as you, with your current permissions. OAuth tokens work only through the MCP server, not against the REST API directly.

Connect your tool

Create an API key

Open Settings → API keys, choose Create API key, and copy the key. Inspect shows it only once. Personal keys unused for 21 days are revoked automatically. Claude chat and ChatGPT on the web sign in with OAuth instead, so you can skip to step 3 for them.

Save the key on your computer

Set INSPECT_API_KEY for Claude Code, Codex, Cursor, Copilot CLI, and OpenCode; the macOS and Linux commands below save the key in your shell configuration. Replace paste-your-api-key-here with your key and run the command for your system.

echo 'export INSPECT_API_KEY="paste-your-api-key-here"' >> ~/.zshrc
source ~/.zshrc

If your terminal uses Bash, replace ~/.zshrc with ~/.bashrc.

Quit and reopen any app or terminal that was already open so it picks up the key. Skip this step for Glass, VS Code, and Antigravity: you paste the key into them directly.

Add Inspect to your tool

Pick your tool and follow its tab.

Claude Code

This covers Claude Code in the terminal, in your editor, and in the Code tab of the Claude desktop app. Run this in your terminal once:

claude mcp add inspect \  --scope user \  --transport http https://app.inspect.com/mcp \  --header "Authorization: Bearer $INSPECT_API_KEY"

Run claude mcp list to confirm that inspect shows as connected.

Connecting Claude Code to Inspect over MCP

Claude chat

To use Inspect in regular Claude chats on claude.ai, the desktop app, or Cowork, add it as a custom connector. You don't need an API key for this.

  1. Open Customize → Connectors, choose + Add, then Add custom connector.
  2. Name it Inspect, paste the server URL above, and choose Continue.
  3. Choose Add, then Connect, and approve Claude in the Inspect window that opens.

On Team and Enterprise plans, an owner adds the connector in Organization settings → Connectors, and each member then connects with their own Inspect account.

Try it

Ask your tool something like:

Use Inspect to list my five most recent sessions.

If it answers with your sessions, you're connected. Next, try:

Start an Inspect session in our web repository to fix the flaky checkout test.

Use your organization's skills

The server also shares the Inspect skills you can see through the MCP Skills extension. Each skill is a skill://<skill-id>/ directory whose SKILL.md and supporting files are MCP resources. Clients that support the extension discover skills with skills/list and skills/get; other clients can browse and read the same files as resources. A skill whose SKILL.md does not follow the Agent Skills naming rules stays readable but is not listed.

Troubleshooting