Flutter MCP Server
@Centinol-alt
Open-source Model Context Protocol (MCP) server for Dart & Flutter. Exposes SDK tools and project resources for AI-driven workflows, automation, and remote development
Overview
What is Flutter MCP Server?
The Flutter MCP Server is an open‑source implementation of the Model Context Protocol (MCP) for the Dart and Flutter ecosystem. It bridges AI assistants, developer tools, and automated workflows by exposing Dart and Flutter SDK tools (analyze, format, fix, create, run, test) as programmable endpoints, along with resource endpoints for documentation and community examples.
How to use Flutter MCP Server?
Clone the repository, install dependencies with dart pub get, copy .env.example to .env, and run locally via dart run bin/flutter_mcp_server.dart or build/run with Docker. Add the server to AI clients (e.g., Windsurf, Cursor) by configuring their MCP config files with a Docker‑based command.
Key features of Flutter MCP Server
- Exposes Dart and Flutter SDK tools as MCP endpoints
- Provides resource endpoints for documentation and community examples
- Secure environment variable management via
.envfiles - Ready‑to‑deploy Dockerfile and smithery.yaml
- Supports integration with AI assistants and CI/CD pipelines
- Extensible with new tools and resources
Use cases of Flutter MCP Server
- Automate code analysis, formatting, and testing via AI or scripts
- Scaffold new Flutter projects programmatically through MCP
- Integrate Dart/Flutter tooling into cloud‑based development workflows
- Enable AI code assistants to run Dart/Flutter commands securely
FAQ from Flutter MCP Server
What does Flutter MCP Server do?
It exposes Dart and Flutter SDK commands (analyze, format, fix, create, run, test) as MCP tools, and provides resource endpoints for documentation and community examples, enabling AI agents and automation to interact with real Dart/Flutter projects.
What are the prerequisites?
Dart SDK (≥3.4.4), Flutter SDK, and optionally Docker for containerized runs and cloud deployment. A Smithery account is needed if deploying to Smithery, though cloud deployment is not yet set up.
How do I set it up locally?
Clone the repo, run dart pub get, copy .env.example to .env, then either run dart run bin/flutter_mcp_server.dart or build/run with Docker (docker build -t flutter_mcp_server . then docker run -it --env-file .env flutter_mcp_server).
Can I deploy it to Smithery?
Smithery cloud deployment is not currently set up; the server is only supported for local use. A smithery.yaml and Dockerfile are provided, but the registry listing and integration are not yet available.
How do I integrate it with Windsurf or Cursor?
Add a Docker‑based command entry to the client’s MCP config (e.g., .codeium/windsurf/mcp_config.json or mcp.json), specifying the image name and any required environment variables.