Skip to main content

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.

PyPI version License: MIT Python

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

  • macOS with Homebrew installed
  • Python 3.10+
  • uv package manager

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

License

MIT — Hitesh Gupta

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

homebrew_mcp-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

homebrew_mcp-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file homebrew_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: homebrew_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 3.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

Hashes for homebrew_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e75c2c2cd93f2003b34c664ada79b46814dec7484bf33c554fbcb1be73644644
MD5 e55f97a9c42c2e2935cf590c6b49ba95
BLAKE2b-256 ee508647d723685e99f517f8d75635ff336315f686169af07582ffe762bb6312

See more details on using hashes here.

File details

Details for the file homebrew_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: homebrew_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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

Hashes for homebrew_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f3432dfe6374d1ae4892946e08738e22c51ff05f1fd06eea73694e6efc6128a
MD5 e0e9efabe5cb5c23f1e08a7c436ce1e4
BLAKE2b-256 bba4f1beb68f7e4d3de82ec5d59c2fe2f5d23960aa2f5a86edfb2e8b99cb7636

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page