MCP server for Bazel: query targets, analyze deps, build, test, and read BUILD files
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"bazel-mcp-server","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Bazel MCP A [Model Context Protocol](https://modelcontextprotocol.io/) server that exposes Bazel build system capabilities to AI assistants. Repo: [github.com/saeid-rez/bazel-mcp](https://github.com/saeid-rez/bazel-mcp) ## Tools | Tool | Description | |------|-------------| | `bazel_query` | Run arbitrary `bazel query` expressions | | `list_targets` | List targets in a package or subtree | | `get_deps` | Direct or transitive dependencies of a target | | `get_rdeps` | Reverse dependencies within a scope | | `show_target_info` | Rule definition via `query --output=build` | | `find_affected_targets` | Find targets affected by changed files | | `bazel_build` | Run `bazel build` with structured failure diagnostics | | `bazel_test` | Run `bazel test` with structured target and failed-case results | | `explain_build_file` | Read BUILD file contents for analysis | ## Usage Requires [uv](https://docs.astral.sh/uv/). Configure the server with a Bazel workspace path if your MCP client does not start it from that workspace. ### Antigravity (agy) Add the following to `~/.gemini/config/mcp_config.json`: ```json { "mcpServers": { "bazel": { "command": "uvx", "args": [ "--from", "git+https://github.com/saeid-rez/bazel-mcp", "bazel-mcp-server" ] } } } ``` Bazel commands run in your active workspace by default. If Antigravity does not start the server from your Bazel workspace, pass `--workspace-root` explicitly: ```json { "mcpServers": { "bazel": { "command": "uvx", "args": [ "--from", "git+https://github.com/saeid-rez/bazel-mcp", "bazel-mcp-server", "--workspace-root", "/path/to/your/bazel/workspace" ] } } } ``` ### OpenCode Add the following to `opencode.json` or `opencode.jsonc`. Replace `/path/to/your/bazel/workspace` with the absolute path to your Bazel workspace. ```json { "$schema": "https://opencode.ai/config.json", "mcp": { "ba…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.