MCP server exposing Bazel build/run/test/query as tools
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","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 [](https://pypi.org/project/bazel-mcp/) [](https://pypi.org/project/bazel-mcp/) [](https://opensource.org/licenses/MIT) [](https://modelcontextprotocol.io/) **Integrate Bazel with AI coding assistants via the Model Context Protocol** bazel-mcp is a [Model Context Protocol](https://modelcontextprotocol.io/) server that exposes your Bazel workspace to AI assistants like Claude (in VS Code or Cursor). It enables AI assistants to understand and work with Bazel projects by providing direct access to build, test, run, and query capabilities. ## Why bazel-mcp? - **🤖 AI-Native Development**: Let AI assistants build, test, and run Bazel targets directly - **📦 Zero Configuration**: Automatically discovers all Bazel targets in your workspace - **🔄 Real-time Streaming**: See build and test output as it happens - **🎯 Smart Context**: AI understands your build graph and dependencies - **⚡ Fast Iteration**: No context switching between AI chat and terminal ## Installation ### From PyPI (Recommended) ```bash pip install bazel-mcp ``` ### From Source ```bash git clone https://github.com/sandeepnmenon/py_bazel_mcp cd py_bazel_mcp pip install -e . ``` ## Quick Start ### 1. Configure Your Editor #### VS Code (Claude Extension) Create `.vscode/mcp.json` in your workspace: ```json { "mcpServers": { "bazel-mcp": { "command": "bazel-mcp", "args": ["--repo", "${workspaceFolder}"] } } } ``` #### Cursor Add as a custom MCP server: 1. Settings → MCP Servers → Add Custom Server 2. Command: `bazel-mcp` 3. Args: `--repo /path/to/your/bazel/workspace` ### 2. Verify Setup Ask your AI assistant: > "Can you list all Bazel targets in this workspace?" The assistant should use the `bazel_list_targets`…
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.