Behavior Trees
Validate and convert behavior trees, then open them in a visual editor
- Pricing
- Open source
- Platforms
- Web, CLI, API
- Runs
- Locally or Remotely
- Version
- 0.2.0
- Listing updated
- 3 days ago
About Behavior Trees
Behavior Trees is an open-source MCP server for developer tools. It can run locally on your machine or as a hosted remote server.
Behavior trees for game AI and robotics are easy to get subtly wrong, and this server checks them before they reach an engine. Validation catches dangling children, nodes with two parents, cycles, decorators with more than one child, leaves with children and unknown node names, and works on behavior3 JSON and BehaviorTree.CPP XML.
Conversion runs between the two formats, with BehaviorTree.CPP v4 for ROS 2 Jazzy and Groot2 and v3 for ROS 2 Humble. The link tool packs a tree into a URL that opens it laid out in the browser editor; the README says the tree travels inside the link and nothing is uploaded.
It runs remotely or locally over stdio via npx, and a CLI offers the same commands. The code is AGPL-3.0-only. The site sells custom integrations from $2,500.
Install
Run in a terminal
claude mcp add --transport http behaviortrees https://www.behaviortrees.com/mcpAdd to Settings → Connectors → Add custom connector
https://www.behaviortrees.com/mcpAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"behaviortrees": {
"url": "https://www.behaviortrees.com/mcp"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"behaviortrees": {
"type": "http",
"url": "https://www.behaviortrees.com/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"behaviortrees": {
"serverUrl": "https://www.behaviortrees.com/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"behaviortrees": {
"type": "http",
"url": "https://www.behaviortrees.com/mcp"
}
}
}Tools this server provides (6)
Taken from the project documentation; the running server may differ.
- validate_tree
- Validates a behavior tree.
- create_editor_link
- Builds a URL that opens the tree in the editor.
- convert_tree
- Converts between behavior3 JSON and BehaviorTree.CPP XML.
- list_node_types
- Lists built-in node types.
- get_example
- Returns an example tree.
- read_guide
- Reads a guide from behaviortrees.com.
What it does
- Structural validation
- Detects cycles, dangling children and bad decorators.
- Format conversion
- Converts between behavior3 JSON and BehaviorTree.CPP XML.
- Editor links
- Opens a tree in the editor without uploading it.
- Built-in node list
- Lists node types and example trees.
- Guides
- Reads behaviortrees.com guides.
- CI-friendly CLI
- validate exits 1 on errors.
Good for
- Check an AI-written tree before running it
- Move a Nav2 tree XML into behavior3 JSON
- Share an editable tree through a link
- Add validation to a CI pipeline
Pricing
Open source
Editor free and open source; custom integration from $2,500
Prices change. Check behaviortrees.com before you buy.
Behavior Trees FAQ
Which formats are supported?
behavior3 JSON and BehaviorTree.CPP XML (v3 and v4).
Is anything uploaded?
The README says the tree travels inside the link, so nothing is uploaded.
What licence?
AGPL-3.0-only.
Remote or local?
Both: a remote endpoint or npx over stdio.
Is Behavior Trees free?
Yes. Behavior Trees is open source, so you can use and self-host it for free.
How do I add Behavior Trees to Claude Code?
Run this command in your terminal: claude mcp add --transport http behaviortrees https://www.behaviortrees.com/mcp
What are the best alternatives to Behavior Trees?
The closest alternatives to Behavior Trees are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Behavior Trees

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools