mcp-bazel
An MCP server providing common Bazel actions like build, test, and dependency analysis.
Documentation
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`:
# Ensure your Go environment is set up (GOPATH, GOBIN, etc.)
go install github.com/aaomidi/mcp-bazel@latestThis 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.
2. Configuration
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"
}
}
}3. Restart Claude Desktop
After saving the configuration file, restart the Claude Desktop app. The Bazel tools should now be available.
Frequently asked questions
What is mcp-bazel?
mcp-bazel is An MCP server providing common Bazel actions like build, test, and dependency analysis.
How do I install mcp-bazel?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-bazel open source?
Yes โ it is hosted on GitHub at https://github.com/aaomidi/mcp-bazel and has 8 stars.
Related MCP tools
A command-line interface for interacting with MCP (Model Context Protocol) servers using both stdio and HTTP transport. Go-based implementation.
The most powerful MCP Slack Server with no permission requirements, Apps support, multiple transports Stdio and SSE, DMs, Group DMs and smart history fetch l...
Self-hosted MCP Gateway and Registry for AI agents Go-based implementation. Trusted by 600+ developers. Trusted by 600+ developers.
Convert Any OpenAPI V3 API to MCP Server Go-based implementation. Trusted by 500+ developers. Trusted by 500+ developers.
Flux Operator is a Kubernetes controller for managing the lifecycle of Flux CD for the Model Context Protocol. Enhance AI assistants with powerful integrations.
MCP server connecting to Kubernetes Go-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP