Flutter Tools MCP Server
The Flutter Tools MCP Server provides tools for analyzing and modifying Dart/Flutter files:
Get Diagnostics: Retrieve diagnostics information for Dart/Flutter files using the
get_diagnosticstool.Apply Fixes: Apply Dart fix suggestions to files using the
apply_fixestool.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Flutter Tools MCP Serverget diagnostics for lib/main.dart"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Flutter Tools MCP Server
Overview
The flutter-tools MCP server provides tools for interacting with the Flutter SDK. It offers two main tools: get_diagnostics and apply_fixes. These tools help in analyzing and fixing Dart/Flutter files.
Related MCP server: mcp-flutter-senior
Tools
get_diagnostics
Description: Get Flutter/Dart diagnostics for a file.
Input Schema:
{
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "Path to the Dart/Flutter file"
}
},
"required": ["file"]
}Example Usage:
{
"name": "get_diagnostics",
"arguments": {
"file": "/path/to/your/file.dart"
}
}apply_fixes
Description: Apply Dart fix suggestions to a file.
Input Schema:
{
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "Path to the Dart/Flutter file"
}
},
"required": ["file"]
}Example Usage:
{
"name": "apply_fixes",
"arguments": {
"file": "/path/to/your/file.dart"
}
}Dependencies
@modelcontextprotocol/sdk: ^1.0.0node-pty: ^1.0.0which: ^4.0.0
Dev Dependencies
@types/node: ^18.19.0@types/which: ^3.0.3typescript: ^5.3.3
Scripts
build: Compiles the TypeScript code and sets the executable permissions on the compiled JavaScript file.prepare: Runs thebuildscript.watch: Compiles the TypeScript code and watches for changes, recompiling automatically.
Installation
To install the MCP server, add the following configuration to your MCP settings file:
{
"mcpServers": {
"flutter-tools": {
"command": "node",
"args": ["/path/to/flutter-tools/build/index.js"],
"env": {}
}
}
}Replace /path/to/flutter-tools/build/index.js with the actual path to the compiled JavaScript file.
Usage
Ensure the Flutter SDK is installed and available in your PATH.
Start the MCP server using the configured command.
Use the
get_diagnosticsandapply_fixestools as needed.
Example
node /path/to/flutter-tools/build/index.jsThis server cannot be deployed
Maintenance
Related MCP Connectors
Create, edit, preview, and build Flutter apps via FlutterGo.AI cloud MCP (OAuth).
Check Dart/Flutter dependencies on pub.dev for updates and manage monitored projects.
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
The official Svelte MCP server providing docs and autofixing tools for Svelte development
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides advanced Flutter development tools via Model Context Protocol with features including widget analysis, documentation search, performance optimization, and code generation.19-
- FlicenseNot gradedqualityDmaintenanceProvides Flutter best practices, code analysis, and state management recommendations for senior developers.-
- FlicenseBqualityBmaintenanceProvides Flutter and Dart reference data, code generation, live API lookups, and a verified sample corpus for AI coding assistants, enabling efficient Flutter development with accurate guidance and boilerplate generation.14-
- AlicenseNot gradedqualityAmaintenanceExposes 35 stdio JSON-RPC tools that let AI agents snapshot the Flutter Semantics tree, drive gestures, capture screenshots, and observe live app state against running Flutter apps over VM Service.3MIT