The official Model Context Protocol (MCP) server for coding agents, autonomous workflows, and tool orchestration.
It exposes 260+ capabilities collapsed into high-efficiency action-routed tools over stdio or HTTP/SSE (hanzo mcp -t sse), plus native integration with the Kai Agent Governance & Decision Engine.
One install, any OS (Windows included):
npm i -g hanzo # or, on macOS/Linux: curl -fsSL https://hanzo.sh | sh
hanzo auth login # sign innpm i -g hanzo installs a small launcher. Each native Rust binary is downloaded on
first use and its SHA-256 checked:
| Command | What it runs |
|---|---|
hanzo mcp |
this MCP server (native Rust hanzo-mcp) over stdio; hanzo mcp -t sse serves HTTP/SSE |
hanzo dev |
the Hanzo Dev agent, with this server attached |
hanzo engine serve <model> |
local inference (Hanzo Engine) |
hanzo |
a coding session |
The native server takes no serve subcommand (hanzo mcp serve is tolerated).
Nothing needs to be installed first: npx -y hanzo mcp fetches the launcher and the server.
claude mcp add --scope user hanzo -- npx -y hanzo mcp
claude mcp listcodex mcp add hanzo -- npx -y hanzo mcpHanzo Dev (dev.chat) attaches this server by default:
hanzo devAdd to your mcpServers configuration (~/.cursor/mcp.json or project .mcp.json):
{
"mcpServers": {
"hanzo": {
"command": "npx",
"args": ["-y", "hanzo", "mcp"]
}
}
}Once you have run hanzo auth login, the server uses that sign-in; set HANZO_API_KEY
in an env block only to override it.
For remote or multi-agent deployments:
hanzo mcp -t sse --port 3333Every tool schema the server lists is sent to the model on each turn. Serve only the ones you use:
claude mcp add --scope user hanzo -- npx -y hanzo mcp --tools fs,code,execRun hanzo mcp --help for every option (--project-dir, --transport, --port, --tools).
Tool names and action schemas are the same in every runtime; LLM.md has the per-tool parity table:
| Group | Tools | Description |
|---|---|---|
| core | fs, exec, code, git, fetch, workspace, ui |
File read/write, shell execution, AST code edits, git operations, HTTP calls, UI components. |
| optional | think, memory, hanzo, plan, tasks, mode, gimp |
CoT scratchpads, semantic memory, Hanzo Cloud resource dispatch, task coordination, canvas. |
| code intelligence | code_search, code_context, code_ask, code_index |
Dense vector code search, symbol index lookup, context graph resolution. |
| tracker | tracker_boards, tracker_issues, tracker_create, tracker_update |
Visible engineering work items and live session status tracking on hanzo.app. |
| coding | coding (start, progress, changes, artifacts, tree, blob, steer, merge, stop) |
Autonomous coding runs: a repo and a task in, a pushed branch out; a pull request when the work is ready (Rust runtime). |
| kai (governance) | kai_decide, kai_choice, kai_score, kai_noul, kai_tool_select, kai_next_action, kai_command_guard, kai_injection_screen, kai_extract, kai_log_triage, kai_recover, kai_agent_step |
Typed policy evaluation, behavioral consistency benchmarking, command guards, failure recovery. The native server carries kai_decide; the rest are in the TypeScript server (below). |
The unified hanzo tool gives agents access to all 2,400+ endpoints across the Hanzo Cloud platform:
resource: Names the subsystem (e.g.,ai,studio,models,graph,iam,kms,billing,chain,network).action: Names the operation. Calling with no action lists available operations.args: Arguments passed to the operation.
{
"resource": "ai",
"action": "aiFrameGenerate",
"args": {
"model": "iro",
"prompt": "A white canvas with a soft dot-grid, one dark rounded terminal showing a small diff, thin black contour lines flowing out of it, monochrome",
"headline": "Describe the change.",
"accent": "Dev ships it.",
"layout": "split-left",
"theme": "light"
}
}Subsequent edits (aiFrameEdit on /v1/frame/edits) redesign text, swap themes (light, glass, dark), reposition panels (split-left, split-right, center-stack), or patch composable layers in ~15ms with zero diffusion cost when background_b64 is supplied, or re-run background diffusion (qwen-image-edit, iro) when edit_background: true.
Kai tools ask Hanzo's decision model typed questions (POST /v1/decisions on https://api.hanzo.ai or a local instance via LOCAL_KAI_URL=http://127.0.0.1:8080) and return calibrated probabilities and audit rationales:
Only kai_decide is in the native server; the others below are served by the TypeScript server.
kai_choice: Multi-class categorical decision matching policy criteria.kai_score: Ordinal scoring and confidence assessment.kai_noul: Evaluates the probability that a behavioral statement holds true.kai_command_guard: Pre-execution command check (ALLOW, ASK, or DENY).kai_injection_screen: Prompt injection and jailbreak barrier.kai_decide: Batch evaluation of up to 100 questions in a single call.
See the cookbook for 15+ runnable recipes.
The TypeScript runtime is still published as @hanzo/mcp
(Node 18+) for anyone who wants it specifically, e.g. for the kai_* governance tools the
cookbook uses: npx -y @hanzo/mcp serve. Its own flags (--core-only,
--disable-tools <names>, --enable-ui, --enable-desktop, --full-surface) are listed by
npx -y @hanzo/mcp serve --help.
- Python:
hanzo-mcpon PyPI, built fromhanzoai/python-sdk. - Rust: the native server is
rust/in this repo (hanzo mcp); a native MCP client crate lives underhanzo-rs/sdk. - Go: High-throughput MCP provider under
hanzo-go/sdk.
pnpm install
pnpm build
pnpm smoke # runs smoke integration over stdio: initialize, tools/call, resourcesHanzo AI is led by CEO Antje Worring and CTO Zach Kelling.
- Antje Worring: CEO (LinkedIn · GitHub: zooqueen) — corporate leadership, operations, ecosystem partnerships, and strategic execution.
- Zach Kelling: CTO (LinkedIn · GitHub: zeekay) — foundational architecture, engineering, systems, and open-source models.
- Corporate Address: 1 Ferry Building, San Francisco, CA 94105
- Inquiries: dev@hanzo.ai · support@hanzo.ai
MIT — see LICENSE.
Run the tunnel client as the same OS user as the Hanzo browser extension. Set its stdio command to the native MCP binary with the browser ID, tab ID, and exact URL you want to share:
hanzo-mcp share --browser browser/device/chrome-1234 --tab tab-42 --url 'https://example.com/'Use the local browser tool's browsers and tabs actions to find those IDs.
The tunnel exposes one tool, read_shared_page. It can read the chosen Chrome
tab while it displays the approved URL. Stop the tunnel to end access. Anyone
authorized to use the tunnel can read the shared page.
In ChatGPT, select the tunnel when adding a custom MCP server. Follow OpenAI's Secure MCP Tunnel setup to create and restrict access to the tunnel.