Skip to main content
Glama
Arenukvern

Flutter Inspector MCP Server

flutter-mcp-toolkit

Inspect and drive a running Flutter app from your AI assistant.

skills.sh pub: mcp_toolkit Contract Gates intentcall eval gates skill-assets-drift Docs License: MIT Flutter All Contributors maintained with Skill Steward

flutter-mcp-toolkit is a Dart MCP server + Flutter package that lets AI Agents (Codex, Zed, Cursor, Intent, Claude Code, Cline, etc..) take (semantic snapshots, tap widgets, type into forms, hot-reload, and read logs from a Flutter app) or create its own tools and resources at runtime using MCP Toolkit β€” without leaving the conversation and work with Flutter apps in closed feedback loop - see example of it described in OpenAI Agentic Harness.

Watercolor comic infographic explaining flutter-mcp-toolkit: install fmtk, add it to a Flutter app, connect an AI agent, then inspect, tap, reload, and prove changes in a close feedback loop.

The picture's story: the toolkit gives an AI assistant a shared window and control loop into a running Flutter app, so it can inspect state, act like a user, hot reload, read proof, and use custom tools from your app instead of guessing.

View Screenshots

![NOTICE]: Version 4 is currently a prerelease train. Use 4.0.0-dev.5 only if you are intentionally testing the new architecture; otherwise stay on the latest stable 3.x release until 4.0.0 is promoted.

Get started in 4 steps

# 1. Install the binary
curl -fsSL https://raw.githubusercontent.com/Arenukvern/mcp_flutter/main/install.sh | bash
# Installs flutter-mcp-toolkit plus the short fmtk alias for repeated CLI loops.

# 2. Add the toolkit to your Flutter app
cd my-flutter-app
flutter-mcp-toolkit codegen-init   # adds mcp_toolkit + emits main.dart snippet

# 3. Install skills for your AI agent
flutter-mcp-toolkit init claude-code   # or: cursor | codex | cline | agents-skills | all
# Alternative (skills only): npx skills add Arenukvern/mcp_flutter -a cursor -y

# 4. Run
flutter run --debug

That's it. Your AI agent can now inspect and drive the running app β€” and your app can expose custom MCP tools at runtime (see Dynamic Tools Registration below).

Related MCP server: Sketch Context MCP

πŸ“° News

  • 2026-05-26 β€” v3.1.0: Platform-view capture routing, macOS/iOS Simulator host screenshots, web CDP tab capture (SCK β†’ CDP β†’ flutter_layer), and cross-platform showcase platform views.

Install from marketplaces

Platform

Command / link

Any agent (recommended)

flutter-mcp-toolkit init <agent> β€” see AI agent setup

Claude Code (git catalog)

/plugin marketplace add Arenukvern/mcp_flutter then install flutter-mcp-toolkit

Codex (git catalog)

codex plugin marketplace add Arenukvern/mcp_flutter

Cursor (local plugin)

flutter-mcp-toolkit init cursor

Skills only

npx skills add Arenukvern/mcp_flutter -a <agent> -y (add MCP via init or manual JSON)

MCP registries

Smithery, MseeP

Maintainers submitting to official stores: marketplace submission runbook. Full matrix: marketplace distribution.

Documentation

Published packages

Package

Pub.dev

Role

mcp_toolkit

pub package pub points

Flutter app package for runtime MCP tools/resources and toolkit bootstrap.

flutter_mcp_toolkit_core

pub package pub points

Pure-Dart shared command/result/capability types.

flutter_mcp_toolkit_capability_kernel

pub package pub points

Capability kernel contracts for composable MCP units.

flutter_mcp_toolkit_capability_core

pub package pub points

Server-side fmt_* capability implementation.

The server binary lives in mcp_server_dart and is shipped through GitHub Release artifacts as flutter-mcp-toolkit, fmtk, and flutter-mcp-toolkit-server; it is not a pub.dev package.

Development support

Need

Start here

Contribute code or docs

CONTRIBUTING.md Β· Contribution guide

Add or credit contributors

Contributors guide Β· .all-contributorsrc

Report vulnerabilities

SECURITY.md

Validate local changes

steward probe --json --profile quick Β· make check-contracts

Maintain releases

Release train notes Β· flutter-mcp-toolkit-repo-maintainer

Install or update agent skills

AI agent setup Β· Marketplace distribution

What it does

The default toolkit surface exposes 30 MCP tools under the fmt_* capability prefix across four categories:

  • Inspection β€” semantic snapshot, view details, errors, screenshots, VM info

  • Interaction β€” tap, scroll, type, fill forms, hot-reload, navigate, wait_for

  • Debug β€” recent logs, evaluate Dart expressions

  • Lifecycle β€” discover apps, hot-reload, hot-restart

See the flutter-mcp-toolkit-{guide,inspect,control,debug} skills for the full reference (installed by flutter-mcp-toolkit init or npx skills add Arenukvern/mcp_flutter). Install options: AI agent setup.

Dynamic Tools Registration

Flutter apps can register custom tools and resources at runtime. See how it works in this short YouTube video. The same arguments.connection targeting is supported by the CLI's exec, batch, daemon command/execute, daemon watch/start, and snapshot step args.

NOTE

There is officialMCP Server for Flutter from Flutter team which exposes Dart tooling. The main goal of this project is to bring power of MCP server tools by creating them in Flutter app, using dynamic MCP tools registration and close feedback loop for AI Agent. See how it works in short YouTube video. See Quick Start for more details. See original motivation behind the idea.

⚠️ Note on Dump RPCs

Dump RPC methods (like dump_render_tree) can produce huge token output and are disabled by default. Enable with --dumps. See mcp_server_dart README for the full flag surface.

πŸ”’ Security

Generally, since you use MCP server to connect to Flutter app in Debug Mode, it should be safe to use. However, I still recommend to review how it works in ARCHITECTURE.md, how it can be modified to improve security if needed.

This MCP server is verified by MseeP.ai.

πŸ”§ Troubleshooting

  1. Connection Issues

    • Ensure your Flutter app is running in debug mode

    • Verify the port matches in both Flutter app and MCP server

    • Check if the port is not being used by another process

    • Safest explicit targeting: use arguments.connection.uri and paste exact Flutter machine app.debugPort.wsUri

    • If response includes connection_selection_required, retry with arguments.connection.targetId using one URI from availableTargets (or set arguments.connection.uri directly)

  2. AI Tool Not Detecting Inspector

    • Restart the AI tool after configuration changes

    • Verify the configuration JSON syntax

    • Check the tool's logs for connection errors

  3. Dynamic Tools Not Appearing

    • Ensure mcp_toolkit package is properly initialized in your Flutter app

    • Check that tools are registered using MCPToolkitBinding.instance.addEntries()

    • Use fmt_list_client_tools_and_resources to verify registration

    • Hot reload your Flutter app after adding new tools

The Flutter MCP Server is registered with Smithery's registry, making it discoverable and usable by other AI tools through a standardized interface.

Integration Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                 β”‚     β”‚  Flutter App with     β”‚     β”‚                 β”‚
β”‚  Flutter App    β”‚<--->β”‚  mcp_toolkit          β”‚<--->β”‚ flutter-mcp-    β”‚
β”‚  (Debug Mode)   β”‚     β”‚  (VM Svc. Extensions  β”‚     β”‚ toolkit-server  β”‚
β”‚                 β”‚     β”‚  + Dynamic Tools)     β”‚     β”‚                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🀝 Contributing

Contributions are welcome! See CONTRIBUTING.md (maintainer releases, binary checksums) and the contribution guide. Pull requests and issues: GitHub.

✨ Contributors

Huge thanks to all contributors for making this project better!

This roster is maintained with all-contributors. To add someone, update .all-contributorsrc and regenerate the README table, or use the all-contributors bot/CLI from a PR. More detail: docs/contributing/contributors.mdx.

πŸ“– Learn More

Star History

πŸ“„ License

MIT - Feel free to use in your projects!


Flutter and Dart are trademarks of Google LLC.

Install Server
A
license - permissive license
B
quality
A
maintenance

Maintenance

–Maintainers
15dResponse time
4wRelease cycle
14Releases (12mo)
Commit activity
Issues opened vs closed

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arenukvern/mcp_flutter'

If you have feedback or need assistance with the MCP directory API, please join our Discord server