dart-mcp

dart-mcp

3.4

If you are the rightful owner of dart-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A distributable Model Context Protocol (MCP) server that exposes Dart SDK commands for AI-powered development.

The Dart MCP Server is a powerful tool designed to integrate AI coding assistants with Dart and Flutter development workflows. By implementing the Model Context Protocol (MCP), it provides seamless access to a wide range of Dart SDK commands, enhancing the development process with AI capabilities. The server supports various operations such as code analysis, compilation, project creation, documentation generation, and more. It is designed to work across multiple platforms including macOS, Linux, and Windows, and requires minimal configuration to get started. With intelligent path handling and project auto-detection, the Dart MCP Server ensures that developers can focus on coding without worrying about setup complexities. It is compatible with any MCP client, making it a versatile choice for developers looking to integrate AI into their Dart development environment.

Features

  • Intelligent Path Handling: Automatically resolves relative paths to absolute paths.
  • Project Auto-Detection: Identifies Dart/Flutter projects in common locations.
  • Cross-Platform Support: Works on macOS, Linux, and Windows.
  • Zero Configuration: Works out of the box with sensible defaults.
  • MCP Integration: Compatible with any MCP client, including Windsurf and Cline.

Tools

  1. dart-analyze

    Analyze errors, warnings and lints in Dart code

  2. dart-compile

    Compile Dart into multiple formats (exe, AOT/JIT snapshot, JavaScript)

  3. dart-create

    Create a new Dart project from a template

  4. dart-doc

    Generate API documentation for Dart projects

  5. dart-fix

    Apply automatic repair to Dart source code

  6. dart-format

    Format Dart source code according to style guide

  7. dart-info

    Display diagnostic information for installed Dart tools

  8. dart-package

    Processing packages (get, add, upgrade, obsolete, etc.)

  9. dart-run

    Run the Dart program, support passing parameters

  10. dart-test

    Run tests, support filtering and reporting options