Baton logo

Baton

Runs and checks Flutter, web, React Native, iOS, and Android apps through an MCP server, CLI, or local daemon.

Install Baton

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "baton-4": {
      "command": "npx",
      "args": [
        "-y",
        "baton-run"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio baton-4 -- npx -y baton-run

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 29 tools correctly ().

Overview

Baton MCP server gives coding agents control over local Flutter, Next.js, Vite, React Native/Expo, native iOS, and native Android app runs. It uses a local daemon with an MCP server and CLI to inspect projects, start targets, reload or restart apps, collect logs, and capture screenshots. After an edit, agents can call `check_change` to receive new errors, failed requests, reload results, and a verdict. Reach for it when an agent needs a repeatable run-check-screenshot loop across simulators, devices, browsers, or native app processes.

Use cases

  • Run a local app on a simulator or browser
  • Check code edits with reload results and errors
  • Capture mobile and desktop app screenshots
  • Inspect logs and failed network requests
  • Boot devices for native app testing

Key features

  • MCP server and CLI for local app runs
  • Hot reload, HMR, and native restart workflows
  • Simulator, emulator, device, and browser support
  • Screenshot capture with configurable web viewports
  • Change checks with errors and OK/NOT OK verdicts
  • Project, log, network, and launch configuration tools

Tools29

What Baton lets your agent do. Expand a tool for its parameters.

Verified live~4.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 52d

What it can do

From the 29 tools this server returned when we ran it; 29 declare their own safety hints.

Can delete or modify data · 5Makes network requests · 6Read-only tools · 24
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age56 days
Maintainers1

Observed 2026-11-04 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · baton-run (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads445Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed29Callable tools this server registers over MCP.

How Baton works

What the Baton MCP server does

The Baton MCP server manages local application runs for Flutter, Next.js, Vite, React Native and Expo, plus native iOS and Android projects. It can discover project details, identify available targets and devices, start applications, wait for readiness, inspect logs, and capture screenshots. The same runs are available through its local daemon, command-line interface, MCP client, and Baton app.

The main workflow is to inspect a project, boot a simulator or emulator when necessary, run a target, and wait for it to become usable. After an agent edits code, check_change applies the appropriate update: hot reload for Flutter, HMR for web and React Native, or a restart for native applications and ordinary processes. Its response focuses on newly observed results, including reload output, compiler or console errors, failed requests, and screenshots.

How it works

Set cwd to the absolute project path when using project discovery tools. boot_device can list devices that are available to start or boot a selected simulator or emulator. run_workflow supports a workflow containing an API and frontend, while run_target starts an individual target. Native projects may need a longer first build, so wait_for accepts waits of up to 15 minutes.

Web screenshots are captured in a temporary headless Chrome, Edge, or Brave session, or through the browser specified by BATON_CHROME. Viewports can be phone, tablet, desktop, or a custom width and height. Device and simulator captures use the device resolution. A screenshot confirms that an image was captured; Baton does not interact with controls or determine whether the visual result is correct.

Setup and configuration

Baton requires Node.js 24 or newer and supports macOS, Linux, and Windows. Install the package globally with npm install -g baton-run, then run baton setup to add its configuration to installed coding agents. The setup command changes only Baton’s configuration entries, creates .baton-backup files for changed configurations, and can be repeated. Use baton setup cursor codex to limit the targets, --dry-run to preview changes, or --remove to undo them.

An MCP client that accepts an mcpServers configuration can launch the server with npx -y baton-run; pinning a version such as baton-run@0.2.10 is also supported. The repository provides separate setup paths for Claude Code and Codex plugins, as well as install links for VS Code and Cursor. The project is a public developer preview.

Tools and capabilities

The Baton MCP server exposes 29 tools, including:

  • Project and target discovery: inspect_project, list_targets, list_devices, list_sessions, and list_checkouts.
  • Execution and lifecycle control: boot_device, run_target, run_workflow, wait_for, stop_session, forget_session, hot_reload, and hot_restart.
  • Verification and diagnostics: check_change, read_logs, session_summary, diagnose, screenshot, and set_debug_flag.
  • Network inspection: list_network_requests, get_network_request, and clear_network_requests.
  • Configuration and evidence: read_launch_config, write_launch_config, run_proof, list_proofs, and list_run_history.
  • Dashboard controls: show_dashboard and dashboard_action.

It can return screenshots for web apps, iOS simulators, and Android devices. For UI flows that require taps or other input, pair it with a browser, device-control, or Playwright MCP server. Agents without MCP support can use the CLI, including baton check <session> --json for a machine-readable check result.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Baton

Baton is an MCP server that connects coding agents to local Flutter, Next.js, Vite, React Native/Expo, native iOS, and native Android projects. Its main tools inspect projects, boot devices, run targets, apply changes, wait for results, read logs, and capture screenshots.

Install it with Node.js 24 or newer by running `npm install -g baton-run` and then `baton setup`. For a manual MCP configuration, use `npx -y baton-run` as the server command, optionally pinning a version such as `baton-run@0.2.10`.

Yes, Baton works with Cursor. Run `baton setup cursor` to configure only Cursor, or use the repository’s Cursor install link. Cursor can also launch the server through an `mcpServers` entry using `npx -y baton-run`.

No, Baton does not tap or otherwise control the UI. It launches apps, checks changes, reports evidence, and captures screenshots. Use it with Playwright MCP, Chrome DevTools MCP, or a device-control MCP when a test flow needs input.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBaton AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/baton-4?style=directory)](https://allmcps.com/mcp/baton-4)
HTML Embed
<a href="https://allmcps.com/mcp/baton-4"><img src="https://allmcps.com/api/badge/baton-4?style=directory" alt="Baton on AllMCPs" /></a>