# Hex MCP server

> Search Hex projects, ask data questions through Threads and build or edit notebook projects from your AI assistant.

- Listing: https://mcp.tc/i/hex
- Connect: use the server's own URL `https://app.hex.tech/mcp` (OAuth sign-in at the server); clients connect to it directly. The listing link is a page, not an MCP endpoint.
- Type: remote (Streamable HTTP)
- Auth: OAuth sign-in
- Category: [Data & Analytics](https://mcp.tc/c/analytics)
- Vendor: Hex
- Homepage: <https://learn.hex.tech/docs/api-integrations/mcp-server>

## About

Connects AI assistants to a Hex workspace. You can search projects, start and continue Threads conversations to explore data in natural language, and, with an Editor role, create projects and add, edit and run SQL, Python and Markdown cells.

Runs as a hosted streamable HTTP endpoint at app.hex.tech/mcp with OAuth sign-in. It is in beta, available on Team and Enterprise plans, and needs the Explorer workspace role or higher. Project editing tools need the Editor role. EU, HIPAA and single-tenant workspaces use their own Hex host.

## What it can do

- Search projects in a Hex workspace
- Start, read and continue Threads conversations about your data
- Create projects and read project metadata
- Read, create, update and delete SQL, Python and Markdown cells
- Run single cells or whole notebooks and poll run status
- Read SQL cell output and rendered chart images
- List workspace data connections

## Example prompts

- "Search Hex for projects about customer churn"
- "Start a Hex Thread asking which region had the highest revenue last quarter"
- "Add a SQL cell to my Hex project that counts signups per week and run it"
- "Show me the chart output from the latest run of my pricing notebook"

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport http hex https://app.hex.tech/mcp
```

2. Start Claude Code, type `/mcp`, pick **hex** and choose **Authenticate**. A browser window opens for the Hex sign-in.

Add `--scope user` to make it available in every project, not just this one.

### Claude Desktop

1. Open **Settings → Connectors** and click **Add custom connector**.

2. Name it **Hex** and paste this URL:

```url
https://app.hex.tech/mcp
```

3. Click **Add**, then **Connect**, and sign in when Hex asks.

Claude Desktop’s JSON config file only starts local servers. Remote servers go through Connectors, and connectors you add on claude.ai show up here too.

### claude.ai

1. Open the connector form on claude.ai. This button fills in the name and URL for you:

[Add to claude.ai](<https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Hex&connectorUrl=https%3A%2F%2Fapp.hex.tech%2Fmcp>) (opens connector settings)

2. Check that the URL reads `https://app.hex.tech/mcp` and click **Add**.

3. Click **Connect** and sign in when Hex asks.

Free plans allow one custom connector. On Team and Enterprise plans an owner adds it under **Organization settings → Connectors**.

### ChatGPT

1. On chatgpt.com, open **Settings → Security and login** and turn on **Developer mode**.

2. Go to `chatgpt.com/plugins` and click **+** to create an app for a remote MCP server.

3. Paste `https://app.hex.tech/mcp` as the server URL and choose **OAuth**. ChatGPT sends you to Hex to sign in.

Developer mode is available on the web for Plus, Pro, Business, Enterprise and Education accounts.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=hex&config=eyJ1cmwiOiJodHRwczovL2FwcC5oZXgudGVjaC9tY3AifQ%3D%3D>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "hex": {
      "url": "https://app.hex.tech/mcp"
    }
  }
}
```

Cursor shows **Needs login** next to the server. Click it to sign in.

### VS Code

[Install in VS Code](<https://vscode.dev/redirect/mcp/install?name=hex&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapp.hex.tech%2Fmcp%22%7D>) (opens VS Code)

Or from a terminal:

```bash
code --add-mcp '{"name":"hex","type":"http","url":"https://app.hex.tech/mcp"}'
```

Or commit it to the repo in `.vscode/mcp.json`:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "hex": {
      "type": "http",
      "url": "https://app.hex.tech/mcp"
    }
  }
}
```

VS Code asks you to sign in the first time the server starts.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "hex": {
      "serverUrl": "https://app.hex.tech/mcp"
    }
  }
}
```

2. Refresh the MCP server list in Cascade and sign in when asked.

Devin Desktop is the new name for Windsurf. It reads `serverUrl` (or `url`) for remote servers.

### Codex

```bash
codex mcp add hex --url https://app.hex.tech/mcp
codex mcp login hex
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.hex]
url = "https://app.hex.tech/mcp"
```

### Gemini CLI

```bash
gemini mcp add --transport http hex https://app.hex.tech/mcp
```

Then, inside Gemini CLI, run `/mcp auth hex` to sign in.

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients accept this shape. Some name the URL field differently: `serverUrl` in Devin Desktop, `httpUrl` in Gemini CLI’s settings file.

```json
{
  "mcpServers": {
    "hex": {
      "type": "http",
      "url": "https://app.hex.tech/mcp"
    }
  }
}
```

Zed puts servers under `context_servers` in its settings. Cline needs `"type": "streamableHttp"`, or it assumes SSE.

Client only starts local servers? Bridge it with `npx -y mcp-remote https://app.hex.tech/mcp`.

## Details

- Last checked: 2026-10-03 (reachable, asks for credentials)
- Listed: 2026-10-03
- Updated: 2026-10-03

---
Source: https://mcp.tc/i/hex (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
