Skip to main content
Version: Studio 2.2.7

DataHub

For a Studio user, working with your DataHub administrator, whose organisation keeps the metadata for its data sources in DataHub and wants agents to find the right dataset before they query it. DataHub's MCP server lets an agent search the catalogue, read a dataset's schema, owners and documentation, follow its lineage upstream and downstream, and see real queries that use it. An agent can then query the data through the connector for the source itself, such as Snowflake.

Before you start: read MCP server for the connector basics, and choose how people sign in:

Your DataHubSign in withSection
DataHub Cloud v1.0.2 or later, with DataHub's hosted MCP serverEach person's own DataHub account, through OAuthSign in as each person
DataHub Cloud before v1.0.2, DataHub Core, or a DataHub MCP server you run yourselfEach person's own DataHub access tokenEach person adds their own token
Any of these, for Flows started with an API keyA DataHub service account's tokenOne service account

On a private deployment whose outbound traffic goes through your firewall, open the hosts in Network access first.

Sign in as each person​

Each person signs in with their own DataHub account, through your organisation's single sign-on if DataHub uses one, so DataHub applies its own permissions to each person and records their activity. Studio registers itself with DataHub (dynamic client registration), so there is no app to create in DataHub and no Redirect URI to register: Studio registers that address with DataHub itself.

  1. Create an MCP Server connector. For MCP Server URL, enter DataHub's hosted server, https://mcp.datahub.com/mcp, or your organisation's own DataHub address followed by /mcp, for example https://your-company.acryl.io/mcp.

  2. Set Sign-in method to Sign in with OAuth (each person) and Client registration to Register automatically.

  3. Scope (optional): openid datahub:account.

  4. Authorisation server (optional): DataHub's sign-in service for the address in step 1:

    MCP Server URLAuthorisation server
    https://mcp.datahub.com/mcphttps://mcp.datahub.com/mcp
    https://your-company.acryl.io/mcphttps://your-company.acryl.io
  5. Click Check sign-in. It shows "Sign-in service: address" and "Studio can register itself with this sign-in service."

  6. Click Test connection: "Sign-in details found. Save the connector, then connect your account to list its tools." Then click Create connector.

  7. On the connector's page, under Your account, click Connect. DataHub asks you to allow "AlphaAgent Studio" to access DataHub; with https://mcp.datahub.com/mcp it first asks for your DataHub domain (your-company.acryl.io). Sign in.

  8. Click Test with my account, then Review tools in the Tools section, set each tool's access (Choose the tools) and click Save tool settings.

Why the Authorisation server is entered: DataHub publishes its sign-in details for its whole site, for example https://mcp.datahub.com, while its MCP server answers at /mcp. Before it starts a sign-in, Studio checks that the published details name the server's own address, so with the address alone Check sign-in shows "The server's sign-in details are not valid (resource)." Entering DataHub's sign-in service tells Studio where to sign in, and Studio reads everything else, including how to register, from that service.

Everyone else who uses the connector clicks Connect once and signs in with their own account (MCP: each person signs in). A Flow you start, and a scheduled run, use the connected account of the person it runs as. A run started with an API key has no person to act as, so it uses one service account instead.

Each person adds their own token​

Use this when your DataHub does not offer OAuth sign-in for MCP, or for a DataHub MCP server you run yourself. Each person creates a personal access token in DataHub (under Settings, Access Tokens) and adds it once in Studio.

  1. Create an MCP Server connector with your DataHub MCP server's address as MCP Server URL: your DataHub address followed by /mcp, or, for a server you run yourself, its address, for example http://datahub-mcp.internal.example.com:8000/mcp.
  2. Set Sign-in method to Custom headers and tick Each person adds their own key.
  3. Add one row: Credential key datahub_token and header name Authorization.
  4. Click Create connector.
  5. On the connector's page, each person clicks Add your key and enters Bearer followed by their token, for example Bearer eyJhbGciOi..., then clicks Save your key. Studio sends the value exactly as entered, so it must start with Bearer .
  6. Click Test with my account, then Review tools, set each tool's access and click Save tool settings.

A DataHub MCP server you run yourself must serve HTTP for many users (mcp-server-datahub v0.7.0 or later, which takes each person's token on every request and refuses to start with one shared token), and its host must be inside your deployment's internal service ranges (Data Bridge). Each person's token is held for them alone (What is never shared).

DataHub refuses a token sent in the URL, so use Custom headers, not Query parameters.

One service account​

For Flows started with an API key, which run as no person, create a separate connector that signs in as a DataHub service account:

  1. In DataHub, create a service account with read access to the parts of the catalogue agents should see, and an access token for it.
  2. Create an MCP Server connector with your DataHub MCP server's address, Sign-in method Custom headers, and leave Each person adds their own key clear.
  3. Add one row: Credential key datahub_token, header name Authorization, and Value Bearer followed by the service account's token.
  4. Click Test connection, choose the tools and click Create connector.

Every call through this connector runs with the service account's access, whoever's Flow it is, so give it only the catalogue access you want every such run to have.

Choose the tools​

DataHub's MCP server offers tools that read the catalogue, such as search, get_entities, list_schema_fields, get_lineage and get_dataset_queries. Tools that change the catalogue, such as add_tags, add_owners and update_description, are offered only when your DataHub administrator turns them on.

A tool that marks itself read-only starts Allowed without approval; every other tool starts Approval required (Choose the tools agents may use). For catalogue search, keep the read tools allowed and set any tool that changes the catalogue to Blocked or Approval required, so a person decides each change.

A large result, such as wide lineage, arrives as a file in the conversation's Files (In chat and Flows).

Write the connector guide​

The connector guide tells agents when to use DataHub. For example:

Use DataHub to find data before querying it. Search DataHub for the dataset, read its schema, owners and documentation, and check its lineage. Use get_dataset_queries for example SQL. Then query the dataset through the Snowflake connector, and name the DataHub dataset you used in your answer.

Network access​

On a deployment whose outbound traffic goes through AlphaAgent's NAT gateway, nothing needs opening. When it goes through your Transit Gateway and firewall, allow outbound HTTPS (443) from the Studio VPC to:

HostNeeded for
mcp.datahub.comDataHub's hosted MCP server and its sign-in service
your-company.acryl.ioYour own DataHub address, when the connector uses it

A DataHub MCP server you run inside your network needs no firewall entry; its host must be inside the deployment's internal service ranges. The full allow-list is on Private network access.

If the test fails​

You seeCheck
"The server's sign-in details are not valid (resource)."Enter DataHub's sign-in service as Authorisation server (optional) (step 4).
"The server rejected the credentials (401). Check the client ID and secret, the scope, or the header values."For a token, the value starts with Bearer , the token has not expired, and it was created in this DataHub.
"The server accepted the credentials but refused access (403). Ask the server's owner to allow this identity."The person or service account has access to the catalogue in DataHub.
"Could not reach host. Check the address, and that the server can be reached from this Studio's network."The firewall allows the host in Network access.
"Your sign-in for this connector has expired or its settings changed. Connect your account again."The person clicks Connect again.

The other messages and what they mean are in Test connection results.