Dremio MCP Server
The Dremio MCP Server is an open-source project that enables AI chat clients or agents to securely interact with your Dremio deployment using natural language. You can deploy it locally to explore and query data, create views, analyze system performance, and generate insights. For best results, use reasoning-capable LLMs, such as Chain of Thought models. Note that data is shared with the AI service, and responses may be affected by LLM hallucination.
The Dremio MCP Server has three different modes:
FOR_DATA_PATTERNS– Use this mode to explore data, generate SQL queries from natural language, and create views in Dremio.FOR_SELF– Use this mode to perform system introspection and analyze performance.FOR_PROMETHEUS– Use this mode and connect to your Prometheus setup, if one exists, to enhance insights with Dremio-related metrics such as the total number of Reflections.
As the Dremio MCP Server is an open-source project, you can review the codebase and contribute enhancements for review. For more education on MCP Server concepts, please enroll in our Dremio MCP Server course on Dremio University.
Prerequisites
Before configuring the Dremio MCP Server, ensure you have satisfied all of the prerequisites:
- You have an MCP-supporting AI chat client on your computer. For example, Claude.
- You have access to a Dremio deployment, either Dremio on Kubernetes or Dremio on Docker.
- You have installed the
uvPackage Manager, which is required for installation and instantiation of the Dremio MCP Server. - You have identified your URI endpoint.
- For Dremio on Kubernetes deployments, use
https://<coordinator‑host>:<9047 or custom port>. - For Dremio on Docker deployments, use
http://localhost:9047/.
- For Dremio on Kubernetes deployments, use
- You have generated a personal access token (PAT). The Dremio MCP Server operates based on the permissions associated with the PAT.
- If you are using Dremio on Kubernetes, follow the steps in Creating a PAT.
- If you are using Dremio on Docker, refer to the directions below.
Generating Personal Access Token for Dremio on Docker with python3
If you are using Dremio on Docker and are using python3 in your terminal, follow the directions below to generate your PAT:
-
Create and navigate to a new directory.
-
Create a virtual environment:
Creating a virtual environmentpython3 -m venv venv -
Activate the virtual environment:
Activating the virtual environmentsource ./venv/bin/activate -
Install
Installing dremio-simple-querydremio-simple-query, which is the package that you will import into your script to reveal the PAT:pip install dremio-simple-query -
Create a file called
print_token.pyin the Dremio directory using your preferred editor or the command line. -
Enter the following Python code into the newly created
Python script to generate PATprint_token.pyfile and replace the username and password with the credentials for your Dremio on Docker deployment:from dremio_simple_query.connect import get_token, DremioConnection
## URL to Login Endpoint
login_endpoint = "http://localhost:9047/apiv2/login"
## Payload for Login
payload = {
"userName": "username",
"password": "Password"
}
## Get token from API
token = get_token(uri = login_endpoint, payload=payload)
print(token) -
In your terminal, run the
Running the PAT generation scriptprint_token.pyscript from within the directory where you saved the file:python3 print_token.py -
Your PAT is displayed in your terminal. Copy and paste your PAT into a notepad/text file for the Configuring Dremio MCP Server section.