Does Bazel MCP Server require a Bazel binary on the system?
Yes, a Bazel binary must be available. It is usually auto-detected, but the path can be explicitly set via `--bazel_path` or the `MCP_BAZEL_PATH` environment variable.
@MCP-Mirror
Basic information
Mirror of
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"nacgarg_bazel-mcp-server": {
"command": "npx",
"args": [
"-y",
"github:nacgarg/bazel-mcp-server"
]
}
}
}Build specified Bazel targets
Query the dependency graph for targets matching a pattern
Run tests for specified targets
List all available targets in the workspace (requires path parameter, use "//" for all targets)
Fetch external dependencies
Change the Bazel workspace path at runtime
Bazel MCP Server is a local server that exposes functionality of the Bazel build system to MCP-enabled AI agents. It is designed for environments where the command-line tool is absent or the shell has a misconfigured environment preventing Bazel use.
Install and run via npx -y github:nacgarg/bazel-mcp-server or clone the repository and build from source. Configuration can be provided through CLI arguments, environment variables, or a configuration file using keys like --bazel_path, --workspace_path, --workspace_config, and --log_path. The server is invoked automatically by MCP clients such as Cursor (via .cursor/mcp.json) or Claude Desktop.
bazel_build_targetYes, a Bazel binary must be available. It is usually auto-detected, but the path can be explicitly set via `--bazel_path` or the `MCP_BAZEL_PATH` environment variable.
Yes, the `bazel_set_workspace_path` tool allows changing the workspace path at runtime.
The server works with any MCP-compatible client, including Cursor and Claude Desktop. Note that with Cursor Remote SSH sessions, the server runs locally and may not function as expected.
Configuration is resolved in this order: CLI arguments, environment variables, then a configuration file. Key settings include `--bazel_path`, `--workspace_path`, `--workspace_config`, and `--log_path`.
Yes, each tool (except `bazel_set_workspace_path`) supports an `additionalArgs` parameter for passing flags like `--verbose_failures` or `--test_output=all`.

A free remote MCP server for The Living Bread. Bible passages read word for word from a stored public domain text with an evidence label, keyword search and cross references, real churches, gatherings and prayer groups w

Request dedicated senior developers to work on your project, write job descriptions, and prep technical interviews — all without leaving your Claude chat. Just describe what you need, and Lemon.io MCP does the rest. 1–3

Handl speaks the Model Context Protocol. Your whole billing operation — projects, invoices, clients, reports, approvals — as tools any AI assistant can call, inside your autonomy rules.

A good sequence diagram can solve almost any communication problem in engineering. Volley lets your agent write them as plain text, with the real request and response payloads on every arrow. It checks its own syntax wi

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep
Comments