Skip to main content

A Model Context Protocol (MCP) server for DataHub

Project description

mcp-server-datahub

A Model Context Protocol server implementation for DataHub. This enables AI agents to query DataHub for metadata and context about your data ecosystem.

Supports both DataHub OSS and DataHub Cloud.

Features

  • Searching across all entity types and using arbitrary filters
  • Fetching metadata for any entity
  • Traversing the lineage graph, both upstream and downstream
  • Listing SQL queries associated with a dataset

Demo

Check out the demo video, done in collaboration with the team at Block.

Usage

For authentication, you'll need to set the following environment variables:

export DATAHUB_GMS_URL=https://name.acryl.io/gms
export DATAHUB_GMS_TOKEN=<your-token>
Alternative: Using ~/.datahubenv for authentication

You can also use a ~/.datahubenv file to configure your authentication. The easiest way to create this file is to run datahub init and follow the prompts.

uvx --from acryl-datahub datahub init

Claude Desktop

In your claude_desktop_config.json file, add the following:

{
  "mcpServers": {
    "datahub": {
      "command": "uvx",
      "args": ["mcp-server-datahub"],
      "env": {
        "DATAHUB_GMS_URL": "<your-datahub-url>",
        "DATAHUB_GMS_TOKEN": "<your-datahub-token>"
      }
    }
  }
}

Cursor

In .cursor/mcp.json, add the following:

{
  "mcpServers": {
    "datahub": {
      "command": "uvx",
      "args": ["mcp-server-datahub"],
      "env": {
        "DATAHUB_GMS_URL": "<your-datahub-url>",
        "DATAHUB_GMS_TOKEN": "<your-datahub-token>"
      }
    }
  }
}

Other MCP Clients

command: uvx
args:
  - mcp-server-datahub
env:
  DATAHUB_GMS_URL: <your-datahub-url>
  DATAHUB_GMS_TOKEN: <your-datahub-token>

Developing

See DEVELOPING.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_datahub-0.1.2.tar.gz (97.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_datahub-0.1.2-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_datahub-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_server_datahub-0.1.2.tar.gz
  • Upload date:
  • Size: 97.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for mcp_server_datahub-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fb153db8baf5e4e57772d9ef930beb10792a4cfdf37bbbdc69d66fe1f4ad3c75
MD5 bb019a8ca7e5387fa101cc56ec200c41
BLAKE2b-256 f34a39fff073f4e4b4e6b0ce72bbe551e472d70a33e61cfda5229866e913a068

See more details on using hashes here.

File details

Details for the file mcp_server_datahub-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_datahub-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 469d04ec9b122ee2556fa1ee4780f683fb9e119744fae50498496d2a9f5292c9
MD5 ca99050939711bde69d814508ac40a5e
BLAKE2b-256 0ff05c3c7ac743edd92a0f12a59173ac1824ccf8760251261095e6aec01cb07c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page