# Baton

> Baton is an open-source MCP server. Pass the baton between coding agents: convert sessions across Claude Code, OpenCode, Codex & more. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/kaseban/baton
- **MCP Registry name:** tech.kasabeh/baton
- **Listing updated:** 2026-11-13

## About

Pass the baton between coding agents: convert sessions across Claude Code, OpenCode, Codex & more.

## Install

### Claude Code (Terminal)

```sh
claude mcp add baton -- npx -y @kasabeh/baton-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

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

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

## FAQ

### Is Baton free?

Yes. Baton is open source, so you can use and self-host it for free.

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

Run this command in your terminal: claude mcp add baton -- npx -y @kasabeh/baton-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/baton-4
