DataHub 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., "@DataHub MCP Server show the schema and upstream lineage for the orders dataset"
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.
DataHub MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to DataHub metadata, enabling them to search datasets, retrieve schema information, explore lineage, and more.
Features
🔍 Search Datasets: Find datasets by keyword or query
📊 Dataset Information: Get detailed metadata about datasets
🗂️ Schema Retrieval: Access schema information and field details
🔗 Lineage Tracking: Explore upstream and downstream dependencies
🌐 Entity Search: Search for any type of entity (datasets, dashboards, charts, etc.)
📈 Entity Information: Retrieve detailed information about any entity
Related MCP server: DataHub MCP Server
Prerequisites
Node.js 18 or higher
A running DataHub instance (self-hosted or DataHub Cloud)
DataHub Personal Access Token
Installation
Clone this repository:
git clone <your-repo-url>
cd datahub-mcp-serverInstall dependencies:
npm installCreate a
.envfile based on.env.example:
cp .env.example .envConfigure your environment variables in
.env:
DATAHUB_GMS_URL=http://localhost:8080 # or https://<tenant>.acryl.io for DataHub Cloud
DATAHUB_GMS_TOKEN=your_personal_access_token_here
PORT=3000Getting Your DataHub Token
For Self-Hosted DataHub:
Log in to your DataHub instance
Go to Settings → Access Tokens
Click "Generate Personal Access Token"
Copy the token and add it to your
.envfile
For DataHub Cloud:
Log in to your DataHub Cloud account at
https://<tenant>.acryl.ioGo to Settings → Access Tokens
Generate a new token
Use
https://<tenant>.acryl.ioas yourDATAHUB_GMS_URL
Development
Run the server in development mode:
npm run devBuild the TypeScript code:
npm run buildRun the built server:
npm startAvailable Tools
The MCP server provides the following tools:
1. search_datasets
Search for datasets in DataHub by keyword or query.
Parameters:
query(string, required): Search query to find datasetslimit(number, optional): Maximum number of results (default: 10)
2. get_dataset_info
Get detailed information about a specific dataset.
Parameters:
urn(string, required): The URN of the dataset
3. get_dataset_schema
Get the schema information for a dataset.
Parameters:
urn(string, required): The URN of the dataset
4. get_dataset_lineage
Get lineage information (upstream and downstream dependencies) for a dataset.
Parameters:
urn(string, required): The URN of the datasetdirection(string, optional): Direction of lineage -UPSTREAM,DOWNSTREAM, orBOTH(default:BOTH)
5. search_entities
Search for any type of entity in DataHub.
Parameters:
query(string, required): Search queryentityType(string, optional): Type of entity (e.g., DATASET, DASHBOARD, CHART, DATA_FLOW)limit(number, optional): Maximum number of results (default: 10)
6. get_entity_info
Get detailed information about any entity by its URN.
Parameters:
urn(string, required): The URN of the entity
Deploying to Render
Option 1: Using Render Dashboard
Create a Render Account: Sign up at render.com
Create a New Web Service:
Click "New" → "Web Service"
Connect your GitHub repository
Configure the Service:
Name:
datahub-mcp-serverEnvironment:
NodeBuild Command:
npm install && npm run buildStart Command:
npm startPlan: Free (or choose your preferred plan)
Set Environment Variables:
Go to the "Environment" tab
Add the following variables:
DATAHUB_GMS_URL: Your DataHub GMS URLDATAHUB_GMS_TOKEN: Your DataHub personal access tokenPORT:10000(Render's default)
Deploy: Click "Create Web Service"
Option 2: Using render.yaml (Infrastructure as Code)
This repository includes a render.yaml file for automated deployment:
Push your code to GitHub
In Render dashboard, click "New" → "Blueprint"
Connect your repository
Render will automatically detect the
render.yamlfileSet the required environment variables:
DATAHUB_GMS_URLDATAHUB_GMS_TOKEN
Click "Apply"
Option 3: Using Docker
Build and run with Docker:
# Build the image
docker build -t datahub-mcp-server .
# Run the container
docker run -p 3000:3000 \
-e DATAHUB_GMS_URL=http://your-datahub-url:8080 \
-e DATAHUB_GMS_TOKEN=your_token_here \
datahub-mcp-serverUsing with AI Tools
Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"datahub": {
"command": "node",
"args": ["/path/to/datahub-mcp-server/dist/index.js"],
"env": {
"DATAHUB_GMS_URL": "http://localhost:8080",
"DATAHUB_GMS_TOKEN": "your_token_here"
}
}
}
}Cursor
Add to your Cursor MCP settings:
{
"mcpServers": {
"datahub": {
"command": "node",
"args": ["/path/to/datahub-mcp-server/dist/index.js"],
"env": {
"DATAHUB_GMS_URL": "http://localhost:8080",
"DATAHUB_GMS_TOKEN": "your_token_here"
}
}
}
}Health Check
The server includes a health check endpoint at /health that returns:
{
"status": "healthy",
"service": "datahub-mcp-server",
"timestamp": "2025-10-07T12:00:00.000Z"
}This is useful for deployment platforms like Render to monitor the service.
Troubleshooting
Connection Issues
If you can't connect to DataHub:
Verify your
DATAHUB_GMS_URLis correctCheck that your DataHub instance is running and accessible
Ensure your token has the necessary permissions
Authentication Errors
If you get authentication errors:
Verify your
DATAHUB_GMS_TOKENis validCheck that the token hasn't expired
Ensure the token has the required permissions for the operations you're trying to perform
Build Errors
If you encounter build errors:
Make sure you're using Node.js 18 or higher
Delete
node_modulesandpackage-lock.json, then runnpm installagainCheck that all dependencies are properly installed
Architecture
The server consists of:
index.ts: Main MCP server implementation with tool definitions and handlers
datahub-client.ts: DataHub API client using GraphQL and REST endpoints
health.ts: Health check HTTP server for deployment platforms
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
Support
For issues and questions:
DataHub Documentation: https://datahubproject.io/docs
MCP Documentation: https://modelcontextprotocol.io
Create an issue in this repository
Available Tools
6 toolsget_dataset_infoC
Get detailed information about a specific dataset
Inputs: urn (required).
get_dataset_lineageB
Get lineage information (upstream and downstream dependencies) for a dataset
Inputs: urn (required), direction.
get_dataset_schemaB
Get the schema information for a dataset
Inputs: urn (required).
get_entity_infoC
Get detailed information about any entity by its URN
Inputs: urn (required).
search_datasetsC
Search for datasets in DataHub by keyword or query
Inputs: query (required), limit.
search_entitiesB
Search for any type of entity in DataHub (datasets, dashboards, charts, etc.)
Inputs: query (required), limit, entityType.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The dataset-specific tools (search_datasets, get_dataset_info) are explicit specializations of the generic search_entities and get_entity_info, which creates mild overlap, but the descriptions clearly signal that the generic tools cover all entity types. get_dataset_info vs. get_dataset_schema is also a slightly fuzzy boundary, though workable.
All six tools follow a clean verb_noun snake_case pattern, with parallel search_*/get_* prefixes and a consistent get_<resource>_<aspect> structure for schema and lineage.
Six tools is well-scoped for a catalog server and each one covers a distinct access path (search, detail, schema, lineage), with no obvious redundancy or filler.
Core read paths for datasets are covered, but the surface is read-only with no write/annotate, ownership, domain, or tag operations, and schema is only reachable for datasets, not other entity types discoverable via search_entities.
Maintenance
Related MCP Connectors
Cross-tool context for your data stack. Search, lineage, and impact across warehouse and BI tools.
Search, sample and query open reproducible datasets published as immutable Parquet with schemas.
The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables AI assistants to interact with Databricks workspaces, allowing them to browse Unity Catalog, query metadata, sample data, and execute SQL queries.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, explore data lineage, understand business context, and generate SQL queries across an organization's data ecosystem.Apache 2.0

cfabric-mcpofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to perform corpus analysis tasks such as discovery, search, and data access via the Model Context Protocol.13MIT- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Databricks workspaces, running SQL queries, managing jobs, and exploring schemas via the Model Context Protocol.1GPL 3.0