# devcdp MCP server

> Provides an AI assistant with real Chrome DevTools access to inspect the console, network, DOM, and debugger for web application troubleshooting.

- Repository: https://github.com/Dayananda-D/DevCDP
- Page: https://hostedmcp.org/servers/dayananda-d/devcdp
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 5.0.1

## Install

### Claude Code

```sh
claude mcp add devcdp -- npx -y devcdp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "devcdp": {
      "command": "npx",
      "args": [
        "-y",
        "devcdp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "devcdp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "devcdp"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "devcdp": {
      "command": "npx",
      "args": [
        "-y",
        "devcdp"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.devcdp]
command = "npx"
args = ["-y", "devcdp"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "devcdp": {
      "command": "npx",
      "args": [
        "-y",
        "devcdp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `DEVCDP_CHROME_PATH` | no | no | Path to the Chrome executable, when it is not on the default install path. |
| `DEVCDP_LOG_LEVEL` | no | no | Server log verbosity on stderr: debug, info, warn or error. |

## FAQ

### What can the assistant see in the console?

The assistant can access logs, warnings, and uncaught exceptions, including the file name, 1-based line number, and stack trace.

### How does it handle source maps?

It can resolve source maps to recover original pre-bundling files, including external .map files located behind authentication, and supports full-text search across them.

### Can I interact with the web app while the assistant is using it?

Yes, you can take over at any time; your clicks, choices, and typing are recorded and readable by the assistant.

### What happens if a script enters an infinite loop?

The server enforces timeouts on calls into the page; if a page is wedged in an infinite loop, DevCDP will abort the runaway script and retry automatically.
