Marionette

Developer tools

MCP server enabling AI agents to interact with Flutter apps at runtime - let them inspect widgets, simulate taps, enter text, scroll, and take screenshots.

Your AI app calls the Marionette MCP server, which does the developer tools work and sends the result back to the chat.

About Marionette

Marionette is a community MCP server from leancodepl, filed in our directory under developer tools. MCP server enabling AI agents to interact with Flutter apps at runtime - let them inspect widgets, simulate taps, enter text, scroll, and take screenshots.

At a glance

Publisher
leancodepl (community)
Runs
See the README for setup
Written in
Dart
License
Apache-2.0
GitHub stars
518

How to set up Marionette

  1. Follow the install steps in the Marionette README; it is written in Dart, so have that toolchain ready.
  2. Check the Marionette README for keys or settings; the registry lists none that Marionette requires.
  3. Add Marionette to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Marionette tools to confirm the connection.
  5. Run one read-only task with Marionette first, and keep your app asking before each tool call until the results look right.

Marionette compared with similar servers

  • Zhtw by sysprog21 has fewer GitHub stars than Marionette (518 against 518); both are community servers, and both run locally.
  • Appium by appium has more GitHub stars than Marionette (523 against 518); both are community servers, and both run locally.
  • Roam Code by Cranot has fewer GitHub stars than Marionette (517 against 518); both are community servers, and both run locally.

Before you connect Marionette

  • Give Marionette its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Marionette tool call until you trust what it does with them.
  • Treat text that Marionette fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Marionette on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Marionette

How marketing and sales teams put Marionette to work, by company size. Pick the size closest to yours and start Marionette on one use case.

Small business

  • A small business with a developer can use Marionette to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Marionette to explain and fix a marketing site issue without context switching between tools.
  • Marionette runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Marionette to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Marionette to keep scripts and automations documented and versioned as they change.
  • Start Marionette on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Marionette with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Marionette so web and marketing engineering share one reviewed way of working with AI.
  • Marionette is a community server, so have security review the code and pin a version before Marionette touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Marionette README

From leancodepl/marionette_mcp on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Marionette MCP

Your agent's hands and eyes on a running Flutter app.

Marionette connects Claude Code, Cursor, Codex, Gemini CLI, Copilot or any MCP client to the Flutter app you run in debug mode. The agent sees the screen, taps, types, scrolls, reads the logs, hot reloads, and writes a report of what it did. If you know Playwright MCP: this is that, for Flutter.

Website · Docs (marionette.leancode.co/docs) · Video · Article

Quick start

  1. Add the package to your app and initialize the binding in debug builds:

    flutter pub add marionette_flutter
    
    void main() {
      if (kDebugMode) {
        MarionetteBinding.ensureInitialized();
      } else {
        WidgetsFlutterBinding.ensureInitialized();
      }
      runApp(const MyApp());
    }
    

    If another package provides a binding mixin, combine both behaviors in one binding and initialize it before startup. See the binding guide.

  2. Give your agent a bridge: the MCP server or the marionette CLI, whichever you prefer (every agent):

    # MCP server, registered with Claude Code
    dart pub global activate marionette_mcp
    claude mcp add --transport stdio marionette -- marionette_mcp
    
    # or the CLI
    dart pub global activate marionette_cli
    
  3. Run the app with flutter run and paste the ws://…/ws VM service URI it prints into the prompt, or ask the agent to run the app itself:

    Connect to ws://127.0.0.1:9101/…/ws. On Profile, a malformed email must show an error and keep Submit disabled, and a valid one must submit.

[!IMPORTANT] Flutter's own widgets work as is. A custom design system needs one configuration step, or the agent cannot see your buttons and fields: see Configure.

What the agent can do

Tools
See get_interactive_elements, take_screenshots
Act tap, enter_text, scroll_to, swipe, long_press, double_tap, pinch_zoom, press_key, press_back_button
Verify get_logs, set_device_config (text scale, bold text, dark mode)
Iterate hot_reload, hot_restart
Extend your app's own actions, registered with registerMarionetteExtension

With MarionetteConfiguration(enableSessionReports: true), every run leaves a folder: a steps.md the server writes, one line per tool call, and a report.md the agent writes from it. See Reports.

The marionette CLI drives the app with the same actions as shell commands: see Drive.

For UI outside the Flutter widget tree (system permission dialogs, OS sheets, webviews), use the native lane: native_connect with platform android | ios, then native_get_elements / native_tap / etc. Prefer Flutter tools when the target is an in-app widget. The CLI has the same native lane as native-* commands (marionette native-connect --platform android, marionette native-tap --text Allow). Setup (adb, a WebDriverAgent build), the CLI and the workflow: Native lane. To run the MCP server without the native tools, start it with --no-native (marionette_mcp --no-native or marionette mcp --no-native).

Agent Skills

marionette_flutter ships three Agent Skills:

Skill Teaches the agent to
marionette-flutter-setup Add the binding, configure a custom design system, logs and device config
marionette-flutter-drive-app Drive the app with the MCP tools or the CLI, and write the report
marionette-flutter-to-patrol Turn a verified run into Patrol tests
dart run skills@ get                     # in an app that depends on marionette_flutter
npx skills add leancodepl/marionette_mcp # without the Dart toolchain

Documentation

Page What is inside
Start Setup, every agent's config, the first prompt, the example app, FAQ
Concepts How the agent sees a screen, selectors, compaction, the single-binding rule
Configure Custom design systems, Semantics, logs, device config, custom extensions
Drive Prompts for common jobs, every tool with its CLI command, the CLI
Reports Session folders, steps.md, report.md, the verdict
Native lane System UI outside Flutter: dialogs, pickers, notifications, WebViews, setup, workflow, what each lane sees.

Packages

Package Role
marionette_flutter The binding in your app. Required.
marionette_mcp The MCP server your agent runs.
marionette_cli The marionette CLI, for shell-only agents.
marionette_logging Log collection from the logging package.
marionette_logger Log collection from the logger package.

🛠️ Maintained by LeanCode

Marionette is built by LeanCode, the creators of Patrol, the testing framework for Flutter. We build Flutter products from scratch to long-term maintenance.

👉 Hire our team • Check our other packages

Questions about Marionette

What is the Marionette MCP server?

MCP server enabling AI agents to interact with Flutter apps at runtime - let them inspect widgets, simulate taps, enter text, scroll, and take screenshots. Marionette is maintained by leancodepl on GitHub at leancodepl/marionette_mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Marionette MCP server?

Marionette doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (leancodepl/marionette_mcp). Like most servers, Marionette ends with a command or URL you paste into your AI app's MCP config.

Does Marionette need an API key?

The registry lists no required keys for Marionette. Check the Marionette README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Marionette an official MCP server?

No. Marionette is a community server maintained by leancodepl. Community servers can be excellent; read the code and the open issues before you give Marionette access to company data.

What license is Marionette under?

Marionette is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Marionette; the service it connects to has its own terms.