# corlabs.dev

> corlabs.dev is an open-source MCP server for browser automation. Give coding agents ranked, graded locators from a live page for browser tests. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/kushshah12/cor-mcp
- **MCP Registry name:** dev.corlabs/mcp
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

COR drives a real browser so an agent can look at a page before it writes a test. It opens the page, lists the controls with references, and then returns locators for the elements you name, ranked and graded, in the syntax of the framework it infers from your repo: Playwright, Cypress or WebdriverIO. Each recommendation comes as an entry to paste into your locator file, carrying a short id comment that later checks rely on.

Two tools keep locators honest over time. cor_check fails any locator in your files that did not come from COR, and cor_heal proposes a repair when a locator stops matching. The README advises using COR instead of Playwright MCP for test authoring, since a second browser server tempts an agent to type its own selectors.

COR writes small records to .cor/records in your project so repairs work on a teammate's machine or in CI; input values, cookies and storage are never stored, and emails, long digit runs and tokens are masked. The server sends anonymous usage metrics (tool name, duration, outcome, versions), which it describes in the README, and records can be turned off with --no-records.

## Features

- **Ranked, graded locators:** Returns several locators per element with a quality grade.
- **Framework-aware output:** Infers Playwright, Cypress or WebdriverIO and your locator store style.
- **Locator check:** cor_check fails locators in your files that did not come from COR.
- **Self-grading:** cor_grade scores a locator you wrote yourself.
- **Locator repair:** cor_heal proposes a fix for a locator that stopped matching.
- **Browser actions:** Click, fill and press, reporting what changed on the page.

## Good for

- Author Playwright tests with stable locators
- Repair broken selectors after a UI change
- Enforce that all locators in a repo are generated and graded
- Write page-object locators for a login form

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp -- npx -y @corlabsdev/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corlabsdev/mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corlabsdev/mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@corlabsdev/mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corlabsdev/mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corlabsdev/mcp"
      ]
    }
  }
}
```

## Tools

- `cor_open`: Open a page and list its controls with refs
- `cor_snapshot`: Text, controls and entries within one region of a large page
- `cor_inspect`: Ranked, graded locators for the elements you name
- `cor_click`: Click on the page and report what changed
- `cor_fill`: Fill a field and report what changed
- `cor_press`: Press a key and report what changed
- `cor_check`: Fail any locator in your files that did not come from COR
- `cor_grade`: Score a locator you wrote yourself
- `cor_heal`: Propose a repair for a locator that stopped matching
- `cor_close`: Close the browser

## FAQ

### What does corlabs.dev need?

Node 18+ and Google Chrome, Microsoft Edge or Playwright's Chromium.

### Which test frameworks are supported?

Playwright, Cypress and WebdriverIO, set through cor.config.js or inferred.

### Does corlabs.dev edit my files?

No. The agent places each entry; COR only writes records under .cor/records.

### Can I turn off the records?

Yes, use --no-records or set COR_RECORDS=off.

### Is corlabs.dev free?

Yes. corlabs.dev is open source, so you can use and self-host it for free.

### How do I add corlabs.dev to Claude Code?

Run this command in your terminal: claude mcp add mcp -- npx -y @corlabsdev/mcp

### What are the best alternatives to corlabs.dev?

The closest alternatives to corlabs.dev are Chrome DevTools MCP, Chrome DevTools MCP, Playwright MCP, Thinkrun and Chrome DevTools MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-4): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Playwright MCP](https://ai-powered.com/mcp/playwright-mcp): Playwright MCP is an open-source MCP server for browser automation.
- [Thinkrun](https://ai-powered.com/mcp/thinkrun): Thinkrun is a freemium MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-3): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Test Coverage MCP](https://ai-powered.com/mcp/test-coverage-mcp): Test Coverage MCP is an open-source MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Momentic](https://ai-powered.com/mcp/momentic): Momentic is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/corlabs-dev
