Skip to main content
Glama
Bauplan MCP Server

Bauplan MCP Server

Official
by BauplanLabs

Bauplan MCP Server

A Model Context Protocol (MCP) server that gives AI assistants (Claude Code, Claude Desktop, Cursor) access to Bauplan lakehouse operations: querying tables, schema inspection, branch management, and running pipelines. A video walkthrough demonstrates setup and usage.

NOTE

This project is released in Beta under MIT license. APIs and features may change without notice as we continue development.

IMPORTANT

A hosted MCP server is now available for existing Bauplan users at https://mcp.use1.aprod.bauplanlabs.com/mcp - you no longer need to run the server locally. Add it as a custom connector in Claude Desktop (or any MCP client) and authenticate with your Bauplan API key. See Execution modes for all the ways to run the server.

Overview

This repository contains the Bauplan MCP Server — a Model Context Protocol server that gives AI assistants access to Bauplan lakehouse operations. A blog post with context and background is available here.

TIP

Looking for the best local AI setup with Bauplan? Check out BauplanLabs/bauplan-skills — it includes agent playbooks (CLAUDE.md), skills, and everything you need to get AI coding assistants working with Bauplan via CLI and SDK, without running an MCP server.

Related MCP server: Databricks MCP Server

Execution modes

The server supports three execution modes. They differ in who runs the server and in which tools are exposed: tool visibility is set by FastMCP tags and can be tuned with MCP_VISIBLE_TOOL_TAGS. All three authenticate with your Bauplan API key.

  1. Local - run the server on your own machine and point your AI assistant at http://localhost:8000/mcp; exposes every tool by default. See MCP Quick Start.

  2. Self-hosted - deploy the server on your own infrastructure and point your assistant at your endpoint, passing your Bauplan API key as a bearer token; control the exposed tools with MCP_VISIBLE_TOOL_TAGS. See Bauplan Credentials and Container Runtime.

  3. Bauplan public endpoint - skip running a server and connect directly to Bauplan's hosted endpoint at https://mcp.use1.aprod.bauplanlabs.com/mcp; exposes only the remote-safe tools.

MCP Quick Start

You can get started in one minute with your existing AI assistant: a video setup with Claude Desktop and Claude Code is also available here for reference.

You need:

  • a Bauplan API key properly configured in your local config file (default profile) - the server will pick it up automatically (see below for alternative authentication methods);

  • uv (or a standard pip managed virtual environment, see below);

  • an AI platform able to leverage the MCP, as for example Claude Code, Cursor, Claude Desktop.

WARNING

do not use an Admin Bauplan API key: while the server will refuse to write onmain, it is good practice to use a non-admin key for AI-assisted development (see our roadmap below for more details on upcoming security features).

Start the server with:

uv sync
uv run python main.py --transport streamable-http

The MCP server is now available at http://localhost:8000/mcp. You can configure the server in Claude Code for example with:

claude mcp add -t http mcp-bauplan http://localhost:8000/mcp

Similar commands can be run on Claude Desktop or Cursor to enable the AI to access the server.

Et voilà! You can now start asking your AI questions about your data lakehouse (and much more!).

Advanced Configurations

Bauplan Credentials

The Beta release covers the local development use case. Authentication to your Bauplan lakehouse happens as follows:

  • if you do not specify a Bauplan profile as a flag, the default one on the machine running the server will be used at every interaction with the lakehouse.

  • if you specify a profile as a flag, this profile will be used instead when instantiating a Bauplan client.

  • if you specify a header in your assistant - either Authorization: Bearer <your-bauplan-api-key> or Bauplan: <your-bauplan-api-key> (e.g. in Claude Code claude mcp add -H "Authorization: Bearer <your-bauplan-api-key>" ...) -, that value will be used instead when instantiating a Bauplan client. This is convenient for quick tests, and opens up the possibility of hosting the catalog on a shared infrastructure, delegating to clients the Bauplan API key management.

For example, if you are connecting to a remotely hosted MCP server that delegates Bauplan authentication to the client, you can register it in Claude Code and pass your own bearer token with:

claude mcp add -t http -H "Authorization: Bearer <your-bauplan-api-key>" mcp-bauplan https://<your-mcp-host>/mcp

Server CLI Options

The server supports the following CLI options, mostly useful for specifying alternative transport options:

Option

Default

Description

Used With

--transport

stdio

Transport protocol: stdio, sse, or streamable-http

All commands

--host

127.0.0.1

Host to bind to (localhost by default)

sse, streamable-http only

--port

8000

Port to bind to

sse, streamable-http only

--profile

None

Bauplan profile to use

All commands

Note: The --host and --port options are ignored when using stdio transport since it communicates through stdin/stdout.

Container Runtime

The Docker image starts HTTP transports with Gunicorn and Uvicorn workers. This is meant for remote deployments where several requests can be handled concurrently. Local MCP usage should continue to use python main.py, especially for stdio.

Useful environment variables:

Variable

Default

Description

MCP_TRANSPORT

streamable-http

HTTP transport for the container, or stdio

MCP_WORKERS

4

Gunicorn worker count for HTTP transports

MCP_KEEP_ALIVE

65

Gunicorn keep-alive timeout in seconds

PORT

8000

Container listen port for HTTP transports

MCP_AUTH_MODE

none

Use api-key-oauth for remote OAuth clients

MCP_PUBLIC_BASE_URL

required for OAuth

Public MCP server base URL. Requires MCP_AUTH_MODE=api-key-oauth

MCP_LOG_TOOL_ARGS

false

Log full tool arguments for debugging. Emits a warning when MCP_PUBLIC_BASE_URL is set

MCP_VISIBLE_TOOL_TAGS

unset locally, remote in OAuth mode

Comma-separated allowlist of FastMCP tool tags to expose

MCP_OAUTH_SECRET

required for OAuth

Stable secret used to sign tokens and encrypt API keys

MCP_OAUTH_TRUSTED_REDIRECTS

Claude and ChatGPT callbacks

Comma-separated trusted redirect list. Supports a trailing * for trusted path prefixes

MCP_OAUTH_ALLOW_API_KEY_BEARER

false

Also accept a Bauplan API key as bearer token, for clients that only send static headers

Tool visibility is controlled with FastMCP tags. Local runs expose every tool by default. Remote OAuth runs expose only tools tagged remote unless MCP_VISIBLE_TOOL_TAGS is set explicitly. This keeps local-only tools such as project_run and run_query_to_csv out of shared server deployments. When multiple tags are configured, a tool is visible if it has at least one matching tag.

Useful examples:

# Expose only remote-safe tools.
MCP_VISIBLE_TOOL_TAGS=remote uv run python main.py --transport streamable-http

# Expose only read-only tools for inspection.
MCP_VISIBLE_TOOL_TAGS=read uv run python main.py --transport streamable-http

Current tags are remote, local, read, write, and destructive.

OAuth clients with valid HTTPS redirect URIs can still register dynamically. Redirects outside MCP_OAUTH_TRUSTED_REDIRECTS are shown to users as unverified before they continue.

Claude Desktop

To add the Bauplan MCP server to Claude Desktop, follow the guide to get to your claude_desktop_config.json file.

You can then add this configuration (modify the paths as needed):

{
  "mcpServers": {
    "mcp-bauplan": {
      "command": "/path/to/bauplan-mcp-server/.venv/bin/python3",
      "args": [
        "/path/to/bauplan-mcp-server/main.py",
        "--transport",
        "stdio"
      ],
      "workingDirectory": "/path/to/bauplan-mcp-server/"
    }
  }
}

Quit and restart Claude Desktop. Now all Bauplan tools are available to your assistant, as this video demonstrates.

MCP Inspector

Start the MCP Inspector if you wish to manually test the server (Node is required):

npx @modelcontextprotocol/inspector

Now, configure the inspector with the proper variables, e.g. for Streamable HTTP:

Features

Tool List

Data Operations

  • get_tables: List all tables in a branch/namespace

  • get_table: Get metadata, documentation, and schema for a specific table (more efficient for single table)

  • run_query: Execute SELECT queries on tables

  • run_query_to_csv: Execute SELECT queries and save results directly to CSV file (local/non-OAuth servers only, scalar data types only)

Branch Management

  • get_branches: List branches with optional filters

  • get_branch: Get a branch by name

  • get_commits: Get commit history from branches

  • create_branch: Create new branches from references

  • merge_branch: Merge branches with custom commit messages

  • rename_branch: Rename a non-main branch

  • delete_branch: Delete branches (with safety checks)

Namespace Management

  • get_namespaces: List available namespaces in a branch

  • get_namespace: Get a namespace by name

  • create_namespace: Create new namespaces in branches

  • delete_namespace: Delete namespaces from branches

Tag Management

  • get_tags: Get tags with optional filters

  • get_tag: Get a tag by name

  • create_tag: Create a new tag from a reference

  • rename_tag: Rename a tag

  • delete_tag: Delete a tag

Table Management

  • create_table: Create a table from S3 location using schema detection (creates ICEBERG table structure but doesn't populate data)

  • create_external_table_from_parquet: Create an external table that reads Parquet files in place from S3/GCS (returns job_id for tracking)

  • create_external_table_from_metadata: Register an existing Iceberg table from its metadata.json as an external table

  • plan_table_creation: Create a table import plan from S3 location (generates YAML schema plan with job tracking)

  • apply_table_creation_plan: Apply a table creation plan to resolve schema conflicts (returns job_id for tracking)

  • delete_table: Delete a table from a specific branch

  • import_data: Import data into an existing table from S3 location (returns job_id for tracking; skips files already imported unless asked otherwise)

  • revert_table: Revert a table from a source reference to a target branch with optional replacement

Project Management

  • project_run: Run a Bauplan project from a specified directory and reference with configurable parameters (local/non-OAuth servers only)

  • code_run: Run a Bauplan project from code files provided as a dictionary (useful for clients that cannot submit paths), automatically creates temporary directory and validates project structure

Job Management

  • get_jobs: List jobs in the Bauplan system with optional filtering for all users

  • get_job: Get detailed information about a specific job by its ID

  • cancel_job: Cancel a running job by its ID and get updated job status

User Management

  • get_user_info: Get information about the current authenticated user (username and full name)

Instructions and Guidance

  • get_instructions: Get detailed instructions for specific Bauplan use cases (pipeline, data, repair, wap, test, sdk)


License

This project is provided with no guarantees under the attached MIT License.

Available Tools

33 tools
apply_table_creation_planA

Apply a provided table creation plan to resolve schema conflicts and create a new table in the system. Returns a job_id for tracking the asynchronous operation.

This function is used when schema conflicts exist after plan creation and need manual resolution. Most common schema conflict is two parquet files with the same column name but different datatype. Note: This is done automatically during table plan creation if no schema conflicts exist.

Args: plan: The plan dictionary or TableCreatePlanState to apply. debug: Whether to enable or disable debug mode (optional). args: Additional arguments for plan application (optional). priority: Job priority, 1-10 where 10 is highest priority (optional). verbose: Whether to enable or disable verbose mode (optional). client_timeout: Timeout in seconds (defaults to 120).

Returns: TablePlanApplied: Object indicating success/failure with job tracking details

Inputs: plan (required), debug, args, priority, +2 more. Returns: job_id, success, message

cancel_jobA

Cancel a running job in the Bauplan system by its job_id and return the updated job status.

Args: job_id: The ID of the job to cancel.

Returns: JobInfo: Object containing updated job details after cancellation

Inputs: job_id (required). Returns: id, kind, user, human_readable_status, +3 more

code_runA

Run a pipeline from provided source code files as a dictionary and a data ref, returning a job ID and success/failure to the caller.

Args: project_files: Dictionary mapping file names to source code as strings. Must contain bauplan_project.yml and .sql/.py files. ref: The ref or branch name from which to run the project. parameters: Parameters for templating DAGs. Keys are parameter names, values must be simple types (str, int, float, bool). Default: None.

Returns: RunState: Object indicating success/failure with job Id.

Inputs: project_files (required), ref (required), parameters. Returns: success, job_id

create_branchA

Create a new branch in the user's Bauplan data catalog using a branch name, returning a confirmation.

Args: branch: Name of the new branch to create. Must follow the format <username.branch_name>. from_ref: Reference (branch/commit) to create the branch from. Can be either a branch name or a hash that starts with "@" and has 64 additional characters.

Returns: BranchCreated: Object indicating success/failure with branch details

Inputs: branch (required), from_ref (required). Returns: created, name, hash, message

create_namespaceB

Create a new namespace in a specified branch of the user's Bauplan data catalog using a namespace name.

Args: namespace: Name of the namespace to create. branch: Branch name where the namespace will be created. Must follow the format <username.branch_name>.

Returns: NamespaceCreated: Object indicating success/failure with namespace details

Inputs: namespace (required), branch (required). Returns: created, namespace, branch, message

create_tableB

Create an empty table from an S3 URI identifying parquet, csv or JSONL files in S3. The table schema is automatically inferred from the files at the given search uri.

Args: table: Name of the table to create. search_uri: S3 URI to search for parquet files. branch: branch name. namespace: Optional namespace (defaults to "bauplan"). partitioned_by: Optional partitioning column. replace: Optional flag to replace existing table.

Returns: TableCreated: Object indicating success/failure with table details.

NOTE: This tool creates a ICEBERG table with the schema of the file(s) in the URI but it does not populate the table.

Inputs: table (required), search_uri (required), branch (required), namespace, +2 more. Returns: table_name, namespace, success, message

create_tagB

Create a new tag in a specified branch of the user's Bauplan data catalog using a tag name. Create a new tag in a specific branch of the user's Bauplan catalog.

Args: tag: Name of the tag to create. from_ref: Reference (branch or commit) from which to create the tag.

Returns: TagCreated: Object indicating success/failure with tag details

Inputs: tag (required), from_ref (required). Returns: created, tag, from_ref, message

delete_branchA

Delete a specified branch from the user's Bauplan data catalog using a branch name.

Args: branch: Name of the branch to delete. Must follow the format <username.branch_name>.

Returns: BranchDeleted: Object indicating success/failure of the deletion

Inputs: branch (required). Returns: deleted, branch, message

delete_namespaceC

Delete a specified namespace from a given branch in the user's Bauplan data catalog using a namespace name and branch name. Delete a namespace from a specific branch of the user's Bauplan catalog.

Args: namespace: Name of the namespace to delete. branch: Branch name containing the namespace to delete. Must follow the format <username.branch_name>.

Returns: NamespaceDeleted: Object indicating success/failure of the deletion

Inputs: namespace (required), branch (required). Returns: deleted, namespace, branch, message

delete_tableC

Delete a specified table from the user's Bauplan data catalog using a table name. Delete a table from the user's Bauplan data lake.

Args: table: Name of the table to delete. branch: Branch name where the table will be deleted. Must follow the format <username.branch_name>.

Returns: TableDeleted: Object indicating whether the table was deleted with details

Inputs: table (required), branch (required). Returns: table_name, deleted, message

delete_tagC

Delete a specified tag from the user's Bauplan data catalog using a tag name.

Args: tag: Name of the tag to delete.

Returns: TagDeleted: Object indicating success/failure of the deletion

Inputs: tag (required). Returns: deleted, tag, message

get_branchesA

Retrieve branches from the user's Bauplan data catalog as a list, with optional user and limit (integer) filters to reduce response size. Get branches from the Bauplan catalog with optional filtering. NOTE: This can return a large response. Always use limit parameter.

Args: name: Optional filter to get branches by name (substring match) user: Optional filter to get branches by user limit: Maximum number of branches to return (needs to be an integer, default 10)

Returns: BranchesOut: Object containing list of branches with their names and hashes

Inputs: name, user, limit. Returns: branches, total_count

get_commitsA

Retrieve commit history for a specified branch in the user's Bauplan data catalog as a list, with optional filters including date range (ISO format: YYYY-MM-DD) and limit (integer). Retrieve commit history from a Bauplan branch.

Args: ref: branch or commit hash to get commits from. Can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format. message_filter: Optional filter for commit messages (substring match) author_username: Optional filter by author's username author_email: Optional filter by author's email date_start: Optional start date for filtering (ISO format: YYYY-MM-DD) date_end: Optional end date for filtering (ISO format: YYYY-MM-DD) limit: Maximum number of commits to return (default: 10)

Returns: CommitsOut: Object containing list of commits and total count

Inputs: ref (required), message_filter, author_username, author_email, +3 more. Returns: commits, total_count

get_instructionsA

Get detailed instructions for specific Bauplan use cases to be used to solve the task, possibly suggesting further tool usage.

Args: use_case: The use case to get instructions for. Must be one of: - 'pipeline': Instructions for creating and managing data pipelines - 'data': Instructions for reading data and metadata, including data lineage information - 'repair': Instructions for repairing failed pipelines - 'wap': Instructions for data ingestion using the Write-Audit-Publish (WAP) pattern - 'test': Instructions for creating and managing data expectations and quality tests - 'sdk': Instructions for explaining Bauplan SDK methods and verifying their syntax and usage

Returns: Prompt: Object containing the detailed instructions for the specified use case, to be used by the caller to further plan which tools to use and how to use them.

Inputs: use_case (required). Returns: prompt

get_jobA

Retrieve details of a job by job ID, such as user logs, code snapshot, project id. Get details of a specific job by its ID.

Human_readable_status in the response will be "Failed" for failed jobs, "Completed" for completed jobs.

Args: job_id: The ID of the job to retrieve.

Returns: JobInfo: Object containing job details id (str): The ID of the job. kind (str): The kind of job. user (str): The user who created the job. human_readable_status (str): Human-readable status of the job. created_at (Optional[str]): ISO formatted creation timestamp of the job. finished_at (Optional[str]): ISO formatted finish timestamp of the job. status (str): The status of the job. logs (Optional[str]): Concatenated user logs from the job. code_snapshot_path (Optional[Path]): Path to the code snapshot directory. ref (Optional[str]): The data commit reference when the job was run, i.e. the state of source tables for the job at that time. transactional_branch (Optional[str]): The transactional branch that was open when the job was run. project_yml (Optional[str]): The contents of the bauplan_project.yml file from the snapshot. project_files (Optional[dict[str, str]]): A dictionary of other project files from the snapshot, with filenames as keys and file contents as values.

Inputs: job_id (required). Returns: id, kind, user, human_readable_status, +9 more

get_namespacesA

Retrieve namespaces for a branch from the user's Bauplan data catalog as a list. Use 'limit' (integer) to reduce response size. Get the namespaces of a branch using optional filters.

Args: ref: branch or commit hash to get namespaces from. Can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format. namespace: Optional filter for namespace names (substring match) limit: Optional maximum number of namespaces to return (default: 10)

Returns: NamespacesOut: Object containing list of namespaces and total count

Inputs: ref (required), namespace, limit. Returns: namespaces, total_count

get_schemaA

Retrieve schemas of all data tables in a specified branch or reference of the user's Bauplan data catalog as a list, using a branch name.

Args: ref: a reference to a commit that is a state of the user data lake: can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format. namespace: Optional namespace table filter to use.

Returns: SchemasOut: Schema object with table fields

Inputs: ref (required), namespace. Returns: tables

get_tableB

Retrieve the schema of a specified data table in the user's Bauplan data catalog using a table name, returning a schema object.

Args: ref: a reference to a commit that is a state of the user data lake: can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format. table_name: Name of the specific table to get schema for. namespace: Optional namespace to use (defaults to "bauplan").

Returns: TableOut: Schema object with table fields for the specified table

Inputs: ref (required), table_name (required), namespace. Returns: table

get_tagsA

Retrieve tags from the user's Bauplan data catalog as a list, with optional filter_by_name and limit (integer) to reduce response size. Get the tags using optional filters.

Args: filter_by_name: Optional filter for tag names (substring match) limit: Optional maximum number of tags to return

Returns: TagsOut: Object containing list of tags and total count

Inputs: filter_by_name, limit. Returns: tags, total_count

get_user_infoA

Retrieve user information about the current authenticated Bauplan user. Get information about the current authenticated user.

Args:

Returns: UserInfo: Object containing username and full name of the authenticated user

Inputs: no named parameters. Returns: username, full_name

has_branchA

Check if a specified branch exists in the user's Bauplan data catalog using a branch name. Check if a specific branch exists in the Bauplan catalog.

Args: branch: Name of the branch to check for existence.

Returns: BranchExists: Object indicating whether the branch exists with details

Inputs: branch (required). Returns: branch_name, exists, message

has_namespaceA

Check if a specified namespace exists in a given branch of the user's Bauplan data catalog using a namespace name and branch name.

Args: namespace: Name of the namespace to check for existence. ref: The ref, branch name or tag name to check the namespace on.

Returns: NamespaceExists: Object indicating whether the namespace exists with details

Inputs: namespace (required), ref (required). Returns: namespace_name, ref_name, exists, message

has_tableB

Check if a specified table exists in a given branch of the user's Bauplan data catalog using a table name and branch name.

Args: table: Name of the table to check for existence. ref: A reference to a commit that is a state of the user data lake: can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format.

Returns: TableExists: Object indicating whether the table exists with details

Inputs: table (required), ref (required). Returns: table_name, exists, message

has_tagA

Check if a specified tag exists in the user's Bauplan data catalog using a tag name.

Args: tag: Name of the tag to check for existence.

Returns: TagExists: Object indicating whether the tag exists with details

Inputs: tag (required). Returns: tag_name, exists, message

import_dataA

Import data into a specified existing table using a table name and data source.

Args: table: Name of the table to import data into, it needs to exist beforehand. search_uri: URI to search for data files to import. branch: branch name. namespace: Optional namespace (defaults to "bauplan").

Returns: DataImported: Object indicating success/failure with job details

Inputs: table (required), search_uri (required), branch (required), namespace. Returns: table_name, job_id, success, message

list_jobsA

Retrieve a list of jobs in Bauplan, optionally filter by job id, status (COMPLETE, FAIL, ABORT, RUNNING), user name, start and end time (UTC, format '%m/%d/%y %H:%M:%S').

Args: job_id: Optional filter by job ID status: Optional filter by job status, either COMPLETE, FAIL, ABORT or RUNNING user_name: Optional filter by user name start_time: Optional filter by job start time, UTC time, '%m/%d/%y %H:%M:%S', e.g. '09/19/22 13:55:26' end_time: Optional filter by job finish time, UTC time, '%m/%d/%y %H:%M:%S', e.g. '09/19/22 13:55:26'

Returns: JobsList: Object containing list of jobs with their details

Inputs: job_id, status, user_name, start_time, +1 more. Returns: jobs, total_count

list_tablesA

Retrieve a list of all data tables in a specified branch or reference of the user's Bauplan data catalog using a ref name.

Args: ref: a reference to a commit that is a state of the user data lake: can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format. namespace: Optional namespace to use.

IMPORTANT: Always use this tool BEFORE generating code with generate_code to ensure you're referencing tables that actually exist.

Returns: TablesOut: object with list of table names

Inputs: ref (required), namespace. Returns: tables, ref, namespace

merge_branchB

Merge a source branch into a target branch in the user's Bauplan data catalog using source and target branch names. Branch names must follow the format <username.branch_name>.

Args: source_ref: The branch to merge from. The name must follow the format <username.branch_name>. into_branch: The target branch to merge into. The name must follow the format <username.branch_name>. commit_message: Optional custom commit message for the merge commit_body: Optional additional commit body/description

Returns: MergeResult: Object indicating success/failure with merge details

Inputs: source_ref (required), into_branch (required), commit_message, commit_body. Returns: merged, source_ref, target_branch, message

plan_table_creationA

Generate a YAML schema plan for importing a table from an S3 URI in the user's Bauplan data catalog returning a job ID for tracking). Create a table import plan from an S3 location.

This operation will attempt to create a table based of schemas of N parquet files found by a given search uri. A YAML file containing the schema and plan is returned and if there are no conflicts, it is automatically applied.

Args: table: Name of the table to plan creation for. search_uri: S3 URI to search for parquet files. namespace: Optional namespace (defaults to "bauplan"). branch: Optional branch name. partitioned_by: Optional partitioning column. replace: Optional flag to replace existing table.

Returns: TablePlanCreated: Object indicating success/failure with job tracking details

Inputs: table (required), search_uri (required), namespace, branch, +2 more. Returns: job_id, table_name, search_uri, success, +3 more

project_runA

Run a pipeline from a specified directory and data ref, returning a job ID and success/failure to the caller.

Args: project_dir: The directory of the project containing the source code files and bauplan_project.yml. ref: The ref or branch name from which to run the project. namespace: The Namespace to run the job in. If not set, the job will be run in the default namespace. parameters: Parameters for templating DAGs. Keys are parameter names, values must be simple types (str, int, float, bool). dry_run: Whether to enable or disable dry-run mode for the run; models are not materialized (defaults to False). client_timeout: Seconds to timeout (defaults to 120).

Returns: RunState: Object indicating success/failure with job Id

Inputs: project_dir (required), ref (required), namespace, parameters, +2 more. Returns: success, job_id

revert_tableC

Revert a specified table from a source reference to a target branch in the user's Bauplan data catalog using a table name, source reference, and target branch. Revert a table from a source reference to a target branch.

Args: table: The table to revert. source_ref: The name of the source ref. into_branch: The name of the target branch where the table will be reverted. replace: Optional, whether to replace the table if it already exists.

Returns: TableReverted: Object indicating success/failure with revert details

Inputs: table (required), source_ref (required), into_branch (required), replace. Returns: table_name, source_ref, into_branch, success, +1 more

run_queryA

Execute a SQL SELECT query on the user's Bauplan data catalog, returning results as a QueryOut object using a query, optional ref, and optional namespace. Executes a SQL query against the user's Bauplan data lake.

Args: query: SQL query to execute ref: a reference to a commit that is a state of the user data lake: can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format. namespace: Optional namespace to use.

Returns: QueryOut: Response object with query results or error

Inputs: query (required), ref, namespace. Returns: status, data, metadata, error

run_query_to_csvA

Execute SQL SELECT queries on a specified table in the user's Bauplan data catalog, saving results to a CSV file, using a query and table name, returning a file path. Execute SELECT queries and save results directly to CSV file.

Note: CSV format only supports scalar data types (strings, numbers, booleans). Queries returning complex types (arrays, lists, nested objects) will fail. For complex data, use run_query tool instead or modify SQL to flatten/convert data.

Args: path: Output CSV file path where results will be saved. query: SQL query to execute (DuckDB SQL syntax). ref: Branch/reference to query against (optional). namespace: Namespace to use (optional). client_timeout: Timeout in seconds (defaults to 120).

Returns: QueryToCSVResult: Object indicating success/failure with execution details

Inputs: path (required), query (required), ref, namespace, +1 more. Returns: path, query, ref, namespace, +2 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 33 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes (e.g., create, get, delete for different resources). Potential overlaps like code_run vs project_run and run_query vs run_query_to_csv are mitigated by detailed descriptions. A few pairs could still cause confusion, but overall boundaries are clear.

    Naming Consistency3/5

    Naming patterns are mixed: some use verb_noun (create_branch), others verb_noun_noun (apply_table_creation_plan), and retrieval uses both 'get_' and 'list_' inconsistently (e.g., get_branches vs list_tables). While still readable, the inconsistency may hinder quick tool selection.

    Tool Count3/5

    With 33 tools, the server is on the heavier side for a typical MCP server. While the domain (data catalog and pipelines) justifies many operations, some tools like multiple query variants and plan phases could be consolidated. Not extreme, but above ideal.

    Completeness4/5

    The tool surface covers CRUD for branches, namespaces, tables, and tags, plus job management, query execution, and pipeline runs. Missing explicit update tools (e.g., update_table) but those are handled via merge/revert/import. The inclusion of a meta-instruction tool is helpful. Minor gaps exist but overall solid.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform comprehensive Snowflake database operations including DDL, DML, and warehouse management. It allows users to query data, manage database objects, and configure permissions using natural language commands.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to explore Unity Catalog metadata, execute SQL queries, and analyze data lineage including notebooks and jobs, empowering autonomous data discovery and query generation in Databricks.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables LLM agents to interact with a SQLMesh project, providing model metadata, column-level lineage, plan previews, audits/tests, and environment diffs, with optional apply/run actions.
      27
      2
      MIT