Enable AI agents like Cursor, Claude, and Antigravity to interact with your Flutter apps. Your AI sidekick that helps you test while you develop.
Marionette MCP bridges the gap between AI coding assistants and running Flutter applications. It provides a Model Context Protocol server that lets AI agents see your widget tree, interact with UI elements, and capture screenshots — all in real-time.
See the complete widget tree and identify interactive elements in your app
Tap buttons, enter text, scroll views, and navigate through your app
Take screenshots and retrieve logs for visual verification and debugging
See how AI agents interact with Flutter apps in real-time

AI agent navigating, tapping, and entering text in a Flutter app
A complete toolkit for AI-powered Flutter app interaction and testing
Connect to a Flutter app via its VM service URI
Returns all visible interactive UI elements
Tap elements matching a specific key or text
Enter text into text fields
Scroll until an element becomes visible
Retrieve application logs since last check
Capture screenshots of all active views
Hot reload the app without losing state
Your Flutter app initializes MarionetteBinding, registering custom VM service extensions
The MCP server connects to your app's VM Service URL
When an AI agent calls a tool (like tap), the MCP server translates this into VM service extension calls
The Flutter app executes the action (e.g., simulates a tap gesture) and returns the result
Get up and running in minutes
Activate the global tool:
dart pub global activate marionette_mcpIn your Flutter app directory:
flutter pub add marionette_flutterAdd MarionetteBinding to your main.dart:
import 'package:flutter/foundation.dart';
import 'package:marionette_flutter/marionette_flutter.dart';
void main() {
if (kDebugMode) {
MarionetteBinding.ensureInitialized();
} else {
WidgetsFlutterBinding.ensureInitialized();
}
runApp(const MyApp());
}Add to your Cursor's .cursor/mcp.json:
{
"mcpServers": {
"marionette": {
"command": "marionette_mcp",
"args": []
}
}
}Run your Flutter app in debug mode, grab the VM service URI from the console (e.g., ws://127.0.0.1:12345/ws), and ask your AI agent to connect!

Start testing your Flutter apps with AI assistance today. It's open source and free to use.