hex-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hex-mcp-server list my recent Hex project runs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hex-mcp-server
A standalone Model Context Protocol (MCP) server for the Hex API. Zero dependencies, runs anywhere Node.js is available.
Connect your AI assistant (Cortex Code, Claude Desktop, Cursor, etc.) to your Hex workspace to audit projects, users, data connections, trigger runs, and more.
Features
58 tools covering the entire Hex public API
Zero npm dependencies — single self-contained Node.js file
MCP-native — JSON-RPC 2.0 over stdio, works with any MCP client
Cursor-based pagination on all list endpoints
Sensitive token handling — token never hardcoded, passed via environment variable
Related MCP server: Databricks MCP Server
Tools
Users
Tool | Description |
| Get current authenticated user (validates token) |
| List workspace users (paginated) |
| Deactivate a user (their tokens stop working) |
Projects
Tool | Description |
| List all projects with filters (status, category, creator, owner) |
| Get detailed project metadata |
| Create a new project |
| Add/remove status or endorsements |
| Export a project as |
| Batch update kernel image/size on multiple projects |
Project Runs
Tool | Description |
| Trigger a published project run |
| Check status of a project run |
| List runs for a project (filter by status/trigger) |
| Cancel an active project run |
| Get warehouse tables queried by a project (Enterprise) |
| Get PNG of a chart cell from a completed run |
Project Sharing
Tool | Description |
| Add/remove project from collections |
| Add/update/remove group sharing access |
| Add/update/remove user sharing access |
| Update workspace or public-web sharing |
Cells
Tool | Description |
| List cells in a project (code, SQL, markdown) |
| Get a single cell by ID |
| Create a new cell in project draft |
| Update cell source and/or data connection |
| Delete a cell from project draft |
| Get rendered PNG of a chart cell from draft |
| Get cell output (unstable) |
Groups
Tool | Description |
| List workspace groups |
| Get group details with members |
| Create a new group |
| Edit group name/members |
| Delete a group |
Collections
Tool | Description |
| List workspace collections |
| Get collection details |
| Create a new collection |
| Edit collection name/description/sharing |
Data Connections
Tool | Description |
| List all data connections |
| Get data connection details |
| Create a new data connection |
| Edit connection details/credentials/sharing |
| Add/remove endorsements on schemas/tables |
Embedding
Tool | Description |
| Create an embedded URL for iframe embedding |
Agent Threads
Tool | Description |
| List agent threads (filter by source, user, type) |
| Get thread details and status |
| Start a new agent thread with a prompt |
| Send a follow-up prompt to an idle thread |
| List messages in a thread |
| List thread topics in the workspace |
Guides
Tool | Description |
| Create or update guide drafts |
| List draft guides |
| Delete a guide draft |
| Publish all drafted guides |
Semantic Projects
Tool | Description |
| Add/remove statuses from datasets and views |
| Ingest a semantic project |
Suggestions
Tool | Description |
| List context suggestions |
| Get suggestion with evidence and proposed changes |
| Update suggestion status |
| Update status of an individual proposed change |
| Trigger a background review agent run |
Quick Start
1. Get a Hex API token
Go to Hex > Settings > API Keys and create a Personal Access Token (hxtp_...) or a Workspace Token (hxtw_...).
2. Configure your MCP client
Cortex Code / Claude Desktop / Cursor
Add to your MCP config file:
{
"servers": {
"hex": {
"command": "node",
"args": ["/path/to/hex-mcp-server/build/index.js"],
"env": {
"HEX_BASE_URL": "https://app.hex.tech",
"HEX_API_TOKEN": "hxtw_your_token_here"
}
}
}
}EU customers: Use
https://eu.hex.techas the base URL.
Single-tenant: Use your custom Hex domain (e.g.,https://yourorg.hex.tech).
3. Restart your MCP client
The Hex tools will appear automatically.
Environment Variables
Variable | Required | Description |
| Yes | Hex API token ( |
| No | Hex instance URL (default: |
API Coverage
This server implements all 58 endpoints of the Hex Public API. Some endpoints may require specific token scopes or plan levels (Team/Enterprise).
Requirements
Node.js 18+ (no npm install needed)
License
MIT
Available Tools
58 toolshex-batch-update-compute-profileC
Batch update kernel image/size on multiple projects.
Inputs: projectIds (required), computeProfile (required).
hex-cancel-runC
Cancel an active project run.
Inputs: runId (required), projectId (required).
hex-continue-threadC
Send a follow-up prompt to an idle agent thread.
Inputs: prompt (required), threadId (required).
hex-create-cellC
Create a new cell in the draft version of a project.
Inputs: cellType (required), projectId (required), source, afterCellId.
hex-create-collectionC
Create a new collection in the workspace.
Inputs: name (required), members, description.
hex-create-data-connectionC
Create a new data connection in the workspace.
Inputs: name (required), type (required), connectionDetails (required), description.
hex-create-groupC
Create a new group in the workspace.
Inputs: name (required), members.
hex-create-presigned-urlC
Create an embedded URL for a project (for iframe embedding).
Inputs: projectId (required), scope, expiresIn, inputParameters, +1 more.
hex-create-projectC
Create a new project with title and optional description.
Inputs: title (required), description.
hex-create-threadB
Start a new agent thread with a prompt (runs asynchronously).
Inputs: prompt (required), projectId.
hex-deactivate-userB
Deactivate a user in the workspace. Their tokens will stop working.
Inputs: userId (required).
hex-delete-cellC
Delete a cell from the draft version of a project.
Inputs: cellId (required).
hex-delete-groupC
Delete a group from the workspace.
Inputs: groupId (required).
hex-delete-guide-draftC
Delete a guide draft by ID.
Inputs: orgGuideFileId (required).
hex-edit-collectionC
Edit a collection (name, description, sharing).
Inputs: collectionId (required), name, sharing, description.
hex-edit-data-connectionC
Edit a data connection (name, description, credentials, sharing).
Inputs: dataConnectionId (required), name, sharing, description, +1 more.
hex-edit-groupC
Edit a group (name, members).
Inputs: groupId (required), name, members.
hex-edit-project-sharing-collectionsC
Add or remove a project from collections.
Inputs: projectId (required), add, remove.
hex-edit-project-sharing-groupsC
Add, update, or remove group sharing access for a project.
Inputs: projectId (required), remove, upsert.
hex-edit-project-sharing-usersB
Add, update, or remove user sharing access for a project.
Inputs: projectId (required), remove, upsert.
hex-edit-project-sharing-workspaceC
Update workspace or public-web sharing settings for a project.
Inputs: projectId (required), publicWeb, workspace.
hex-export-projectC
Export a project as .hex.yaml format.
Inputs: projectId (required).
hex-get-cellC
Get a single cell by ID.
Inputs: cellId (required).
hex-get-cell-outputC
Get cell output (unstable API). Returns the output of a cell.
Inputs: cellId (required).
hex-get-chart-image-from-logicB
Get rendered PNG of a chart cell from the draft session.
Inputs: cellId (required), width, height.
hex-get-chart-image-from-runC
Get PNG of a chart cell from a completed project run.
Inputs: runId (required), staticId (required), projectId (required), width, +1 more.
hex-get-collectionB
Get details of a single collection by ID.
Inputs: collectionId (required).
hex-get-data-connectionC
Get details of a single data connection by ID.
Inputs: dataConnectionId (required).
hex-get-groupA
Get details of a single group by ID, including members.
Inputs: groupId (required).
hex-get-meA
Get the currently authenticated Hex user (validates token).
Inputs: no named parameters.
hex-get-projectC
Get detailed metadata for a single Hex project by ID.
Inputs: projectId (required), includeSharing.
hex-get-project-runsC
List all API-triggered runs for a project. Filter by status or trigger type.
Inputs: projectId (required), limit, offset, statusFilter, +1 more.
hex-get-queried-tablesA
Get the list of warehouse tables queried by a project (Enterprise plan only).
Inputs: projectId (required).
hex-get-run-statusC
Get the status of a specific project run.
Inputs: runId (required), projectId (required).
hex-get-suggestionC
Get a suggestion including evidence sources and proposed changes.
Inputs: suggestionId (required).
hex-get-threadC
Get details and status of an agent thread.
Inputs: threadId (required).
hex-get-thread-messagesC
List messages in a thread (chronological, paginated).
Inputs: threadId (required), after, limit.
hex-ingest-semantic-projectC
Ingest a semantic project from uploaded data.
Inputs: semanticProjectId (required), data.
hex-list-cellsC
List cells (code, SQL, markdown) from the draft version of a project.
Inputs: projectId (required), after, limit.
hex-list-collectionsC
List all collections in the Hex workspace.
Inputs: after, limit, sortBy, sortDirection.
hex-list-data-connectionsC
List all data connections configured in the Hex workspace.
Inputs: after, limit, sortBy, sortDirection.
hex-list-draft-guidesC
List draft guides (paginated).
Inputs: after, limit.
hex-list-groupsC
List all groups in the Hex workspace.
Inputs: after, limit, sortBy, sortDirection.
hex-list-projectsB
List all viewable projects. Supports filtering by status, category, creator, owner, collection.
Inputs: after, limit, sortBy, statuses, +9 more.
hex-list-suggestionsC
List context suggestions (paginated, filterable by status).
Inputs: after, limit, sortBy, status, +1 more.
hex-list-threadsC
List agent threads in the workspace. Filter by source, user, type.
Inputs: type, after, limit, source, +1 more.
hex-list-topicsB
List thread topics in the workspace, sorted by name.
Inputs: no named parameters.
hex-list-usersB
List all users in the Hex workspace. Supports pagination (limit, after).
Inputs: after, limit, sortBy, sortDirection.
hex-publish-guide-draftsB
Publish all currently drafted guides.
Inputs: no named parameters.
hex-run-projectB
Trigger a run of a published Hex project. Optionally provide input parameters and cache control.
Inputs: projectId (required), inputParams, useCachedSqlResults, updatePublishedResults.
hex-trigger-suggestion-reviewC
Trigger a background review agent run for a suggestion.
Inputs: suggestionId (required).
hex-update-cellC
Update a cell's source and/or data connection.
Inputs: cellId (required), source, dataConnectionId.
hex-update-data-connection-schemaC
Add/remove statuses (endorsements) from databases, schemas, tables in a data connection.
Inputs: updates (required), dataConnectionId (required).
hex-update-projectC
Add or remove a status (including endorsements) from a project.
Inputs: projectId (required), status.
hex-update-semantic-projectC
Add/remove statuses from datasets and views in a semantic project.
Inputs: semanticProjectId (required), status.
hex-update-suggestionC
Update a suggestion status (OPEN, COMPLETED, DISMISSED, etc.).
Inputs: status (required), suggestionId (required).
hex-update-suggestion-changeC
Update the status of an individual proposed change within a suggestion.
Inputs: changeId (required), suggestionId (required), status.
hex-upsert-guide-draftC
Update or create guide drafts by filePath.
Inputs: guides (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 58 tools
Most tools target distinct resource+action pairs, with clear descriptions separating similar operations like chart image from draft vs run, or suggestion vs suggestion-change updates. A few boundaries are fuzzy (e.g. hex-update-project for status/endorsements vs hex-update-semantic-project, and edit/update verb overlap across resources), but these are minor and descriptions disambiguate.
The hex-<verb>-<resource> pattern is largely consistent across hyphenated names. Minor deviations appear in verb choice (edit vs update for similar operations) and edge cases like hex-get-me and hex-batch-update-compute-profile, but the overall convention remains predictable.
58 tools is far beyond the typical 3-15 well-scoped range and exceeds the 50+ threshold for extreme mismatch. Even accounting for the broad Hex platform surface, this volume creates a heavy cognitive load for an agent.
Core lifecycle coverage exists for many resources (projects, cells, collections, data connections, groups, threads, suggestions), but notable gaps remain: no delete for projects, collections, data connections, or threads; no single-guide get; users only have deactivate, not create. These gaps are significant enough that agents will hit dead ends for some administrative workflows.
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Manage tickets, run agents and workflows, query tables, and search workspace knowledge.
Agent-complete, permission-scoped product operations for Priorify workspaces.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides MCP-compatible access to Holaspirit's API, allowing AI assistants to interact with organizational data such as tasks, circles, roles, and meetings through a standardized interface.54 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Databricks workspaces programmatically, providing comprehensive tools for cluster management, notebook operations, job orchestration, Unity Catalog data governance, user management, permissions control, and FinOps cost analytics.335 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with OpenHEXA platform through Claude Desktop, allowing users to query workspaces, list datasets, search pipelines, and view pipeline runs using natural language.1-
- AlicenseNot gradedqualityDmaintenanceEnables MCP-capable agents to interact with Dock workspaces, including reading, creating, updating, and deleting rows, managing workspaces, and retrieving activity logs.5 npmMIT