Common Issues
Missing token configuration
Missing token configuration
Cause: Neither If the token is set correctly and the error persists, regenerate it in Settings -> Service Tokens in the Databrain UI.
DATABRAIN_SERVICE_TOKEN nor DATABRAIN_API_TOKEN is set, or your MCP client is not reading the configured env block.Fix:- Check that your token is in the
envblock of your MCP config. - Verify the token value has no extra spaces or quotes.
- Restart your AI client after changing the config.
API-token-only mode cannot run setup tools
API-token-only mode cannot run setup tools
Cause: You configured only
DATABRAIN_API_TOKEN. API tokens are scoped to one data app and cannot run org-level setup tools.Fix: Add DATABRAIN_SERVICE_TOKEN when you need discovery, data app management, API token creation, semantic layer operations, or datamart setup.API-token-only mode is still valid for embed operations, widget operations, guest tokens, demo links, and scheduled report metadata inside the configured data app.No dashboards found
No dashboards found
Cause: No workspace was selected, the selected workspace has no dashboards, or the configured token is scoped too narrowly.Fix: Ask the assistant:
“List my workspaces and then show dashboards”Dashboards are usually scoped to workspaces. If you see workspaces but no dashboards, verify that dashboards exist in the Databrain UI for that workspace.
Embed not rendering in frontend
Embed not rendering in frontend
Cause: Usually a token, ID, domain, or guest token payload mismatch.Fix:
- Guest token generated server-side? Never expose API tokens in frontend code.
- IDs match? Verify the embed ID and dashboard ID.
- Domain whitelisted? Check that your frontend’s domain is allowed in the data app settings.
- Inspect the embed: Ask the assistant:
“Check my embed configuration for issues”The assistant uses
get_embed_details to inspect access settings, dashboard references, and token inputs.Theme or option changes not showing
Theme or option changes not showing
Cause: Existing guest tokens may still carry old configuration.Fix: After updating theme or options through
customize_embed_theme or update_embed:- Regenerate the guest token with
generate_guest_token. - Reload your application to use the new token.
Widget changes do not appear in preview
Widget changes do not appear in preview
Cause: The widget may be unpublished, the preview is using a stale guest token, or the wrong
clientId was used.Fix:- Ask the assistant to call
list_widgetsfor the targetclientIdand dashboard. - Confirm the widget has
isPublished: trueif it should appear to end users. - Generate a fresh
get_demo_linkURL. - If testing inside your own app, regenerate the app’s guest token.
SQL-to-metric apply is rejected
SQL-to-metric apply is rejected
Cause: Production writes require an explicit confirmation value.Fix: Run the dry-run first, review the returned plan, then apply only after approval:This applies to
create_or_update_metric_from_query and production datamart creation through create_datamart.ask_question returns poor results
ask_question returns poor results
Cause: The semantic layer is empty, incomplete, or missing business context.Fix: Check its status:
“Check the semantic layer quality for my datamart”If descriptions or synonyms are missing, ask:
“Add descriptions and synonyms to improve query accuracy”The assistant can update metadata with
update_semantic_layer or start semantic-layer generation with start_semantic_layer_generation.Server won't start
Server won't start
Cause: Usually a Node.js version issue or invalid environment variable.Fix: The MCP server requires Node.js 18 or higher:If you see a version below 18, update Node.js. Also verify
DATABRAIN_API_URL and DATABRAIN_DEMO_DOMAIN are valid URLs when set.npx command not found or hangs
npx command not found or hangs
Cause: npm/npx is not installed or the client cannot fetch the package.Fix:Then update your config to use the global binary:
- Ensure npm is installed:
npm --version - Try running the package directly:
- If fetching the package hangs, install globally:
Diagnostics
Ask your assistant:“Who am I authenticated as in Databrain?”This calls
whoami and confirms whether the session is using a service token or API token.
For embed issues, ask:
“Check my embed configuration for issues”The assistant uses
get_embed_details to inspect access settings and dashboard references, then regenerates a guest token if runtime state changed.
For customer dashboard issues, ask:
“List widgets for this client and give me a demo link”The assistant uses
list_widgets and get_demo_link.
Known Limitations
| Area | Limitation | Workaround |
|---|---|---|
| Datasource setup | Datasources are connected in the Databrain UI | Create datasources in the Databrain UI, then use list_datasources, discover_datasource_schema, and sync_datasource |
| Workspace setup | Workspaces are created in the Databrain UI | Create workspaces in the Databrain UI, then use list_workspaces and dashboard workflows |
| Transport | stdio only; no HTTP/SSE transport yet | Use npx with your MCP client’s config file |
| Production writes | Datamart and SQL-to-metric apply operations require explicit confirmation | Run dry-run first, review the plan, then apply with confirm: "APPLY_TO_PRODUCTION" |
| Scheduled reports | list_scheduled_reports returns configured schedule metadata | Use Databrain reporting views for delivery status |
Getting Help
Quickstart
Start over with setup
Client Setup
Verify your client config
Tools Reference
Review available tools

