Behavior Trees — Claude Code MCP server: features and setup
This MCP server for Claude Code checks behavior trees, converts formats, and creates links to a visual editor. The agent can call it while working with behavior3 JSON or BehaviorTree.CPP XML.
MIT ★ 6 updated 2026-11-16
claude mcp add --transport http behaviortrees https://www.behaviortrees.com/mcpWhat Behavior Trees does
The server checks tree structure for cycles, nodes with multiple parents, and other errors. It converts between behavior3 JSON and BehaviorTree.CPP XML. The agent can also create an editor link or fetch node types, examples, and guides.
Connect to the remote server at https://www.behaviortrees.com/mcp, or run it locally with npx. Tree data stays inside the generated link rather than being uploaded. Local use requires npx.
What it helps with
- find cycles and structural errors in a behavior tree
- convert behavior3 JSON to BehaviorTree.CPP XML
- create an editor link for a tree
- retrieve node types and sample trees
Example prompts for the agent
- Check
tree.jsonfor structural errors and report the findings. - Convert
tree.jsonto BehaviorTree.CPP XML. - Create a visual editor link for this behavior tree.
How to install Behavior Trees
1Platform CLI: remote server
claude mcp add --transport http behaviortrees https://www.behaviortrees.com/mcp2Platform CLI
claude mcp add cli -- npx -y behaviortrees1Platform CLI: remote server
codex mcp add cli --url https://www.behaviortrees.com/mcp2Platform CLI
codex mcp add cli -- npx -y behaviortreesConfig file
{
"mcpServers": {
"cli": {
"url": "https://www.behaviortrees.com/mcp"
}
}
}{
"mcpServers": {
"cli": {
"command": "npx",
"args": [
"-y",
"behaviortrees"
]
}
}
}Config file
{
"servers": {
"cli": {
"type": "http",
"url": "https://www.behaviortrees.com/mcp"
}
}
}{
"servers": {
"cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"behaviortrees"
]
}
}
}1Platform CLI: remote server
gemini mcp add -t http cli https://www.behaviortrees.com/mcp2Platform CLI
gemini mcp add cli npx -y behaviortreesStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Behavior Trees
How do I install Behavior Trees in Claude Code?
To connect the remote server, run claude mcp add --transport http behaviortrees https://www.behaviortrees.com/mcp.
What does Behavior Trees do?
It validates behavior trees, converts between supported formats, and creates links that open trees in a visual editor.
What is required to use Behavior Trees?
Connect to the remote MCP server at https://www.behaviortrees.com/mcp, or run the local version with npx.