# MCP Server

The rise of AI coding agents like [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [OpenCode](https://opencode.ai/), [Cursor](https://cursor.com/), and [GitHub Copilot](https://github.com/features/copilot) has transformed how developers write code. These tools can generate entire features, debug complex issues, and refactor code at unprecedented speed - but their effectiveness depends heavily on how well they understand your issues.

Inspector MCP server allows AI clients to consume your application monitoring data, helping them spotlight the exact code changes needed to fix bugs and improve application performance.

### What the Inspector MCP Server Actually Does

The MCP server creates a bridge between AI code assistant and your Inspector monitoring data. Your AI assistant gains access to performance metrics, error analyses, database queries, and application health indicators.

They can investigate slow transactions, the execution timeline and performance data of everything happen into your application while running the actual production environment.

Rather than switching between multiple tools, you maintain a single conversation thread where coding questions and production monitoring blend seamlessly.

{% embed url="<https://www.youtube.com/watch?v=Z_BNykUXGb8>" %}

### Getting Started

The communication between your coding agent and Inspector needs authentication. Before moving forward you need to create an [**API key**](https://app.inspector.dev/account/api).

Navigate to your **Application Settings** in the Inspector dashboard to copy the proper configuration. Here are ready to use configurations for most commomn ai coding asisstant.

#### Claude Code

```
claude mcp add --transport http inspector https://app.inspector.dev/mcp?app=xxxx --header "Authorization: Bearer YOUR_API_KEY"
```

#### VS Code

```json
{
    "mcp": {
        "servers": {
            "inspector": {
                "type": "http",
                "url": "https://app.inspector.dev/mcp?app=xxxx",
                "headers": {
                    "Authorization": "Bearer YOUR_API_KEY"
                }
            }
        }
    }
}
```

#### Cursor

```json
{
  "mcpServers": {
    "inspector": {
      "url": "https://app.inspector.dev/mcp?app=xxxx",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

If you need to configure the MCP connection in other agent you need to setup two mandatory parameters:

* URL with the APP you want to connect (e.g. <https://app.inspector.dev/mcp?app=9583>)
* Authorization token

Verify the connection with a simple prompt, like: “*Are there errors in the app production environment?*”

Once connected, your AI assistant gains access to comprehensive monitoring data, including performance metrics, errors, bug fix suggestions, database query analysis, and more.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inspector.dev/concepts/mcp-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
