Common Issues
MISSING_SERVICE_TOKEN error
MISSING_SERVICE_TOKEN error
Cause: Your service token isn’t set or isn’t being read by the MCP server.Fix:If the token is set correctly and you still see this error, try regenerating it in Settings → Service Tokens in the Databrain UI.
- Check that
DATABRAIN_SERVICE_TOKENis in theenvblock of your MCP config (not in your shell environment — MCP clients read from the config file) - Verify the token value is correct — no extra spaces or quotes
- Restart your AI client after changing the config
MISSING_API_TOKEN error
MISSING_API_TOKEN error
Cause: An embed operation was attempted without an active API token. This is normal during first-time setup.Fix: The assistant should automatically create one via
create_api_token. If the error persists, ask:“Create an API token for my data app”You can also pre-configure an API token in your MCP config:
API tokens are scoped to a single data app. If you work with multiple data apps, let the MCP server create tokens automatically rather than pre-configuring one.
No dashboards found
No dashboards found
Cause: No workspace was selected, or the selected workspace has no dashboards.Fix: Ask the assistant to list workspaces first, then show dashboards:
“List my workspaces and then show dashboards”Dashboards are 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, or security mismatch.Fix:
- Guest token generated server-side? Never expose API tokens in frontend code. Guest tokens must be generated from your backend.
- IDs match? Verify the embed ID and dashboard ID are correct.
- Domain whitelisted? Check that your frontend’s domain is allowed in the Data App settings.
- Run a health check: Ask the assistant:
“Run a health check on my embed”This triggers
diagnose_embed_health, which checks for malformed metadata and validates runtime readiness.Theme changes not showing
Theme changes not showing
Cause: Existing guest tokens still carry the old configuration.Fix: After updating theme or options via
customize_embed_theme or configure_embed:- Regenerate your guest token by calling
generate_guest_tokenagain - Reload your application to use the new token
Server won't start
Server won't start
Cause: Usually a Node.js version issue.Fix: The MCP server requires Node.js 18 or higher:If you see a version below 18, update Node.js. We recommend using nvm to manage Node.js versions:
ask_question returns poor results
ask_question returns poor results
Cause: The semantic layer is empty or incomplete.Fix: The semantic layer provides the metadata that helps the AI understand your column names and relationships. Check its status:
“Check the semantic layer quality for my datamart”If the completion score is low, populate it:
“Add descriptions and synonyms to improve query accuracy”The assistant will auto-generate descriptions from table and column names and push them via
update_semantic_layer. Adding synonyms for business terms (e.g., “revenue” = “total_sales”) significantly improves accuracy.npx command not found or hangs
npx command not found or hangs
Cause: npm/npx not installed or network issues fetching the package.Fix:Then update your config to use the global binary:
- Ensure npm is installed:
npm --version - Try running the package directly to check for errors:
- If it hangs, you may have a network/proxy issue. Try installing globally first:
Diagnostic Tools
The MCP server includes a built-in diagnostic tool. Ask your assistant:“Run a health check on my embed”This calls
diagnose_embed_health, which checks:
- Embed metadata structure (access settings, datamart references)
- Required fields are present and valid
- Runtime readiness when guest token info is provided
- Permission configuration consistency
Known Limitations (v0.2.0)
This is the initial public release. A few things to be aware of:| Area | Limitation | Workaround |
|---|---|---|
| Infrastructure creation | Cannot create datasources, datamarts, or workspaces via MCP | Create these in the Databrain UI, then use MCP for everything else |
| Transport | stdio only — no HTTP/SSE transport yet | Use npx with your MCP client’s config file |
| Batch operations | No bulk embed creation in a single call | Create embeds one at a time via create_embed or ask the assistant to loop |
| Dashboard creation | Cannot create dashboards or metrics via MCP | Build dashboards in the Databrain UI, then embed them via MCP |
| Semantic layer | Auto-generated descriptions are a starting point | Review and refine descriptions manually via update_semantic_layer for best query accuracy |
We’re actively expanding the MCP server’s capabilities. If there’s a specific operation you’d like supported, let us know.
Getting Help
Quickstart
Start over with setup
Client Setup
Verify your client config
Support
Contact our team for help

