Logo de Bauplan MCP Server

Bauplan MCP Server

Organização
BauplanLabs

Repository hosting the open source Bauplan MCP server

Publicado porBauplanLabs
Repositóriobauplan-mcp-server
IdiomaPython
Forks
3
Estrelas
15
Ferramentas disponíveis
0
Tipo de transportestdio, streamable-http
Categorias
LicençaMIT
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    Bauplan MCP Server disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    15 estrelas e 3 forks no repositório vinculado.

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.

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 on main, 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:

bash
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:

bash
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:

bash
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:

OptionDefaultDescriptionUsed With
--transportstdioTransport protocol: stdio, sse, or streamable-httpAll commands
--host127.0.0.1Host to bind to (localhost by default)sse, streamable-http only
--port8000Port to bind tosse, streamable-http only
--profileNoneBauplan profile to useAll 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:

VariableDefaultDescription
MCP_TRANSPORTstreamable-httpHTTP transport for the container, or stdio
MCP_WORKERS4Gunicorn worker count for HTTP transports
MCP_KEEP_ALIVE65Gunicorn keep-alive timeout in seconds
PORT8000Container listen port for HTTP transports
MCP_AUTH_MODEnoneUse api-key-oauth for remote OAuth clients
MCP_PUBLIC_BASE_URLrequired for OAuthPublic MCP server base URL. Requires MCP_AUTH_MODE=api-key-oauth
MCP_LOG_TOOL_ARGSfalseLog full tool arguments for debugging. Emits a warning when MCP_PUBLIC_BASE_URL is set
MCP_VISIBLE_TOOL_TAGSunset locally, remote in OAuth modeComma-separated allowlist of FastMCP tool tags to expose
MCP_OAUTH_SECRETrequired for OAuthStable secret used to sign tokens and encrypt API keys
MCP_OAUTH_TRUSTED_REDIRECTSClaude and ChatGPT callbacksComma-separated trusted redirect list. Supports a trailing * for trusted path prefixes

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:

bash
# 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):

json
{
  "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):

bash
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
  • 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
  • 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)
  • 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)
  • 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.

Instalação

TypingMind
{
  "mcpServers": {
    "bauplan-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "python",
        "main.py",
        "--transport",
        "stdio"
      ]
    }
  }
}

Use o MCP de Bauplan MCP Server com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar Bauplan MCP Server, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. É possível executar o MCP localmente no seu dispositivo ou se conectar à URL de um servidor MCP remoto.

Opção 1: use o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione Bauplan MCP Server como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de Bauplan MCP Server.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "bauplan-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de Bauplan MCP Server, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de Bauplan MCP Server.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar Bauplan MCP Server para me ajudar nesta tarefa?
Bauplan MCP Server
Claro. Já li.
Veja o que encontrei usando Bauplan MCP Server.

Opção 2: Adicione a URL de um servidor MCP

Use esta opção quando Bauplan MCP Server já estiver hospedado remotamente ou quando sua equipe quiser um conector compartilhado que vários usuários possam acessar.

1

Abra Conectores MCP

No TypingMind, vá até Plugins, abra Conectores MCP e selecione Adicionar URL.

  1. Abra o TypingMind no navegador.
  2. Acesse Plugins.
  3. Abra Conectores MCP.
  4. Clique em Adicionar URL.
Formulário do TypingMind para adicionar a URL de um servidor MCP personalizado
2

Cole a URL do servidor

Insira a URL do servidor MCP fornecida pelo provedor no campo URL do servidor. Adicione um nome para a conexão, uma descrição, um ícone, cabeçalhos HTTP personalizados ou configurações do cliente OAuth se o servidor exigir.

  1. Cole a URL do servidor MCP fornecida pelo provedor no campo URL do servidor.
  2. Digite um nome para a conexão de Bauplan MCP Server.
  3. Adicione uma descrição e um ícone para facilitar a identificação.
  4. Adicione cabeçalhos HTTP personalizados ou dados do cliente OAuth se o servidor exigir autenticação.
3

Crie a conexão

Clique em Criar conexão, volte à lista de Plugins e confirme que a nova conexão MCP está ativa.

  1. Clique em Criar conexão.
  2. Volte à lista de conectores MCP.
  3. Confirme que a conexão de Bauplan MCP Server aparece como ativa.
  4. Atualize a lista de plugins se a conexão não aparecer imediatamente.
4

Troque de modelo sem reconectar

Inicie um chat com seu modelo preferido, ative as ferramentas de Bauplan MCP Server em Plugins e mude para outro modelo sempre que necessário. A conexão MCP continua disponível no espaço de trabalho do TypingMind.

  1. Inicie um novo chat no TypingMind.
  2. Selecione o modelo de IA que deseja usar.
  3. Ative as ferramentas de Bauplan MCP Server em Plugins.
  4. Peça ao modelo para usar a ferramenta quando necessário.
  5. Mude para outro modelo de IA e reutilize a mesma conexão MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar Bauplan MCP Server para me ajudar nesta tarefa?
Bauplan MCP Server
Claro. Já li.
Veja o que encontrei usando Bauplan MCP Server.

Perguntas frequentes

Para que serve o servidor MCP Bauplan MCP Server?

Bauplan MCP Server é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP Bauplan MCP Server com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar Bauplan MCP Server com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP Bauplan MCP Server com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com Bauplan MCP Server conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP Bauplan MCP Server ao TypingMind?

É possível conectar Bauplan MCP Server ao TypingMind com o conector MCP local ou adicionando a URL de um servidor MCP remoto. Use o conector local quando o servidor precisar acessar arquivos, apps ou recursos privados no seu dispositivo, e use uma URL de servidor quando o servidor MCP estiver hospedado remotamente.

Quais ferramentas o MCP Bauplan MCP Server oferece no TypingMind?

Bauplan MCP Server disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP Bauplan MCP Server?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se Bauplan MCP Server exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇