# Dejo MCP server setup: install in a minute

> Install the Dejo MCP server with pip, add it to Claude Code, Codex or Cursor, and run your first website task. Free and open source; it takes about a minute.

Canonical: https://dejo.run/docs

> For AI agents: the index of this site is https://dejo.run/llms.txt, and every page is also served as markdown (add .md to its address, or send Accept: text/markdown).

Dejo gives your AI agent a browser that remembers websites. The first time your agent does a task on a site, it explores and Dejo learns the route. Every time after that, the whole task is one tool call, with zero model calls.

Setup takes about a minute. You need **Python 3.11 or newer**.

## 1. Install Dejo

```bash
pip install dejo-mcp
playwright install chromium
```

The second command downloads the browser Dejo drives, about 150 MB. If you have Google Chrome installed, Dejo uses it, and falls back to this Chromium when it can't.

## 2. Add it to your agent

Dejo is one MCP server with no arguments. Pick your agent:

| agent | where | what to add |
|---|---|---|
| Claude Code | your terminal | `claude mcp add --scope user dejo -- dejo-mcp` |
| Codex | `~/.codex/config.toml` | `[mcp_servers.dejo]` and `command = "dejo-mcp"` |
| Cursor | `~/.cursor/mcp.json` | `"dejo": { "command": "dejo-mcp" }` under `mcpServers` |
| anything else | as a stdio server | the command `dejo-mcp` |

Step-by-step pages: [Claude Code](https://dejo.run/docs/claude-code), [Codex](https://dejo.run/docs/codex), [Cursor](https://dejo.run/docs/cursor). For VS Code, Claude Desktop or any other client, the [MCP config generator](https://dejo.run/tools/mcp-config-generator) writes the exact block.

## 3. Check the install

```bash
dejo doctor
```

It checks Python, the browser, the browser profile, the memory file and the downloads folder. Anything missing is named, with the command that fixes it. The last line says `Everything Dejo needs is here.` when you are ready.

## 4. Ask for something on a website

Start a new chat with your agent and ask in your own words:

> Go to github.com/microsoft/playwright and tell me how many open issues it has.

The first time, your agent explores the site and saves the route. Ask again, in a new chat, and it is one `dejo_run` call: no page reading, no reasoning.

## What happens on each run

1. Your agent calls `dejo_run` first, for any website task.
2. **Known task:** Dejo replays the saved route and returns the answer. Every step has a check that proves it landed.
3. **New site or new task:** Dejo says so and shows the page. Your agent sends the steps in its next `dejo_run` call, one per line, ending with a `read` of the answer. The route is stored by itself.
4. **The site changed:** Dejo stops at the one step that broke and shows your agent the page as it is now. Your agent sends one line for that step. Only that step is updated, the old ways to find it stay as backups, and the rest of the route runs in the same call.

## Where Dejo keeps things

Everything lives in one folder, `~/.dejo`, on your machine:

| what | where |
|---|---|
| routes, site facts, page maps, history | `~/.dejo/memory.db`, one SQLite file |
| signed-in browser profiles | `~/.dejo/browser-profile`, `~/.dejo/profiles/` |
| downloads | `~/.dejo/downloads` |
| passwords, if you choose to keep them in a file | `~/.dejo/secrets.json` |

To make Dejo forget a site completely:

```bash
dejo forget --site github.com
```

The next run says the memory is gone. It does not quietly fall back to guessing.

## Next steps

- [Keep your agent signed in](https://dejo.run/docs/sign-in) to sites that need a login.
- [See every tool](https://dejo.run/docs/tools) your agent gets.
- [Read the benchmark](https://dejo.run/benchmark): on 19 tasks across 11 real websites, 38% fewer tokens than Playwright MCP on the first run and 78% fewer on every run after.

## FAQ

## FAQ

### Do I need an API key or an account?

No. Dejo never calls a model. Your agent does the thinking, and the memory is a local file on your machine.

### Which agents work with Dejo?

Any agent that can run an MCP server. Dejo is one stdio server with no arguments. It has been set up with Claude Code, Codex and Cursor in these docs.

### Which operating systems does it run on?

Windows, macOS and Linux. Every change is tested on all three.

## Related

- [Browser automation in Claude Code: add a browser MCP](https://dejo.run/docs/claude-code)
- [Browser automation in Codex: the config.toml setup](https://dejo.run/docs/codex)
- [Cursor browser automation with a browser MCP](https://dejo.run/docs/cursor)
- [Keep your AI agent signed in to websites](https://dejo.run/docs/sign-in)
- [When a website changes: how Dejo replays safely](https://dejo.run/docs/when-the-site-changes)
- [Dejo MCP tools reference](https://dejo.run/docs/tools)
- [Troubleshooting Dejo](https://dejo.run/docs/troubleshooting)
