Homebrew MCP Server — manage packages, casks, taps, and services through Claude on macOS. 19 tools for full Homebrew control.
Project description
homebrew-mcp
Homebrew MCP Server — manage packages, casks, taps, and services through Claude on macOS.
macOS only — requires Homebrew to be installed.
19 tools for searching, installing, upgrading, and managing Homebrew packages, casks, taps, and background services — all through natural language in Claude.
Tools
Search & Info (5)
| Tool | Description |
|---|---|
search |
Search for formulae or casks |
info |
Get detailed info about a package |
list_installed |
List all installed formulae or casks |
list_outdated |
List packages with newer versions available |
deps |
Show the dependency tree for a package |
Package Management (5)
| Tool | Description |
|---|---|
install |
Install a formula or cask |
uninstall |
Uninstall a formula or cask |
upgrade |
Upgrade a specific package |
upgrade_all |
Upgrade all installed packages |
cleanup |
Remove old versions and stale downloads |
Taps (3)
| Tool | Description |
|---|---|
tap |
Add a third-party repository (format: user/repo) |
untap |
Remove a third-party repository |
list_taps |
List all tapped repositories |
Services (4)
| Tool | Description |
|---|---|
list_services |
List all managed background services and their status |
start_service |
Start a background service |
stop_service |
Stop a background service |
restart_service |
Restart a background service |
System (2)
| Tool | Description |
|---|---|
doctor |
Run Homebrew diagnostics |
update |
Update Homebrew and formula definitions |
Setup
Requirements
Install Homebrew (if needed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install homebrew-mcp
pip install homebrew-mcp
# or with uv:
uv add homebrew-mcp
Add to Claude Code
claude mcp add homebrew -- uvx homebrew-mcp
Or manually in your Claude config (~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"homebrew": {
"command": "uvx",
"args": ["homebrew-mcp"]
}
}
}
Usage Examples
Install Docker Desktop: install("docker", cask=True)
Install PostgreSQL: install("postgresql")
Start PostgreSQL service: start_service("postgresql")
List running services: list_services()
Check for updates: list_outdated()
Upgrade everything: upgrade_all()
Add a tap: tap("homebrew/cask-fonts")
Run diagnostics: doctor()
Troubleshooting
"brew: command not found": Install Homebrew first: brew.sh
Permission errors during install: Some casks require admin password. Claude will show the brew output including any prompts.
Service won't start:
Check doctor() for system issues. Ensure the formula is installed first.
Requirements
- macOS
- Homebrew installed
- Python 3.10+
License
MIT — Hitesh Gupta
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file homebrew_mcp-1.0.1.tar.gz.
File metadata
- Download URL: homebrew_mcp-1.0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61c03c3e4ae4eac8170a69bf2f96875279b3fb363f2042e2ce74e8aed492ab5e
|
|
| MD5 |
7873363b069fb46b426bf2cfe3ba1d64
|
|
| BLAKE2b-256 |
97eb75bff845cb74c371fcc7abd7ce175f4e0a2caa65e416d4742b78ce2fc73e
|
File details
Details for the file homebrew_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: homebrew_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb06b911015b4f199d45d21f98c42256b556eed02f21aea0f9446efdb87056bf
|
|
| MD5 |
c537ca89bad69ba17f56ff44aed22025
|
|
| BLAKE2b-256 |
208fad59f7be3338772885b71e11ef52fda35a6f6207984b2cfe65c7369a7693
|