---
title: "Hex MCP server: run and inspect data projects from AI agents"
description: "Install the Hex MCP server in an Aldena project with a Hex API token, and agents find, run and read the data projects your analysts already built."
url: "https://aldena.ai/mcp-servers/hex"
---

# Let agents reuse the Hex projects your data team already trusts

Hex MCP server. Install the Hex MCP server in an Aldena project with a Hex API token, and agents find, run and read the data projects your analysts already built.

- **Sign-in**: API key
- **Installs as**: `hex`
- **Transport**: Streamable HTTP
- **Last verified**: 2026-11-28

Hex is a collaborative data workspace where analysts build projects that mix SQL, Python and charts, then publish them for others to use. Its MCP server lets an agent find those projects, run them and read the results, using a Hex API token.

The point is reuse. When someone in an Aldena project asks an agent about last month's revenue, the agent runs the finance team's existing Hex project rather than writing a fresh query that might define revenue differently, and answers with the same numbers the business reports. Engineering agents use it for impact checks: before changing a table, the agent finds the Hex projects that depend on it and lists them in the pull request it opens through the [GitHub connector](https://aldena.ai/integrations/github), so the data team can review the change in time.

A weekly agent can run a published dashboard project and post the highlights through the [Slack connector](https://aldena.ai/integrations/slack), with a link back to Hex for anyone who wants the detail. One token serves the whole project, so scope it to the projects agents should run. Pair Hex with the [Google BigQuery MCP server](https://aldena.ai/mcp-servers/google-bigquery) when the agent needs raw warehouse access, or the [Amplitude MCP server](https://aldena.ai/mcp-servers/amplitude) for product analytics.

## With Hex, your agents can

- Find the Hex projects in a workspace by name or topic
- Run a published project and read its results
- Inspect a project's logic before relying on its numbers
- Answer data questions from analysis your team already reviewed

## Try asking

- “Find the Hex project our finance team uses for monthly revenue and run it for October, then summarize the top three changes.”
- “Run the Hex churn analysis with the cohort set to customers who signed up in Q2 and tell me how retention compares with Q1.”
- “Which Hex projects read from the orders table? List them so I know what the schema change will affect.”

## Server

- **Server URL**: `https://app.hex.tech/mcp`
- **Website**: [hex.tech](https://hex.tech)
- **MCP docs**: [Hex MCP docs](https://learn.hex.tech/docs/api-integrations/mcp-server)

## How to connect Hex

1. **Open Marketplace.** In a project, open Settings → Connectors → MCP servers and press Marketplace.
2. **Install Hex.** Search for Hex and press Install. Aldena adds it as `hex`.
3. **Paste your API key.** The server URL and Header name `Authorization` come prefilled. Aldena sends the Token as typed, so follow the Hex docs: often `Bearer <key>`, sometimes another Header name.
4. **Let agents use it.** Agents find its tools with `mcp_search` and call them with `mcp_call`. Each tool gets its own row in the project's permissions.

## Related MCP servers

- [Neon MCP server](https://aldena.ai/mcp-servers/neon): Manage Postgres projects, branches, and queries.
- [Prisma MCP server](https://aldena.ai/mcp-servers/prisma): Manage Prisma Postgres databases and schema.
- [Short.io MCP server](https://aldena.ai/mcp-servers/short-io): Create short links and read their click statistics.
- [Amplitude MCP server](https://aldena.ai/mcp-servers/amplitude): Query product analytics events, charts, and cohorts.
- [All MCP servers](https://aldena.ai/mcp-servers)

## FAQ

### How do I connect the Hex MCP server to Aldena?

Install Hex from the project's MCP marketplace. It signs in with a key, so Aldena opens the add form with the server URL already filled in. Aldena sends the Token as typed, so enter a Hex API token as Hex documents it, usually Bearer followed by the token, then save. The token is encrypted at rest and never shown in the browser again.

### Why use Hex instead of letting an agent write SQL?

Because the analysis in a Hex project has already been checked by your data team. Running that project gives an agent the same definitions of revenue or churn that the business uses, instead of a new query that might count differently.

### Whose access does the Hex token carry?

Whatever the token was created with in Hex, scoped to the workspace and projects it can reach. Every agent in the Aldena project shares that token, so create one with access to the projects those agents should run and nothing more.
