# Ranch

> Ranch is an MCP server for agriculture. Local MCP server for reading and updating cattle and sheep records in a Ranch.Bot account. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free trial
- **Platforms:** CLI, macOS, Windows, Linux
- **Website:** https://ranch.bot
- **Repository:** https://github.com/ranchbot/mcp-server
- **MCP Registry name:** bot.ranch/mcp-server
- **Categories:** [agriculture](https://ai-powered.com/categories/agriculture)
- **Listing updated:** 2026-11-21

## About

Ranch.Bot is a livestock record service where producers text a note, review the drafted record in a web app and save it. This server runs on the producer's own computer over stdio and lets an assistant work with those saved records, one farm at a time. Hosted connections are not public yet, ChatGPT access is a private pilot and the Claude connector is in review.

Sign-in uses a terminal command and browser approval, with no API key. Reads include listing farms and animals, finding animals by name or identifier with exact or partial matching, and listing records by animal, group and date range, with paging that the README says an assistant must follow instead of treating a first page as complete. Editors and Owners can create and update, and deletion needs Owner access. Ordinary writes save directly, without the app's confirmation screen, so the README tells the assistant to state the exact change and get approval first.

It needs Node.js 22 or newer and a Ranch.Bot account with farm access. The service sells yearly plans for one operator or a team, with a 30-day trial.

## Features

- **Farm-scoped access:** Works with one farm at a time and takes a farm ID on scoped calls.
- **Animal lookup:** Finds animals by name or identifier with exact or partial matching.
- **Record history:** Lists records by animal, group and date range with paging.
- **Role-based writes:** Editors and Owners can write; deletion needs Owner access.
- **Browser approval login:** Signs in through a terminal command and explicit browser approval.
- **EID lookup:** Readers can look up an animal by electronic ID.

## Good for

- Summarise the current inventory of a sheep or cattle farm
- Find when a group last moved or was treated
- Add a movement or health record after the producer approves it
- Check which farms an account can reach

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server -- npx -y @ranchbot/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server -- npx -y @ranchbot/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@ranchbot/mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-server npx -- -y @ranchbot/mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ranchbot/mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 5 tools changes data. From the server's own tool labels and tool names; not verified by us.

- `list_my_farms` (name suggests: reads): Lists the farms the account can access.
- `list_animals` (name suggests: reads): Lists animals, searchable by name or identifier.
- `set_default_farm` (name suggests: changes): Optionally sets a default farm for scoped calls.
- `list_records` (name suggests: reads): Lists records by animal, group and date bounds.
- `lookup_animal_by_eid` (name suggests: reads): Looks up an animal by electronic ID.

## FAQ

### What do I need to run Ranch?

Node.js 22 or newer, a Ranch.Bot account and access to a farm.

### How do I sign in?

Run ranchbot-mcp login, open the printed URL and approve the code; no API key is used.

### Does Ranch work in ChatGPT or Claude directly?

Not publicly yet; ChatGPT is a private pilot and the Claude connector is in review.

### What does Ranch.Bot cost?

Solo is 190 US dollars a year and Team 490 dollars a year, with a 30-day trial that needs a card.

### Which animals are covered?

Cattle and sheep records in this server.

### How do I add Ranch to Claude Code?

Run this command in your terminal: claude mcp add mcp-server -- npx -y @ranchbot/mcp-server

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [b.tree Beekeeping Manager](https://ai-powered.com/mcp/b-tree-beekeeping-manager): b.tree Beekeeping Manager is a paid MCP server for agriculture.

---
Source: https://ai-powered.com/mcp/ranch
