Skip to content

[FAQ] How do I add the dlt MCP server in VS Code? #196

@CarlosGTrejo

Description

@CarlosGTrejo

Course

data-engineering-zoomcamp

Question

How do I add the dlt MCP server in VS Code?

Answer

To add the dlt MCP server in VS Code you can use the command "MCP: Add Server...":

  1. Open the command palette
    • Windows: Ctrl + Shift + P
    • Mac: Cmd + Shift + P
  2. Type "MCP: add Server..."
  3. Select "Command (stdio)"
  4. Type uv run --with dlt[duckdb] --with dlt-mcp[search] python -m dlt_mcp and press Enter.
  5. Set the id to dlt and press Enter
  6. Set the configuration target:
    • Remote if you are using GitHub Codespaces
    • Workspace otherwise

To verity that the MCP was added correctly use the command "MCP: List Servers"

  1. Open the command palette
    • Windows: Ctrl + Shift + P
    • Mac: Cmd + Shift + P
  2. Type "MCP: List Servers"
  3. You should see "dlt Running" (like in the attached screenshot)
    Image
    • If it is stopped, you can either:
      • Start it by selecting it and choosing "Start Server"
      • Prompt Copilot to use the mcp server (e.g. "list the dlt pipelines")

Lastly, make sure that when you initialize your dlt project (when you run dlt init dlthub:taxi_pipeline duckdb) you choose copilot as your agent.

Checklist

  • I have searched existing FAQs and this question is not already answered
  • The answer provides accurate, helpful information
  • I have included any relevant code examples or links

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions