MCP Server
Connect an AI assistant to Draxlr with the Model Context Protocol.
The Draxlr MCP Server lets AI assistants that support the Model Context Protocol (such as Claude and Cursor) work directly with your Draxlr databases and dashboards. Once connected, the assistant can list your databases, run SQL, save queries, build dashboards, and export queries and dashboards on your behalf using a set of tools (commands).
The server is available at:
https://api.draxlr.com/mcp
Authentication
Draxlr's MCP server uses OAuth. When you add Draxlr as a connector, your client opens a sign-in flow: you log into Draxlr, authorize access, and the client receives a token. There's nothing to copy or paste.
Connect your MCP client
Add Draxlr as a custom connector and sign in:
- In your AI assistant, open connector settings and choose Add custom connector.
- Paste the server URL:
https://api.draxlr.com/mcp - Click Connect and sign in with your Draxlr account to authorize access.
Step-by-step for each client: see Set up in your client for Claude, ChatGPT, Perplexity, VS Code, and Cursor.
Available commands
List all databases connected to your organization.
Run a read-only SQL query and get the results.
Run an existing saved query by its id.
Save a SQL query to a database.
List the saved queries of a database.
Get a saved query and its link by id.
Export a saved query's results as CSV or Excel.
List the dashboards in your organization.
Add a saved query as a widget to a dashboard.
Get a dashboard's widgets and its link by id.
Export an entire dashboard as Excel or PDF.
Shareable links:
Tools that reference a query or dashboard return a url to open it in
Draxlr — so you can ask your assistant for the link to any query or dashboard.
Typical workflow
- List Databases to find the
databaseIdyou want to work with. - Run Query to execute SQL and preview the results.
- Save Query to store it under the database's saved queries.
- List Dashboards to find a dashboard, then Add Query to Dashboard to pin the query as a widget.
Read-only queries:
Only read (SELECT) queries are allowed. Write statements are rejected, so the assistant can explore your data safely.