Skip to main content

hanzo-mcp

PyPI Python Version

A Model Context Protocol server. It gives an MCP client — Claude Desktop, an editor, an agent — filesystem, shell, search and agent tools over one connection.

Install

pip install hanzo-mcp

Run

hanzo-mcp                                   # stdio, the transport clients speak
hanzo-mcp --transport sse --host 127.0.0.1 --port 8888
hanzo-mcp --install                         # write the config into Claude Desktop

Point it at what it may touch, and nothing else:

hanzo-mcp --allow-path ~/work/project --project-dir ~/work/project

--allow-path may be repeated. Every filesystem tool refuses a path outside the set, and .. and ~ are refused before resolution.

Flags

flag what it does
--transport {stdio,sse} how the client connects; stdio by default
--allow-path PATH grant access to a path; repeatable
--project-dir DIR the project root, also granted
--enable-agent let the server delegate to sub-agents
--agent-model, --agent-api-key, --agent-base-url which model the agent tool calls
--disable-write-tools read-only: no write, edit or shell mutation
--disable-search-tools drop the search family
--command-timeout, --search-timeout, --find-timeout, --ast-timeout per-family limits, in seconds
--shell, --force-shell, --all-shells which shell the shell tools use
--log-level LEVEL server logging

hanzo-mcp --help prints the whole set; --version prints the build.

Tools

The server registers what the installed hanzo-tools-* packages provide — each one publishes a TOOLS list under the hanzo.tools entry point, and the server loads every package it finds. hanzo-tools-fs, hanzo-tools-shell and hanzo-tools-core come with this package; install another and its tools appear on the next start.

pip install hanzo-tools-git hanzo-tools-sql

In a client

Claude Desktop, claude_desktop_config.json — or hanzo-mcp --install, which writes it for you:

{
  "mcpServers": {
    "hanzo": {
      "command": "hanzo-mcp",
      "args": ["--allow-path", "/Users/you/work"]
    }
  }
}

Embedding it

from hanzo_mcp.server import HanzoMCPServer

server = HanzoMCPServer(name="hanzo", allowed_paths=["/Users/you/work"])
server.run(transport="stdio")

run blocks, and takes the transport. The rest of what the CLI accepts — allowed_paths, project_dir, enable_agent_tool, disable_write_tools, disable_search_tools, the timeouts — are constructor keywords.

Development

uv sync
uv run pytest tests/ -v

License

Apache-2.0.

Metadata

Release files for hanzo-mcp 0.15.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hanzo-mcp 0.15.21
File Size Uploaded Provenance Actions
hanzo_mcp-0.15.21.tar.gz 280.7 kB Without provenance Details for hanzo_mcp-0.15.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hanzo-mcp 0.15.21
File Interpreter ABI Platform Actions
hanzo_mcp-0.15.21-py3-none-any.whl Python 3 none any Details for hanzo_mcp-0.15.21-py3-none-any.whl

Total release size: 494.7 kB

Release files / hanzo_mcp-0.15.21.tar.gz

Download URL hanzo_mcp-0.15.21.tar.gz
Size 280.7 kB
Tags Source
SHA-256 checksum
How to use checksums
64394ae6af6b70b32b7d896771ab8d5fc962f296ddb04bd10ebe380f9781b473
BLAKE2b-256 checksum
How to use checksums
5654298b50e06f9bd9cb92e88518a91bca74fa6c3be1f37cc0c1cb4b84fa9d70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release files / hanzo_mcp-0.15.21-py3-none-any.whl

Download URL hanzo_mcp-0.15.21-py3-none-any.whl
Size 214.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d8e50c6dbe7bf66eb0b7b4b0f23401d2cea40a7c3c1ef9b0c59dde567aba673
BLAKE2b-256 checksum
How to use checksums
87b5c9d6da6ecfcb975507b2dbdbfe4234c8c9c60fdd67fbee124e6fff39761d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Security for hanzo-mcp 0.15.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.15.21 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page