MCP Servers / development / Bazel MCP Server

Bazel MCP Server

JSON →
none9development

Exposes the Bazel build system to AI agents, enabling them to build, query, test, and manage dependencies.

Install
How to run this server
[ { "cmd": "npx -y github:nacgarg/bazel-mcp-server", "imports": [] } ]
server path: bazel-mcp-server
Tools
What this server exposes
bazel_build_target
Build specified Bazel targets
bazel_query_target
Query the dependency graph for targets matching a pattern
bazel_test_target
Run tests for specified targets
bazel_list_targets
List all available targets in the workspace (requires path parameter, use "//" for all targets)
bazel_fetch_dependencies
Fetch external dependencies
bazel_set_workspace_path
Change the Bazel workspace path at runtime
Configuration
Environment & auth
authnone
Resources