Submit

Bazel MCP Server

@MCP-Mirror

Overview

what is Bazel MCP Server?

Bazel MCP Server is a local server that exposes the functionality of the Bazel build system to MCP-enabled AI agents, facilitating builds in environments lacking a command-line tool or with misconfigured shells.

how to use Bazel MCP Server?

To use the Bazel MCP Server, you can run it directly from GitHub or install it locally. Configuration is done through command line arguments, environment variables, or a configuration file.

key features of Bazel MCP Server?

  • Build specified Bazel targets with bazel_build_target
  • Query dependency graphs with bazel_query_target
  • Run tests for specified targets with bazel_test_target
  • List all available targets with bazel_list_targets
  • Fetch external dependencies with bazel_fetch_dependencies
  • Change workspace path at runtime with bazel_set_workspace_path

use cases of Bazel MCP Server?

  1. Integrating Bazel builds into AI workflows.
  2. Running builds in environments without direct access to Bazel.
  3. Facilitating automated testing and dependency management for AI applications.

FAQ from Bazel MCP Server?

  • Can I run Bazel MCP Server without installing it?

Yes! You can run it directly using npx from GitHub.

  • How do I specify the Bazel binary path?

Use the --bazel_path command line argument or set the MCP_BAZEL_PATH environment variable.

  • Is there a way to enable verbose logging?

Yes, set the DEBUG=true environment variable to enable verbose logging.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.