Overview
Flutter Tools MCP Server is a server that provides tools for interacting with the Flutter SDK, specifically designed to analyze and fix Dart/Flutter files.
To use the Flutter Tools MCP Server, ensure the Flutter SDK is installed, start the server using the configured command, and utilize the get_diagnostics and apply_fixes tools as needed.
- Provides diagnostics for Dart/Flutter files. - Applies fix suggestions to Dart files. - Easy integration with existing Flutter projects.
- Analyzing Dart files for potential issues.
- Automatically applying suggested fixes to improve code quality.
- Streamlining the development process for Flutter applications.
Add to your AI client
Use these steps to connect Flutter Tools MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"flutter-tools-dkpoulsen": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flutter-tools-dkpoulsen"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"flutter-tools-dkpoulsen": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flutter-tools-dkpoulsen"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"flutter-tools-dkpoulsen": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flutter-tools-dkpoulsen"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"flutter-tools-dkpoulsen": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flutter-tools-dkpoulsen"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"flutter-tools-dkpoulsen": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flutter-tools-dkpoulsen"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"flutter-tools-dkpoulsen": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flutter-tools-dkpoulsen"
]
}
}
}FAQ
What tools does the MCP server provide?
The MCP server provides `get_diagnostics` for analyzing files and `apply_fixes` for applying suggested fixes.
How do I install the MCP server?
You can install it by adding the configuration to your MCP settings file as specified in the documentation.
Is the Flutter SDK required to use this server?
Yes, the Flutter SDK must be installed and available in your PATH to use the server.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1463,"uuid":"c9619164-de74-4763-b04e-f0a6a51b3368","name":"flutter-tools","title":"Flutter Tools MCP Server","description":"flutter mcp server","avatar_url":"https://avatars.githubusercontent.com/u/7439286?v=4","created_at":"2025-02-20T15:55:25.928Z","updated_at":"2025-02-23T07:12:47.014Z","status":"created","author_name":"dkpoulsen","author_avatar_url":"https://avatars.githubusercontent.com/u/7439286?v=4","tags":"flutter,mcp-server,dart-tools","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/dkpoulsen/flutter-tools","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]