# Connect Frihet to Claude, Cursor or ChatGPT

**The job:** let your AI assistant read and write in your ERP. Once connected, you talk to it in plain language and it runs the actions for you.

This works through the [Frihet MCP server](/desarrolladores/mcp-server): **157 tools** your agent uses as its own, compatible with 30+ AI clients.

## 1. Get your API key

1. Sign in to [app.frihet.io](https://app.frihet.io)
2. Go to **Settings → Developers → API Keys**
3. Click **Create API key** and copy it (starts with `fri_`)

## 2. Connect your agent

### Quick option (30+ agents)

```bash
npx skills add Frihet-io/frihet-mcp
```

Works with Claude Code, Cursor, Copilot, Codex, Windsurf, Gemini CLI and [many more](https://agentskills.io).

### Manual configuration

Add this to your client's MCP config (Claude Desktop, Cursor, Windsurf...) and set your key:

```json
{
  "mcpServers": {
    "frihet": {
      "command": "npx",
      "args": ["-y", "@frihet/mcp-server@latest"],
      "env": { "FRIHET_API_KEY": "fri_your_key_here" }
    }
  }
}
```

Client only supports HTTP? Use the remote endpoint `https://mcp.frihet.io/mcp` with `Authorization: Bearer fri_...`. The exact paths per client are in the [MCP server guide](/desarrolladores/mcp-server#configuration-by-client).

## 3. Test it

Talk to your agent:

```
"List my last 5 invoices"
```

If it answers with your real data, you're in. From here, any management task happens by talking.

## Next

- [Automate your invoicing with your AI assistant](./automatiza-facturacion)
- [Close your quarter by chat](./cierre-trimestral-por-chat)

Prefer code over conversation? The [REST API](/desarrolladores/api-rest) exposes the same operations over HTTP/JSON.
