# Bazel

> Use this tool when you need to interact with the Bazel build system from an AI environment, to build targets, query dependencies, or run tests, and require a secure and standardized protocol to do so. It solves problems of misconfigured shells and limited access to Bazel functionality, providing a robust interface for AI agents to work with Bazel workspaces. The tool accepts various inputs, including CLI arguments and configuration files, and outputs build results, dependency information, and test outcomes.

Canonical page: https://skillsregistry.net/skills/nacgarg-bazel  
JSON: https://api.skillsregistry.net/v1/skills/nacgarg-bazel

## Description

This MCP server provides a bridge between AI agents and the Bazel build system, enabling interaction with Bazel workspaces through a standardized protocol. It implements six tools for building targets, querying dependencies, running tests, listing available targets, fetching external dependencies, and changing workspace paths at runtime. The server includes robust security features to prevent command injection, supports multiple configuration methods (CLI arguments, environment variables, and config files), and is designed to work seamlessly with Cursor and Claude Desktop, making it particularly useful when AI environments have misconfigured shells that prevent direct Bazel usage.

## Trust

- **Trust score (0–1):** 0.96
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-09-19

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/nacgarg-bazel)
- **Repository:** <https://github.com/nacgarg/bazel-mcp-server>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "nacgarg-bazel"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/nacgarg-bazel` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/nacgarg-bazel/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
