Skip to main content
Glama

Flutter Tools MCP Server

by dkpoulsen

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.

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.0
  • node-pty: ^1.0.0
  • which: ^4.0.0

Dev Dependencies

  • @types/node: ^18.19.0
  • @types/which: ^3.0.3
  • typescript: ^5.3.3

Scripts

  • build: Compiles the TypeScript code and sets the executable permissions on the compiled JavaScript file.
  • prepare: Runs the build script.
  • 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

  1. Ensure the Flutter SDK is installed and available in your PATH.
  2. Start the MCP server using the configured command.
  3. Use the get_diagnostics and apply_fixes tools as needed.

Example

node /path/to/flutter-tools/build/index.js

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Enables interaction with the Flutter SDK by providing tools to analyze and apply fixes to Dart and Flutter files.

  1. Overview
    1. Tools
      1. get_diagnostics
      2. apply_fixes
    2. Dependencies
      1. Dev Dependencies
        1. Scripts
          1. Installation
            1. Usage
              1. Example

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A Dart-based MCP server implementation that enables AI-assisted task management, document handling, and workspace organization through standardized tools and seamless Dart integration.
                  Last updated -
                  10
                  307
                  2
                  JavaScript
                  MIT License
                  • Linux
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  A distributable Model Context Protocol (MCP) server that exposes Dart SDK commands for AI-powered development. This server bridges the gap between AI coding assistants and Dart/Flutter development workflows by implementing the Model Context Protocol (MCP).
                  Last updated -
                  10
                  11
                  2
                  TypeScript
                  MIT License
                  • Apple
                  • Linux
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that connects Flutter apps with AI coding assistants like Cursor, Claude, and Cline, enabling AI-powered analysis of widget trees, navigation, and layout issues.
                  Last updated -
                  62
                  89
                  JavaScript
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that enables AI assistants to interact with Flutterwave payment services, providing tools for transaction management, payment link generation, and automated customer support.
                  Last updated -
                  TypeScript

                View all related MCP servers

                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/dkpoulsen/flutter-tools'

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