kieranklaassen

Farmbot Agent CLI MCP — Development skill for Claude Code

Development community

Agent-native CLI and MCP server for FarmBot hardware control.

How to install Farmbot Agent CLI MCP

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kieranklaassen/farmbot-agent-cli-mcp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Farmbot Agent CLI MCP does

Agent-native CLI and MCP server for FarmBot hardware control.

Alternatives in Development

  • Happy Coder — by GrocerPublishAgent - Spawn and control multiple Claude Codes in parallel from your phone or desktop 15.7k ★
  • Magnitude — Open source inference server your agent sets up for you 1.5k ★
  • Zeron — A native control plane for Claude Code, Codex, Cursor, Devin and other coding agents 1.4k ★

README

farmbot-agent

Agent-native CLI and MCP server for [FarmBot](https://farm.bot) hardware control.

Control your FarmBot from the terminal or let AI agents manage your garden through the [Model Context Protocol](https://modelcontextprotocol.io).

Install

npm install -g farmbot-agent

Quick Start (CLI)

# Authenticate
farmbot login --email you@example.com --password yourpassword

# Check status
farmbot status

# Move the gantry
farmbot move --x 100 --y 200 --z 0

# Go home
farmbot home

# Emergency stop
farmbot e-stop

# Unlock after e-stop
farmbot unlock

# Execute Lua on device
farmbot lua 'toast("Hello from the CLI!")'

All commands support `--json` for structured output and `--timeout ` (default: 30s).

Quick Start (MCP Server)

Claude Desktop

Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json`):

{
  "mcpServers": {
    "farmbot": {
      "command": "npx",
      "args": ["-y", "farmbot-agent", "mcp"],
      "env": {
        "FARMBOT_TOKEN": "your-jwt-token-here"
      }
    }
  }
}

Claude Code

claude mcp add farmbot -- npx -y farmbot-agent mcp

Environment Variable Auth

For MCP mode, set `FARMBOT_TOKEN` as an environment variable. Get your token:

curl -s -X POST https://my.farm.bot/api/tokens \
  -H "Content-Type: application/json" \
  -d '{"user":{"email":"you@example.com","password":"yourpassword"}}' \
  | jq -r '.token.encoded'

MCP Tools

Tool Description
farmbot_status Device status: position, state, firmware
farmbot_get_position Current X, Y, Z position (lightweight)
farmbot_get_device_info Device config and identification
farmbot_move Move gantry to absolute or relative position
farmbot_home Home one or all axes
farmbot_emergency_stop Immediately halt all movement
farmbot_unlock Unlock after emergency stop
farmbot_lua Execute