Skip to main content
Glama

BERDL Datalake MCP Server

A FastAPI-based service that enables AI assistants to interact with Delta Lake tables stored in MinIO through Spark, implementing the Model Context Protocol (MCP) for natural language data operations.

⚠️ Important Warning:

This service allows arbitrary read-oriented queries to be executed against Delta Lake tables. Query results will be sent to the model host server, unless you are hosting your model locally.

Additionally, this service is NOT approved for deployment to any production environment, including CI, until explicit approval is granted by KBase leadership. Use strictly for local development or evaluation purposes only.

Documentation

For detailed documentation, please refer to the User Guide. The guide covers:

Quick Start

Option A: Using Pre-Built Images (Recommended)

  1. Clone the repository:

    git clone https://github.com/BERDataLakehouse/datalake-mcp-server.git cd datalake-mcp-server
  2. Edit docker-compose.yaml:

    • Uncomment all image: and platform: lines

    • Comment out all build: sections

  3. Start the services:

    docker compose up -d

Option B: Building from Source (For Developers)

  1. Clone required repositories:

    # Clone at the same directory level as datalake-mcp-server cd .. git clone https://github.com/BERDataLakehouse/spark_notebook_base.git git clone https://github.com/BERDataLakehouse/kube_spark_manager_image.git git clone https://github.com/BERDataLakehouse/hive_metastore.git cd datalake-mcp-server
  2. Build base images:

    cd ../spark_notebook_base docker build -t spark_notebook_base:local . cd ../datalake-mcp-server
  3. Ensure docker-compose.yaml has build: sections uncommented (default)

  4. Start the services:

    docker compose up -d --build

Access the Services

Note: The MCP server is mounted at /apis/mcp by default. Set SERVICE_ROOT_PATH="" environment variable to serve at root.

Authentication

The service uses KBase authentication with role-based access control:

Environment Variables

Variable

Required

Default

Description

KBASE_AUTH_URL

No

https://ci.kbase.us/services/auth/

KBase authentication service URL

KBASE_ADMIN_ROLES

No

KBASE_ADMIN

Comma-separated list of KBase roles with full admin access

KBASE_REQUIRED_ROLES

No

BERDL_USER

Comma-separated list of KBase roles required to authenticate. Users must have all these roles

Testing

# Install dependencies (only required on first run or when the uv.lock file changes) uv sync --locked # Run tests PYTHONPATH=. uv run pytest tests # Run with coverage PYTHONPATH=. uv run pytest --cov=src tests/
-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BERDataLakehouse/datalake-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server