# Ranch.Bot MCP server

> Allows an AI client to read and write cattle and sheep records through a local MCP server with farm-scoped access.

- Repository: https://github.com/RanchBot/mcp-server
- Page: https://hostedmcp.org/servers/ranchbot/mcp-server
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.2.0

## Install

### Claude Code

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

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

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

### VS Code (`.vscode/mcp.json`)

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

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@ranchbot/mcp-server"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

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

### Codex config.toml (`~/.codex/config.toml`)

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

### Gemini CLI

```sh
gemini mcp add -s user mcp-server npx -- -y @ranchbot/mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## FAQ

### How do I sign in to the Ranch.Bot MCP server?

Run the command `ranchbot-mcp login`, open the printed URL in your browser, and approve the requested access.

### Do I need an API key to use this server?

No, an API key is not required for authentication.

### What are the system requirements for installation?

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

### Can I use this with ChatGPT?

ChatGPT access is currently a private pilot.
