Skip to main content

Cursor Integration

📚 Navigation: ← Back to Agent Context Kit | Claude Integration → | Copilot Studio Integration →

Connect Cursor to DataHub so the AI agent can search your data catalog, inspect schemas, and trace lineage — all without leaving the editor.

Prerequisites

DataHub Cloud

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.

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}"

Self-Hosted DataHub

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>"
}
}
}
}

Verify

After saving, the MCP settings page should show a green dot and list the DataHub tools. If the dot doesn't appear, check that:

  • The JSON is valid (no trailing commas).
  • For self-hosted: 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.