bazel-mcp-server
3
The Bazel MCP Server is a local server that interfaces the Bazel build system with MCP-enabled AI agents, offering various functionalities like building, testing, and querying Bazel targets. It supports configuration via several methods and is compatible with tools like Cursor and Claude Desktop.
Bazel MCP Server
A local MCP server that exposes functionality of the Bazel build system to MCP-enabled AI agents.
Tools
- Build specified Bazel targets
- Query dependency graph for targets matching a pattern
- Run tests for specified targets
- List all available targets
- Fetch external dependencies
- Change the Bazel workspace path at runtime
Usage
Installation
Compatible with Cursor and Claude Desktop applications.
- Requires
npx
and can be run directly from GitHub - Can specify Bazel binary and workspace paths through multiple configuration methods.
Configuration
Supports configuration via command line arguments, environment variables, and configuration files.