# Connect ByDomu to Claude (MCP)

Let Claude or another MCP client query your agency, read-only.

Guide Read-only Secret key

**Before you start.** You need an Inmobiliaria Pro or Enterprise plan (other plans with approved access), a verified email and to be past the free trial.

## Create a read-only secret key

In ByDomu, go to Settings › API Keys › New key, choose **Custom** and tick only these read permissions. Copy the key: the full key is shown only once.

What for Permission

Search and view listings `portal:read`

Search and view contacts `contacts:read`

Calendar and upcoming appointments `appointments:read`

Pipelines and deals `deals:read`

Pending tasks `tasks:read`

A contact’s messages (optional) `conversations:read`

## Connect your client

Paste the server address and the key into your client. In Claude Code it’s a single command:

Claude Code:

```
claude mcp add --transport http bydomu https://mcp.bydomu.com/mcp \
  --header "Authorization: Bearer domu_sk_live_XXXXXXXX"
```

Claude Desktop:

```
// claude_desktop_config.json
{
  "mcpServers": {
    "bydomu": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.bydomu.com/mcp",
               "--header", "Authorization:${BYDOMU_AUTH}"],
      "env": { "BYDOMU_AUTH": "Bearer domu_sk_live_XXXXXXXX" }
    }
  }
}
```

Cursor:

```
// .cursor/mcp.json
{
  "mcpServers": {
    "bydomu": {
      "url": "https://mcp.bydomu.com/mcp",
      "headers": { "Authorization": "Bearer domu_sk_live_XXXXXXXX" }
    }
  }
}
```

VS Code:

```
// .vscode/mcp.json
{
  "servers": {
    "bydomu": {
      "type": "http",
      "url": "https://mcp.bydomu.com/mcp",
      "headers": { "Authorization": "Bearer domu_sk_live_XXXXXXXX" }
    }
  }
}
```

Claude API:

```
// anthropic-beta: mcp-client-2025-11-20
"mcp_servers": [
  {
    "type": "url",
    "url": "https://mcp.bydomu.com/mcp",
    "name": "bydomu",
    "authorization_token": "domu_sk_live_XXXXXXXX"
  }
],
"tools": [{ "type": "mcp_toolset", "mcp_server_name": "bydomu" }]
```

OpenAI API:

```
{
  "type": "mcp",
  "server_label": "bydomu",
  "server_url": "https://mcp.bydomu.com/mcp",
  "headers": { "Authorization": "Bearer domu_sk_live_XXXXXXXX" },
  "require_approval": "never"
}
```

Claude Desktop uses `mcp-remote`; Cursor and VS Code take the URL and the header in their config. In claude.ai or ChatGPT, add a connector with the server address and sign in with your ByDomu account.

Step by step per destination: [Claude: claude.ai, Desktop and Code](https://developers.bydomu.com/en/guias/ia-claude) · [ChatGPT](https://developers.bydomu.com/en/guias/ia-chatgpt) · [Cursor, VS Code and other clients](https://developers.bydomu.com/en/guias/ia-editores) · [OpenAI API and Anthropic API](https://developers.bydomu.com/en/guias/ia-apis) · [Agents in n8n and LangChain](https://developers.bydomu.com/en/guias/ia-agentes).

## Test the connection

Ask your assistant for a summary. It should use the get_summary tool and answer with the plan, the key’s permissions and your account’s counts.

Or test it without an assistant, with cURL:

```bash
curl -s https://mcp.bydomu.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'Authorization: Bearer domu_sk_live_XXXXXXXX' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_summary","arguments":{}}}'
```

## If something fails

The tool returns the API error in plain words:

- **401** The key is missing or invalid. Check the header says “Bearer” followed by the full key.
- **403** You used a publishable key (domu_pk_) or the key lacks that tool’s permission.
- **429** You went over the per-minute limit. The error says how many seconds to wait.
