> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesgraph.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Claude

> Add the Salesgraph MCP server to Claude Desktop or Claude Code.

Salesgraph works with any Claude surface that supports MCP — Claude Desktop, Claude Code, and
custom agents built on the Claude API.

## Claude Code

Add the server with the `claude mcp add` command. It speaks streamable HTTP, so use the
`--transport http` flag and pass your key as a header:

```bash theme={null}
claude mcp add --transport http salesgraph https://salesgraph.com/api/mcp \
  --header "Authorization: Bearer sg_live_xxxxxxxxxxxx"
```

Verify it connected:

```bash theme={null}
claude mcp list
```

You should see `salesgraph` with its tools. Now ask Claude to use them, e.g. *"Use Salesgraph
to map Notion's competitors."*

## Claude Desktop

Claude Desktop reads MCP servers from its config file:

* **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
* **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

Add a `salesgraph` entry under `mcpServers`:

```json theme={null}
{
  "mcpServers": {
    "salesgraph": {
      "type": "http",
      "url": "https://salesgraph.com/api/mcp",
      "headers": {
        "Authorization": "Bearer sg_live_xxxxxxxxxxxx"
      }
    }
  }
}
```

Restart Claude Desktop. The Salesgraph tools appear in the tools menu.

<Note>
  If your build of Claude Desktop doesn't support remote HTTP servers directly, bridge it with
  [`mcp-remote`](https://www.npmjs.com/package/mcp-remote):

  ```json theme={null}
  {
    "mcpServers": {
      "salesgraph": {
        "command": "npx",
        "args": [
          "mcp-remote",
          "https://salesgraph.com/api/mcp",
          "--header",
          "Authorization: Bearer sg_live_xxxxxxxxxxxx"
        ]
      }
    }
  }
  ```
</Note>

## Next

Once connected, see what's available in the [tools reference](/tools/overview).
