Bricks And Context MCP Server

Think of it as a bridge: your AI asks questions, this server translates them into Databricks API calls, and returns structured, AI-friendly responses.

Local serverstdioPython

What is the Bricks And Context MCP server?

Most database access work still happens through a UI a human drives. Bricks And Context MCP server moves it into the conversation instead. Think of it as a bridge: your AI asks questions, this server translates them into Databricks API calls, and returns structured, AI-friendly responses.

The tools it exposes

The server publishes 14 tools. What each one is for:

  • execute_sql_query — Run SQL with bounded, AI-safe output
  • discover_schemas — List all schemas in the workspace
  • discover_tables — List tables in a schema with metadata
  • describe_table — Get column types, nullability, structure
  • get_table_sample — Preview rows for data exploration
  • connection_health — Verify Databricks connectivity
  • list_jobs — List jobs with optional name filtering
  • get_job_details — Full job config: schedule, cluster, tasks
  • get_job_runs — Run history with state and duration
  • trigger_job — Start a job with optional parameters
  • cancel_job_run — Stop a running job
  • get_job_run_output — Retrieve logs, errors, notebook output

What it needs from you

Configuration is passed through the environment: MCP_AUTH_PATH, MCP_CONFIG_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

How it compares

Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Bricks And Context's toolset — execute_sql_query, discover_schemas, discover_tables and 11 more — is a fair guide to whether it matches your workflow. It is maintained by laraib-sidd; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Bricks And Context.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
execute_sql_queryRun SQL with bounded, AI-safe output
discover_schemasList all schemas in the workspace
discover_tablesList tables in a schema with metadata
describe_tableGet column types, nullability, structure
get_table_samplePreview rows for data exploration
connection_healthVerify Databricks connectivity
list_jobsList jobs with optional name filtering
get_job_detailsFull job config: schedule, cluster, tasks
get_job_runsRun history with state and duration
trigger_jobStart a job with optional parameters
cancel_job_runStop a running job
get_job_run_outputRetrieve logs, errors, notebook output
cache_statsHit rates, memory usage, category breakdown
performance_statsOperation latencies, error rates, health

How to install the Bricks And Context MCP server

**Or using venv directly:**

```json
{
  "mcpServers": {
    "databricks": {
      "command": "/path/to/bricks-and-context/.venv/bin/python",
      "args": ["/path/to/bricks-and-context/run_mcp_server.py"],
      "env": {
        "MCP_AUTH_PATH": "/path/to/bricks-and-context/auth.yaml",
        "MCP_CONFIG_PATH": "/path/to/bricks-and-context/config.json"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
MCP_AUTH_PATHFilesystem location the server is allowed to use.Optional
MCP_CONFIG_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Bricks And Context to execute sql query.
  • Use Bricks And Context to discover schemas.
  • Use Bricks And Context to discover tables.

Frequently asked questions

It connects Bricks And Context to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (execute_sql_query, discover_schemas, discover_tables, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Bricks And Context directly.