# Direct integration

From the Lero API docs: https://lero.studio/docs/en#integracao. Everything in one file: https://lero.studio/docs/en/llms-full.txt.

Use Lero in Claude, Codex or Cursor without writing code. Create a key at [app.lero.studio/desenvolvedores](https://app.lero.studio/desenvolvedores?aba=chaves) and run your agent's command, with your key in place of `lero_your_key`:

Claude Code:

```bash
claude mcp add --env LERO_API_KEY=lero_your_key lero -- npx -y lero-mcp
```

Codex:

```bash
codex mcp add lero --env LERO_API_KEY=lero_your_key -- npx -y lero-mcp
```

Cursor:

```json
{
  "mcpServers": {
    "lero": {
      "command": "npx",
      "args": [
        "-y",
        "lero-mcp"
      ],
      "env": {
        "LERO_API_KEY": "lero_your_key"
      }
    }
  }
}
```

Claude Desktop:

```json
{
  "mcpServers": {
    "lero": {
      "command": "npx",
      "args": [
        "-y",
        "lero-mcp"
      ],
      "env": {
        "LERO_API_KEY": "lero_your_key"
      }
    }
  }
}
```

In Cursor, the JSON goes in `~/.cursor/mcp.json`. In Claude Desktop, in Settings > Developer > Edit Config. Needs Node 18 or newer.

Done: ask for audio in the chat, for example *make an audio in the Rio voice saying "bom dia, tudo certo?"*, and the agent saves the MP3 in `~/Downloads/Lero`. More about the MCP in [Build with AI](https://lero.studio/docs/en/ai#mcp).

To put Lero in your product's code, paste the [integration prompt](https://lero.studio/docs/en/ai#prompt) into your coding agent, or follow the quickstart below.
