MCP.so
Sign In

Bazel MCP Server

@aaomidi

Basic information

Category

Developer Tools

License

GPL-3.0

Transports

stdio

Author

aaomidi

About Bazel MCP Server

An MCP server providing common Bazel actions like build, test, and dependency analysis.

Bazel MCP Server config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Bazel MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Bazel MCP Server?

Bazel MCP Server is 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 Claude Desktop, allowing AI assistants to build, test, and query dependencies of Bazel targets.

How to use Bazel MCP Server?

Install the server using go install github.com/aaomidi/mcp-bazel@latest, then configure it in your Claude Desktop settings file (claude_desktop_config.json) by pointing the command field to the installed mcp-bazel binary. After restarting Claude Desktop, the Bazel tools become available.

Key features of Bazel MCP Server

  • Build a specified Bazel target.
  • Find dependencies of a given Bazel target with optional depth.
  • Find reverse dependencies (rdeps) of a target or file path.
  • List direct source files associated with a Bazel target.
  • Run tests for a specified Bazel target.

Use cases of Bazel MCP Server

  • An AI assistant building a Bazel target on demand.
  • Exploring the dependency graph of a Bazel project.
  • Identifying which targets depend on a given file or target.
  • Quickly retrieving source files for a target during code review.
  • Running tests for a specific target without leaving the chat interface.

Frequently asked questions

1

What tools does Bazel MCP Server provide?

It provides five tools: `build`, `deps`, `rdeps`, `sources`, and `test`. Each corresponds to a common Bazel operation.

2

How do I install Bazel MCP Server?

Run `go install github.com/aaomidi/mcp-bazel@latest`. This requires a working Go environment with `GOPATH` and `GOBIN` set up. The binary is placed in `$GOPATH/bin` or `$HOME/go/bin`.

3

How do I configure Bazel MCP Server with Claude Desktop?

Add an entry to your `claude_desktop_config.json` under `mcpServers` with the key `"mcp-bazel"` and a `command` pointing to the full path of the `mcp-bazel` binary.

4

Is Bazel MCP Server stable?

No, it is under active development. Features and interfaces may change.

5

What runtime does Bazel MCP Server require?

It requires Go to be installed for the `go install` step. The server itself runs as a standalone binary.

Comments

More Developer Tools MCP servers