Skip to main content

Test page speed with Claude Code

You can connect Claude Code to your DebugBear account using the DebugBear MCP server. This lets Claude Code run page speed tests, query real user metrics, add timeline annotations, and perform other DebugBear actions directly from your terminal.

How to add the DebugBear MCP server

After entering Claude Code in the terminal, run the following command to start the setup.

claude mcp add --transport http dbb https://www.debugbear.com/mcp

Then approve the command.

Approve command

The terminal will then show the DebugBear MCP server has been added.

DebugBear MCP server added

The next step is to authenticate the MCP server with your DebugBear account. Run /mcp to view the options.

Run MCP command

The MCP servers will be presented, select the DebugBear MCP which may be listed under Unused connectors.

MCP server list

Select authenticate when prompted.

Authenticate MCP server

A new browser window will open, where you will need to log in to your DebugBear account.

Approve access request

Once approved, return to the terminal and press Enter. A success message should show.

Authentication successful

How to use the DebugBear MCP server in Claude Code

Running the /mcp command and then selecting View Tools will show the list of commands. Each command can be viewed with a description.

You can use the MCP server to view monitored pages, check test result data, or run page speed tests.

Claude Code will then use the available MCP tools to fetch the data and generate a response. In this example, we ran list_projects to show an overview of each of the projects in our account.

List projects