bazel-mcp-server
If you are the rightful owner of bazel-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A local MCP server that exposes functionality of the Bazel build system to MCP-enabled AI agents.
The Bazel MCP Server is designed to facilitate the use of the Bazel build system within MCP environments, especially where command-line tools are unavailable or misconfigured. It provides a suite of tools that allow AI agents to interact with Bazel, enabling them to build, query, test, and manage dependencies within a Bazel workspace. The server supports dynamic configuration through command-line arguments, environment variables, and configuration files, ensuring flexibility and ease of use. It is particularly useful in environments where the Bazel binary is not readily accessible or where the workspace path needs to be dynamically set. The server can be used with various platforms, including Cursor and Claude Desktop, and can be launched standalone for direct use.
Features
- Build specified Bazel targets with `bazel_build_target`.
- Query dependency graphs using `bazel_query_target`.
- Run tests on specified targets with `bazel_test_target`.
- List all available targets in a workspace using `bazel_list_targets`.
- Fetch external dependencies with `bazel_fetch_dependencies`.