# Behavior Trees (npm · behaviortrees)

Validate, convert (behavior3 JSON, BehaviorTree.CPP XML) and open behavior trees in a visual editor

- Trust score: 68/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-05

## Components

- remote · `www.behaviortrees.com`: 74/100, [markdown](https://verifymcp.io/servers/behaviortrees-behaviortrees/www.md), [page](https://verifymcp.io/servers/behaviortrees-behaviortrees/www)
- npm · `behaviortrees`: 68/100 (this document), [markdown](https://verifymcp.io/servers/behaviortrees-behaviortrees/behaviortrees.md), [page](https://verifymcp.io/servers/behaviortrees-behaviortrees/behaviortrees)

## Channel facts

- Registry: `npm`
- Package: `behaviortrees`
- Version: `0.1.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-05.

- **Supply Chain Security**: 98/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - 30 of 93 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (AGPL-3.0-only).
  - Actively maintained (last published 1 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 66/100
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 1129 tokens (~188/item across 6 items; 6 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 6 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 7 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### How do I install the Behavior Trees MCP server?

Behavior Trees runs locally as an npm package, launched with npx -y behaviortrees. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add behaviortrees-behaviortrees -- npx -y behaviortrees
```

### Cursor

```json
{
  "mcpServers": {
    "behaviortrees-behaviortrees": {
      "command": "npx",
      "args": [
        "-y",
        "behaviortrees"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "behaviortrees-behaviortrees": {
      "command": "npx",
      "args": [
        "-y",
        "behaviortrees"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add behaviortrees-behaviortrees -- npx -y behaviortrees
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "behaviortrees-behaviortrees": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "behaviortrees"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add behaviortrees-behaviortrees --command npx --arg -y --arg behaviortrees
```

### Hermes

```yaml
mcp_servers:
  behaviortrees-behaviortrees:
    command: "npx"
    args: ["-y", "behaviortrees"]
```

### Netclaw

```json
{
  "McpServers": {
    "behaviortrees-behaviortrees": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "behaviortrees"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add behaviortrees-behaviortrees -t stdio -c npx -a -y behaviortrees
```

### Other

```json
{
  "mcpServers": {
    "behaviortrees-behaviortrees": {
      "command": "npx",
      "args": [
        "-y",
        "behaviortrees"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-04 (score 68, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-11-03 (score 53)

First indexed and scored.

## MCP tools (6)

### `validate_tree` (~245 tokens)

Validate a behavior tree

Check a behavior tree for errors before using it: missing or dangling children, nodes with two parents, cycles, decorators with more than one child, leaves with children, unknown node names, and BehaviorTree.CPP import problems. Returns valid (true when there are no errors), the trees found, and findings at error, warning or info level.

Input parameters:

- `tree` (required): The tree: behavior3 JSON: {"title": "...", "root": "<id of the first node under the root>", "nodes": {"<id>": {"name": "<node type>", "title": "<optional label>", "children": ["<id>", ...] (composite…

### `create_editor_link` (~240 tokens)

Open a tree in the editor

Make a link that opens the tree in the behaviortrees.com editor in the user's browser, auto-laid-out and editable, with no account needed. The tree travels inside the link (the URL fragment), so nothing is uploaded or stored. The tree must validate without errors. Give the user the returned url.

Input parameters:

- `tree` (required): The tree: behavior3 JSON: {"title": "...", "root": "<id of the first node under the root>", "nodes": {"<id>": {"name": "<node type>", "title": "<optional label>", "children": ["<id>", ...] (composite…

### `convert_tree` (~263 tokens)

Convert a behavior tree

Convert between behavior3 JSON and BehaviorTree.CPP XML (v4 for ROS 2 Jazzy and Groot2, v3 for ROS 2 Humble), the same way the editor imports and exports. Returns the converted text and any issues (BT.CPP has no equivalent for some behavior3 nodes and vice versa).

Input parameters:

- `to` (string, required): Target format: behavior3, btcpp-v4 or btcpp-v3
- `tree` (required): The tree: behavior3 JSON: {"title": "...", "root": "<id of the first node under the root>", "nodes": {"<id>": {"name": "<node type>", "title": "<optional label>", "children": ["<id>", ...] (composite…

### `list_node_types` (~72 tokens)

List built-in node types

The built-in behavior3 nodes a tree can use without declaring them: composites (Sequence, Priority = selector/fallback, MemSequence, MemPriority), decorators (Inverter, Repeater, MaxTime, ...) and leaves (Wait, Succeeder, Failer, ...), with descriptions and default properties.

### `get_example` (~76 tokens)

Get an example tree

Complete, working example trees (enemy patrol, cooldown-gated attacks, robot navigation with recovery, and more) to learn the format from or start with. Without an id, lists the examples; with an id, returns that tree as behavior3 JSON.

Input parameters:

- `id` (string): Example id from the list; omit to list them

### `read_guide` (~91 tokens)

Read a behavior tree guide

Practical guides from behaviortrees.com/learn as Markdown: what behavior trees are, node types, blackboards, debugging, structuring large trees, and behavior trees in Unity, Unreal, Godot, Python and robotics (BehaviorTree.CPP, ROS 2, Nav2). Without a slug, lists the guides.

Input parameters:

- `slug` (string): Guide slug from the list; omit to list them

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/behaviortrees-behaviortrees/behaviortrees#diagnostics

## Score history

- 2026-11-05: 68
- 2026-11-04: 68
- 2026-11-03: 53

## Common questions

### What is the Behavior Trees MCP server?

Behavior Trees is an MCP server listed in the public MCP registry as io.github.behaviortrees/behaviortrees. Validate, convert (behavior3 JSON, BehaviorTree.CPP XML) and open behavior trees in a visual editor. This page covers its npm package (behaviortrees).

### Is the Behavior Trees MCP server safe to use?

Behavior Trees scores 68 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the Behavior Trees MCP server expose?

Behavior Trees exposes 6 tools: validate_tree, create_editor_link, convert_tree, list_node_types, get_example, read_guide. Their descriptions and schemas cost roughly 987 tokens of context every time the server is loaded.

### Is the Behavior Trees MCP server still maintained?

Behavior Trees is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the Behavior Trees MCP server under?

Behavior Trees declares the AGPL-3.0-only licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- npm package: https://www.npmjs.com/package/behaviortrees
- Socket report: https://socket.dev/npm/package/behaviortrees
- Repository: https://github.com/behaviortrees/behaviortrees
- Website: https://www.behaviortrees.com/
- Changelog RSS feed: https://verifymcp.io/servers/behaviortrees-behaviortrees/behaviortrees.xml
- Changelog JSON feed: https://verifymcp.io/servers/behaviortrees-behaviortrees/behaviortrees.json
- HTML version of this page: https://verifymcp.io/servers/behaviortrees-behaviortrees/behaviortrees
