docs/dev-guides/agent-context/cursor.md
Give Cursor access to your enterprise data context in DataHub — find trustworthy data, trace lineage, look up ownership, and reference documentation without leaving the editor.
Navigate to Cursor → Settings → Cursor Settings → MCP, add a new server, and paste:
{
"mcpServers": {
"datahub-cloud": {
"url": "https://<tenant>.acryl.io/integrations/ai/mcp/",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
Replace <tenant> with your DataHub Cloud tenant name and <token> with your personal access token.
:::tip Keep Your Token Secret If your MCP config is checked into version control, reference an environment variable instead of a literal token:
"Authorization": "Bearer ${DATAHUB_TOKEN}"
:::
Install uv (curl -LsSf https://astral.sh/uv/install.sh | sh), then add a new MCP server in Cursor settings with:
{
"mcpServers": {
"datahub": {
"command": "uvx",
"args": ["mcp-server-datahub@latest"],
"env": {
"DATAHUB_GMS_URL": "<your-datahub-url>",
"DATAHUB_GMS_TOKEN": "<your-datahub-token>"
}
}
}
}
After saving, the MCP settings page should show a green dot and list the DataHub tools. If the dot doesn't appear, check that:
uvx is on Cursor's PATH — run which uvx and use the full path in command if needed.For general troubleshooting, see the MCP server guide.