Skip to content
MCP server

Warehouse Context

Governed table docs, lineage, freshness and PII-safe read-only SQL for warehouses

Runs locally

Warehouse Context is an MCP server for databases. It runs locally on your machine and is started by your AI client.

Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.5.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add warehouse-context-mcp -- uvx warehouse-context-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "warehouse-context-mcp": {
      "command": "uvx",
      "args": [
        "warehouse-context-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "warehouse-context-mcp": {
      "command": "uvx",
      "args": [
        "warehouse-context-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "warehouse-context-mcp": {
      "command": "uvx",
      "args": [
        "warehouse-context-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "warehouse-context-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "warehouse-context-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add warehouse-context-mcp -- uvx warehouse-context-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.warehouse-context-mcp]
command = "uvx"
args = ["warehouse-context-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "warehouse-context-mcp": {
      "command": "uvx",
      "args": [
        "warehouse-context-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "warehouse-context-mcp": {
          "command": "uvx",
          "args": [
            "warehouse-context-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user warehouse-context-mcp uvx -- warehouse-context-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "warehouse-context-mcp": {
          "command": "uvx",
          "args": [
            "warehouse-context-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "warehouse-context-mcp": {
          "command": "uvx",
          "args": [
            "warehouse-context-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "warehouse-context-mcp": {
          "command": "uvx",
          "args": [
            "warehouse-context-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "warehouse-context-mcp": {
          "command": "uvx",
          "args": [
            "warehouse-context-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "warehouse-context-mcp": {
          "command": "uvx",
          "args": [
            "warehouse-context-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "warehouse-context-mcp": {
          "command": "uvx",
          "args": [
            "warehouse-context-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "warehouse-context-mcp": {
          "command": "uvx",
          "args": [
            "warehouse-context-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Warehouse Context

Agents are good at SQL but poor at knowing which table to trust, and this server supplies that context. It reports what each table means, its owner, lineage upstream and downstream, whether it meets its freshness expectation, and which columns are personal data. DuckDB is the first backend, with Snowflake and Databricks added later, merging warehouse comments and tags with a curated YAML catalog.

The query tool treats every query as hostile. SQL is parsed with sqlglot and must be a single SELECT using only reviewed constructs, resolved against the real schema. PII columns are replaced with '***' inside the SQL, so values never leave the warehouse, and filtering or sorting on them is refused. Connections are read-only, and every query has row, time and byte limits.

A --demo flag serves a synthetic shipping warehouse for trying it out. The README says to also use native warehouse masking in production.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 6 tools changes data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

list_tablesName suggests: reads
Every table with its documented purpose and owner.
describe_tableName suggests: reads
Columns, types, descriptions, PII flags, grain and row count.
table_lineage
Upstream sources and downstream consumers.
table_freshness
Last update, age and whether it meets expectations.
sample_rows
A few example rows with PII masked.
run_queryName suggests: changes
One read-only SELECT, row-limited, with PII protected.

What it does

Table context
Purpose, owner, columns, PII flags, grain and row count.
Lineage
Upstream sources and downstream consumers, cycle-safe.
Freshness check
Reports last update and whether expectations are met.
PII masking in SQL
Personal columns are masked before the query is sent.
Allow-list query policy
Only reviewed SELECT constructs are accepted.
Three backends
DuckDB, Snowflake and Databricks.

Good for

  • Check whether a table is fresh before using it
  • Find the governed source for a metric
  • Sample rows without exposing personal data
  • Trace which tables feed a report

Warehouse Context FAQ

Can an agent write to the warehouse?

No; queries are single read-only SELECTs on read-only connections.

How do I try Warehouse Context?

Run uvx warehouse-context-mcp --demo.

Which backends work?

DuckDB, Snowflake and Databricks.

Does masking replace warehouse controls?

No; the README calls it defence in depth, so use native masking too.

How do I add Warehouse Context to Claude Code?

Run this command in your terminal: claude mcp add warehouse-context-mcp -- uvx warehouse-context-mcp

What are the best alternatives to Warehouse Context?

The closest alternatives to Warehouse Context are Warehouse MCP, Cosmos Semantic, Universal DB (read-only), Pipetable and Alephgrid.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers