nacgarg_bazel-mcp-server
If you are the rightful owner of nacgarg_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 integration of the Bazel build system with MCP-enabled AI agents. It is particularly useful in environments where there is no existing command-line tool or where the shell environment is misconfigured, preventing the use of Bazel. The server provides a suite of tools that allow for building, querying, testing, and managing Bazel targets and dependencies. It supports dynamic workspace path changes and additional argument passing to customize Bazel command executions. The server can be configured via command line arguments, environment variables, or a configuration file, offering flexibility in setup. It is compatible with various platforms, including Cursor and Claude Desktop, and can be launched standalone or directly from GitHub.
Features
- Build specified Bazel targets with `bazel_build_target`.
- Query dependency graph for targets with `bazel_query_target`.
- Run tests for specified targets using `bazel_test_target`.
- List all available targets in the workspace with `bazel_list_targets`.
- Fetch external dependencies using `bazel_fetch_dependencies`.