Skip to content
← All MCP servers

Is the Flutter MCP server safe? What it can reach

What the Flutter MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

The Dart and Flutter MCP server ships with the Dart SDK and runs locally with dart mcp-server. It has no sign-in. It can create projects, run pub commands, launch and control apps, and run tests on your machine, so it works with your own file and process rights. The package says it is experimental.

Who maintains it

ImplementationKindStatus
Dart and Flutter MCP server (dart-lang/ai)Officialactive

It runs as a local process on your machine.

How it signs in

There is no credential. The server runs as a local process with your user’s rights over the project roots your client shares.

What its tools can do

KindTools
Readanalyze_files, get_active_location, get_app_logs, get_runtime_errors, list_devices, list_running_apps, lsp, pub_dev_search, read_package_uris, rip_grep_packages
Writecreate_project, dart_fix, dart_format, dtd, flutter_driver_command, hot_reload, hot_restart, launch_app, pub, roots, run_tests, stop_app, vm_service, widget_inspector
Can’t be undonenone documented

The README lists 24 tools, and some are off by default. Enabled by default: analyze_files, dtd, flutter_driver_command, get_runtime_errors, hot_reload, hot_restart, lsp, pub, pub_dev_search, read_package_uris, rip_grep_packages, roots, vm_service and widget_inspector. pub can add dependencies, and run_tests and launch_app run project code. vm_service invokes methods on a running app. The README lists no tool that executes arbitrary code.

Built-in limits

OptionWhat it does
--disableTurns tools or prompts off by name or category. Disable wins over enable at the same level.
--enableTurns on tools that are off by default, by name or category.
dart mcp-server --helpPrints the full list of tool and category names.

The risks

  • pub can run pub get and add packages, and a malicious or typosquatted dependency added after an injected instruction can run code at build time.
  • run_tests and launch_app execute project code, so a changed test or main file runs with your user’s rights.
  • dart_fix and dart_format rewrite files across the project roots, and create_project writes new directories.
  • vm_service and flutter_driver_command can call methods on a running app, which could act on a logged-in test device.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add dart -- dart mcp-server

Claude Code names MCP tools mcp__dart__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__dart__pub",
      "mcp__dart__run_tests",
      "mcp__dart__launch_app",
      "mcp__dart__dart_fix",
      "mcp__dart__create_project",
      "mcp__dart__vm_service",
      "mcp__dart__flutter_driver_command"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.dart]
command = "dart"
args = ["mcp-server"]

Checklist

  • Run it in a repo with no secrets in the working tree.
  • Pass --disable for tools you do not need, such as vm_service.
  • Review pubspec changes before you run pub get.
  • Check the app’s Flutter Driver extension is not in release builds.

Checked against the vendor documentation on November 25, 2026. Flutter docs, Dart and Flutter MCP server · dart_mcp_server README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing