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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb153db8baf5e4e57772d9ef930beb10792a4cfdf37bbbdc69d66fe1f4ad3c75
|
|
| MD5 |
bb019a8ca7e5387fa101cc56ec200c41
|
|
| BLAKE2b-256 |
f34a39fff073f4e4b4e6b0ce72bbe551e472d70a33e61cfda5229866e913a068
|
File details
Details for the file mcp_server_datahub-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_server_datahub-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
469d04ec9b122ee2556fa1ee4780f683fb9e119744fae50498496d2a9f5292c9
|
|
| MD5 |
ca99050939711bde69d814508ac40a5e
|
|
| BLAKE2b-256 |
0ff05c3c7ac743edd92a0f12a59173ac1824ccf8760251261095e6aec01cb07c
|