# mcp-server

Connect Claude Code to Ranch.Bot farm records to look up livestock data and make permitted changes. You’ll need a Ranch.Bot account and Node.js 22 or later.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1
- Author: RanchBot
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/RanchBot/mcp-server
- Updated: 2026-10-20
- HTML: https://affpapa.org/en/nevibecode/mcp/ranchbot-mcp-server

## What it does

The server runs locally over stdio and uses your Ranch.Bot account. It works with one farm at a time, letting an agent list farms and animals or retrieve records. Include the relevant `farm_id` in calls scoped to a farm.

Some operations change farm data. Those writes go straight through the server, without the app’s confirmation screen or Change History. Before a change, the agent should show the farm, resolved targets, exact values and consequences, then get your explicit approval. Permissions depend on both your farm role and granted scopes. Sign in with `ranchbot-mcp login`; an API key isn’t needed.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-server -- npx -y @ranchbot/mcp-server
```

### Codex

**Platform CLI**
```bash
codex mcp add ranchbot-mcp-server -- npx -y @ranchbot/mcp-server
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "ranchbot-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "@ranchbot/mcp-server"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "ranchbot-mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@ranchbot/mcp-server"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add ranchbot-mcp-server npx -y @ranchbot/mcp-server
```

## When to use it
- read the animal list for a selected farm
- find an animal by name or identifier
- retrieve records for an animal or group
- make an authorized change after reviewing its values

## Example prompts
- Connect to my farm: call `list_my_farms`, then use the selected `farm_id` with `list_animals`.
- Find the animal with this identifier and show its records.
- Before changing a record, show the farm, matching targets, exact values and consequences, then ask for my approval.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

## Other versions with the same name
- [mcp-server · heyputer](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — ★ 43902
- [mcp-server · mapbox](https://affpapa.org/en/nevibecode/mcp/mapbox-mcp-server.md) — ★ 363
- [mcp-server · packmindhub](https://affpapa.org/en/nevibecode/mcp/packmindhub-mcp-server.md) — ★ 319
- [mcp-server · bingowon](https://affpapa.org/en/nevibecode/mcp/bingowon-mcp-server.md) — ★ 121
- [mcp-server · ui5](https://affpapa.org/en/nevibecode/mcp/ui5-mcp-server.md) — ★ 105

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
