Skip to content

Enhancement: add MCP (Model Context Protocol) server entry point #141

@stumelius

Description

@stumelius

Overview

The Model Context Protocol (MCP) is becoming the standard way for LLMs to call tools. Adding an MCP server entry point would let Claude Desktop, Cursor, and other MCP-compatible clients use dbt Cloud commands directly without any custom integration code.

Background

Proposed approach

Add an optional mcp extra and a dbt-cloud-mcp entry point:

pip install dbt-cloud-cli[mcp]

The server would:

  1. Expose tools/list → delegates to get_anthropic_tools()
  2. Handle tools/call → delegates to execute_tool_call(tool_name, tool_input)
  3. Read auth from env vars (DBT_CLOUD_API_TOKEN, DBT_CLOUD_HOST)
  4. Respect DBT_CLOUD_READONLY to expose a read-only subset

Dependencies

  • mcp Python SDK (optional dependency)

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions