Connect an AI agent
Step-by-step setup of the inspector.rest MCP server in Claude, Claude Code, Cursor, VS Code and other MCP clients, with OAuth sign-in or a personal token.
The server address is the same for every client:
https://mcp.inspector.rest/mcpYou can connect in two ways. Clients that support OAuth need no token: you sign in to inspector.rest and choose what the agent may see. For other clients, create a personal token in the console under MCP access (console.inspector.rest/<org-slug>/mcp) and send it as Authorization: Bearer irt_.... See Access, scopes and masking for the differences.
- In Claude, open Settings → Connectors and add a custom connector.
- Paste the server URL.
- Sign in to inspector.rest. On the consent screen choose the organization, what the agent can see, the tool groups, masking and the expiry.
Claude connects with OAuth, so you do not need a token. The connection appears under MCP access in the console once you allow it.
Add the server:
claude mcp add --transport http inspector-rest https://mcp.inspector.rest/mcpThen run /mcp in Claude Code, choose inspector-rest and Authenticate to sign in.
To use a token instead of signing in:
claude mcp add --transport http inspector-rest https://mcp.inspector.rest/mcp \
--header "Authorization: Bearer irt_..."Add the server to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"inspector-rest": {
"url": "https://mcp.inspector.rest/mcp",
"headers": { "Authorization": "Bearer irt_..." }
}
}
}Without headers, giving only the url makes Cursor start the OAuth sign-in.
Add the server to .vscode/mcp.json:
{
"servers": {
"inspector-rest": {
"type": "http",
"url": "https://mcp.inspector.rest/mcp",
"headers": { "Authorization": "Bearer irt_..." }
}
}
}Any client that supports the Streamable HTTP transport can connect. Use the server URL and either OAuth (if the client supports it) or an Authorization: Bearer irt_... header. Windsurf and other clients that take a URL and headers use the same settings as Cursor.
To try the server by hand:
curl -s https://mcp.inspector.rest/mcp \
-H "Authorization: Bearer irt_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Create a token
- Open the console and go to MCP access.
- Choose New token.
- Name it, choose the scope (all projects, or selected projects and optionally environments), the tool groups, whether secrets are masked and the expiry.
- Copy the token. It is shown once, together with a ready-made command for your client.
Check that it works
Ask your agent: “List my inspector.rest environments.” It calls list_environments and shows the environments the connection can read. Then try “Summarize the errors in production over the last 24 hours.”
If something is wrong, see Troubleshooting.