Bazel
About
Integrates with Bazel build systems to enable target building, test running, dependency analysis, and source file identification without requiring command-line syntax knowledge.
Details
- Author
- aaomidi
- Repository
- aaomidi/mcp-bazel
- GitHub stars
- 4
- Downloads
- 274
- License
- GNU General Public License v3.0
- Categories
- Developer Tools, Design, Workplace, File Management, AI, Search, Project Management, API
- Tags
- #integration
Jump to
This server currently provides the following tools:
build: Builds a specified Bazel target.
deps: Finds the dependencies of a given Bazel target, with an optional depth parameter.
rdeps (Reverse Dependencies): Finds all Bazel targets that depend on a given target or file path, with an optional depth parameter.
sources: Finds the direct source files associated with a given Bazel target.
-
test: Runs tests for a specified Bazel target.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
BazelCommand (node, npx, python, etc.)/path/to/your/go/bin/mcp-bazelPlease refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
This server is designed to be used as a tool provider for applications like the Claude Desktop app.
Install the server using go install:
go install github.com/aaomidi/mcp-bazel@latest
This command compiles and installs the mcp-bazel binary. By default, it's placed in your $GOPATH/bin directory or $HOME/go/bin if GOPATH is not set. Make sure this location is in your system's PATH or note the full path to the binary for the next step.
Add the following configuration to your Claude Desktop settings file (claude_desktop_config.json). You can usually find this file via the app's settings menu ("Open Config Folder").
Modify the "command" path to point to the actual location where go install placed the mcp-bazel binary on your system.
{
"mcpServers": {
"mcp-bazel": {
"command": "/path/to/your/go/bin/mcp-bazel"
}
}
}
build
Builds a specified Bazel target.
deps
Finds the dependencies of a given Bazel target, with an optional depth parameter.
rdeps
Finds all Bazel targets that depend on a given target or file path, with an optional depth parameter.
sources
Finds the direct source files associated with a given Bazel target.
test
Runs tests for a specified Bazel target.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"bazel": {
"cwd": "",
"env": {},
"args": [],
"shell": false,
"command": "/path/to/your/go/bin/mcp-bazel"
}
}
}
Linux
{
"cwd": "",
"env": [],
"args": [],
"shell": false,
"command": "/path/to/your/go/bin/mcp-bazel"
}
Macos
{
"cwd": "",
"env": [],
"args": [],
"shell": false,
"command": "/path/to/your/go/bin/mcp-bazel"
}
Windows
{
"cwd": "",
"env": [],
"args": [],
"shell": false,
"command": "/path/to/your/go/bin/mcp-bazel"
}
Bazel MCP Server
This project provides a Model Context Protocol (MCP) server that exposes tools for interacting with Bazel projects.
Status: 🚧 Under Active Development 🚧
Features and interfaces may change.
Features
This server currently provides the following tools:
build: Builds a specified Bazel target.
deps: Finds the dependencies of a given Bazel target, with an optional depth parameter.
rdeps (Reverse Dependencies): Finds all Bazel targets that depend on a given target or file path, with an optional depth parameter.
sources: Finds the direct source files associated with a given Bazel target.
-
test: Runs tests for a specified Bazel target.
Usage with Claude Desktop
This server is designed to be used as a tool provider for applications like the Claude Desktop app.
1. Installation
Install the server using go install:
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





