Bazel MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUGNoEnable verbose logging to the console.
MCP_LOG_PATHNoThe path to write server logs to.
MCP_BAZEL_PATHNoThe path to the Bazel binary to use.
MCP_WORKSPACE_PATHNoThe path to the Bazel workspace to use.
MCP_WORKSPACE_CONFIGNoThe configuration of the workspace to use. By default, this uses the .bazelrc file in the workspace root.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools