# Connect an agent

DataFocal is an MCP server. Once it's connected, your agent can ask what changed and why, and gets findings with the evidence attached.

The commands below use a local install's address. A Team workspace gives you its own address to use instead.

## Claude Code

```sh
claude mcp add --transport http datafocal http://localhost:8080/mcp
```

## Codex

```sh
codex mcp add datafocal --url http://localhost:8080/mcp
```

## Any MCP client

```json
{ "datafocal": { "url": "http://localhost:8080/mcp" } }
```

## What to ask

- "Where does our agent spend go?"
- "Why did that run fail?"
- "What changed since the deploy?"
- "Show me the raw events behind that number."

Queries from agents are unlimited, like everyone else's.
