Integration · Company data
Connect Claude & ChatGPT to Hex
Ask your AI to rerun the weekly revenue project, fetch the latest result of a SQL cell, or pose a data question to Hex's own AI. It can list and run projects, follow runs, read cells, outputs and charts, add or change SQL, code and markdown cells, and look up collections, users and data connections in your workspace.
Free plan, no credit card. Takes about a minute.
Try asking
“Run the Weekly revenue project with region set to Nordics.”
The AI runs the latest published version with that input value and returns a run ID it can check.
“Did the last run of the churn dashboard finish?”
It lists the project's runs and reads the status of the latest one, such as RUNNING, ERRORED or COMPLETED.
“Show me the result of the monthly signups SQL cell.”
It finds the cell in the project and reads its latest output.
What your AI can do
Projects and runs
List, create and export projects, run the published version with input values, follow run status and cancel a run.
Cells and outputs
Read cells, SQL results and chart images, and add or change SQL, code and markdown cells.
Hex AI and workspace
Ask Hex AI questions and follow-ups, and look up collections, users, groups and data connections.
“Send me the revenue chart as an image.”
It fetches the chart cell as an image, at a width and height you choose if you want.
“Add a SQL cell to the Marketing project that counts orders per week.”
It appends a SQL cell with the query to the project. You can attach a data connection to it as well.
“Ask Hex which customers had the biggest drop in usage last month.”
It starts a Hex AI thread with the question and reads Hex's answer from the thread when it is ready.
26 tools for Hex
These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.
ask_followupChanges dataAsk a follow-up question (`prompt`) in an existing Hex AI thread by `thread_id`.ask_questionChanges dataStart a new Hex AI thread with a data question in `prompt`, optionally against an existing `project_id` or referencing tables, projects or a data connection in `attachments`. Hex answers asynchronously; read the reply with list_thread_messages.cancel_runDeletesStop a running project run: pass the project as `project_id` and the run ID as `project_id_2`.create_cellChanges dataAdd a cell to a project (`project_id`): `cell_type` SQL, CODE or MARKDOWN, with `contents` holding the matching sqlCell, codeCell or markdownCell source. Appended at the end unless `location` is given.create_projectChanges dataCreate a new, empty project with a `title` and optional description.export_projectChanges dataExport a project by `project_id`, either the current draft or the latest published version (`version`).get_cellGet one cell by `cell_id`, with its type and source.get_cell_outputGet the latest result output of a SQL cell by `cell_id`.get_chart_imageGet a chart cell as an image by `cell_id`, optionally at a given width and height in pixels.get_collectionGet one collection by its ID (`category_id`).get_current_userGet the Hex user this connection is signed in as, with name, email and role.get_projectGet one project by `project_id`, with title, description, owner, status and publish info.get_run_statusGet the status of one project run: pass the project as `project_id` and the run ID as `project_id_2`.get_threadGet one Hex AI thread by `thread_id`, with its status.list_cellsList the cells (SQL, code, markdown, charts) in a project by `project_id`.list_collectionsList the collections projects are organised into.list_data_connectionsList the data connections (warehouses and databases) available in the workspace.list_groupsList user groups in the workspace.list_project_runsList past and current runs of a project by `project_id`, optionally filtered by status (e.g. RUNNING, ERRORED, COMPLETED).list_projectsList projects in the workspace, optionally filtered by owner email, status or category and sorted by created, edited or published date.list_thread_messagesList the messages (questions and Hex's answers) in a thread by `thread_id`.list_threadsList Hex AI threads (questions asked to Hex's agent), optionally filtered by user, source, type or recent days.list_usersList users in the workspace, optionally filtered by group or user IDs.run_projectChanges dataRun the latest published version of a project by `project_id`, optionally with `input_params` values or a saved view. Returns a run ID to check with get_run_status; use `dry_run` to only validate.set_project_statusChanges dataSet a project's `status` label (e.g. an approval or certification status) by `project_id`, or pass null to clear it.update_cellChanges dataChange a cell's source by `cell_id` via `contents` (sqlCell, codeCell or markdownCell), or attach a data connection to a SQL cell.
Set up in three steps
- 1
Pick the app
Create a free PipMCP account and choose Hex from the app list.
- 2
Paste your key
Paste a Hex API token. In Hex open User settings > API keys, click New Token (needs the Editor role or higher), set a description and expiry, and copy the token (it starts with hxtp_). Workspace admins can instead create a workspace token (hxtw_) with scopes under workspace settings.
- 3
Add the link to your AI
You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:
- Click your name, then Settings › Connectors › Add custom connector.
- Paste your link as the Remote MCP server URL.
- Switch it on from the + menu in a chat.
Questions
What can the AI do in Hex?
The AI can list, read and export projects, run them and follow or cancel runs, read cells, SQL outputs and chart images, and look up collections, users, groups and data connections. It can create projects, add and change cells, set a project's status and ask Hex AI questions.
Does the AI see my Hex API token?
No. Your Hex API token is encrypted at rest and never shown to the AI. After you save it, it is not shown again, not even to you. The AI only sees the results of the tools it calls.
Can I control what the AI is allowed to do?
Yes. You choose which tools are switched on, so you can start with only reading projects and results. Running a project queries your data connections and cancelling a run stops it, so both can require your approval before they run. Every tool call is logged.
Does it work with ChatGPT?
Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.
What does it cost?
PipMCP has a free plan with no credit card required. Paid plans bill per completed task. You also need your own Hex workspace.
Should I use a personal or a workspace token?
Both work. A personal token (hxtp_) acts as you, and you need the Editor role or higher to create one. A workspace admin can create a workspace token (hxtw_) and choose its scopes, which limits what the connection can reach in Hex.
Related integrations
Let your AI work in Hex today.
Start free. Your key stays encrypted, and you decide what the AI may do.
Connect Hex freePipMCP is not affiliated with Hex. Product names are trademarks of their owners.






