Bazel MCP Server logo

Bazel MCP Server

by aaomidi

The Bazel MCP Server provides a Model Context Protocol (MCP) server that exposes tools for interacting with Bazel projects. It is designed to be used as a tool provider for applications like the Claude Desktop app.

View on GitHub

Last updated: N/A

What is Bazel MCP Server?

This is a Model Context Protocol (MCP) server that provides various tools for interacting with Bazel projects, allowing applications like Claude Desktop to leverage Bazel functionalities.

How to use Bazel MCP Server?

  1. Install the server using go install github.com/aaomidi/mcp-bazel@latest. 2. Configure Claude Desktop by adding the server configuration to the claude_desktop_config.json file, specifying the path to the installed mcp-bazel binary. 3. Restart Claude Desktop to activate the Bazel tools.

Key features of Bazel MCP Server

  • Build Bazel targets

  • Find target dependencies

  • Find reverse dependencies

  • Find source files

  • Run tests for Bazel targets

Use cases of Bazel MCP Server

  • Building specific Bazel targets from Claude Desktop

  • Analyzing dependencies of Bazel targets

  • Identifying reverse dependencies for impact analysis

  • Locating source files associated with Bazel targets

  • Running tests directly from Claude Desktop

FAQ from Bazel MCP Server

What is MCP?

Model Context Protocol

Where is the binary installed?

Typically in $GOPATH/bin or $HOME/go/bin

How do I configure Claude Desktop?

Edit the claude_desktop_config.json file.

What if the tools are not available after restart?

Double-check the path to the binary in the configuration file.

Is this project production ready?

No, it is under active development and features may change.