# Hex MCP MCP Server

> **Hex MCP MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to Hex MCP.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/hex-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Hex MCP Server lets AI agents analyze data in Hex through natural-language Threads, search projects, retrieve analysis results and visualizations, and— with editing access—create, edit, and run SQL, Python, and Markdown notebooks.

---

## Details

- Server ID: `hex-mcp`
- Version: 1.0.0
- Tools: 18
- Authentication: OAuth, managed by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — Hex MCP has to be in the toolset
first. In order:

1. Add Hex MCP to your toolset at https://mewcp.com/mcp/hex-mcp
2. Connect your Hex MCP account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If Hex MCP isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `hex-mcp` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (18)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `search_projects` _(read)_ — Search for projects
- `create_thread` _(write)_ — Create a new Hex Thread to ask a question about your data. Hex will use its Threads Agent to analyze your data and then provide a response. The thread will…
- `get_thread` _(read)_ — Fetch a Hex Thread using its ID. You can get an ID when you call the `create_thread` tool. If the thread is not finished yet, it will sleep for a number of…
- `continue_thread` — Continue a Hex Thread by adding a new message and triggering the agent to process it. The thread must be in IDLE status to be continued. If the thread is…
- `get_cell` _(read)_ — Get a single cell by ID
- `get_cell_output` _(read)_ — Get the latest output preview for a SQL cell in the active draft notebook session.
- `create_cell` _(write)_ — Create a new cell in the draft version of a project. For SQL cells that query a warehouse, reuse the dataConnectionId of an existing SQL cell in the project…
- `list_cells` _(read)_ — List cells from the draft version of a project. Returns code, SQL, and markdown cell contents.
- `update_cell` _(write)_ — Update a cell's source and/or data connection. For SQL cells, can update the SQL source, output dataframe, and data connection. Take a warehouse…
- `delete_cell` _(destructive)_ — Delete a cell from the draft version of a project by ID
- `run_cell` _(write)_ — Run a cell and its upstream dependencies in the draft (notebook) version of a project. The run is asynchronous: for SQL cells, poll `get_cell_output` every 5…
- `get_cell_image` _(read)_ — Get the rendered PNG image of a chart cell, returned as an image. The cell must live in its project's draft version, must have been executed, and must not be…
- `create_project` _(write)_ — Create a new project in the workspace with the specified title, and optionally a description.
- `get_project` _(read)_ — Get metadata about a single project.
- `get_run` _(read)_ — Get the status of a project run.
- `run_notebook` _(write)_ — Trigger a run of the draft (notebook) version of a project. The run is asynchronous: poll `get_run` with the returned runId every 5 seconds until the status is…
- `list_data_connections` _(read)_ — List the workspace's data connections. Use this to resolve a connection name to a dataConnectionId before creating or updating a SQL cell with `create_cell` or…
- `get_me` _(read)_ — Returns information about the current logged in user.

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/hex-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/hex-mcp/connect/chatgpt
- Grok: https://mewcp.com/mcp/hex-mcp/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/hex-mcp/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/hex-mcp/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/hex-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/hex-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/hex-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/hex-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/hex-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/hex-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/hex-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/hex-mcp/connect/hermes
- Kimi Code: https://mewcp.com/mcp/hex-mcp/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/hex-mcp/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/hex-mcp/connect/devin-desktop
- Zed: https://mewcp.com/mcp/hex-mcp/connect/zed
- Muse Code: https://mewcp.com/mcp/hex-mcp/connect/muse-code
- Cline: https://mewcp.com/mcp/hex-mcp/connect/cline
- Kilo Code: https://mewcp.com/mcp/hex-mcp/connect/kilo-code
- Kiro: https://mewcp.com/mcp/hex-mcp/connect/kiro
- Junie: https://mewcp.com/mcp/hex-mcp/connect/junie
- Amp: https://mewcp.com/mcp/hex-mcp/connect/amp
- Qwen Code: https://mewcp.com/mcp/hex-mcp/connect/qwen-code
- Goose: https://mewcp.com/mcp/hex-mcp/connect/goose
- Python: https://mewcp.com/mcp/hex-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/hex-mcp/connect/typescript