A Model Context Protocol (MCP) server that connects AI assistants to running Flutter applications. It communicates with the Dart VM Service over WebSockets, giving AI tools direct access to application state, performance data, layout constraints, and console logs.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"flutter-agent-lens": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server that connects AI assistants to running Flutter applications. It communicates with the Dart VM Service over WebSockets, giving AI tools direct access to application state, performance data, layout constraints, and console logs.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml
Dynamic problem-solving through sequential thought chains
Persistent memory using a knowledge graph
Just a Better Chatbot. Powered by Agent & MCP & Workflows.
Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf. Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.
MCP Security Weekly
Get CVE alerts and security updates for Flutter_agent_lens and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server that connects AI assistants to running Flutter applications. It communicates with the Dart VM Service over WebSockets, giving AI tools direct access to application state, performance data, layout constraints, and console logs.
AI assistants (such as Claude or Copilot) can inspect, profile, and debug any Flutter application running in debug or profile mode. You can use this server to:
Activate the package globally to register the flutter-agent-lens binary:
dart pub global activate flutter_agent_lens
Ensure your global pub cache bin directory is in your system PATH (typically ~/.pub-cache/bin on macOS/Linux or %USERPROFILE%\AppData\Local\Pub\Cache\bin on Windows).
Add the server details to the configuration file of your MCP client host:
Add the following to your configuration file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"flutter_agent_lens": {
"command": "flutter-agent-lens"
}
}
}
flutter_agent_lenscommandflutter-agent-lensAll tools require an active connection to a running application, unless stated otherwise.
| Tool Name | Parameters | Description |
|---|---|---|
connect_to_app / connect | uri (required, or vmServiceUri for alias), workspace_root (optional) | Connect to a running Flutter application via its VM Service URI. |
list_running_apps | None | Scan for running Flutter VM Service ports on the host. |
autodiscover_app / discover_apps | workspace_root (optional) | Scan active OS processes and connect automatically if exactly one application is running. |
disconnect | None | Disconnect from the currently active application. |
get_app_info | None | Retrieve VM metadata, isolates, platform details, and active extension RPCs. |
| Tool Name | Parameters | Description |
|---|---|---|
diagnose_jank | duration_seconds (default: 3) | Analyze frame render times and highlight frames exceeding the 16.6ms budget. |
get_cpu_profile | duration_seconds (default: 3) | Sample CPU ticks to identify performance hotspots in Dart functions. |
get_widget_rebuild_counts | duration_seconds (default: 3) | Track widget rebuild counts to identify unnecessary layout updates. |
hot_reload | None | Trigger a hot reload on the connected main isolate. |
hot_restart | None | Trigger a hot restart of the running application. |
analyze_bundle_size | build_target (default: 'apk') | Parse local code-size-details.json maps to find bloated packages. |
| Tool Name | Parameters | Description |
|---|---|---|
get_widget_tree | maxDepth (optional, default: 15), projectOnly (optional, default: false) | Retrieve the structured widget tree of the running Flutter application. |
inspect_layout_constraints / inspect_widget | widget_id (required, or widgetId for alias) | Inspect parent |