Flutter Mobile Workbench

编码与调试

by cristianoaredes

Accelerate Flutter mobile development with guided setup, smart device management, and streamlined run/build/test workflows. Handle Android and iOS simulators and emulators, capture logs and screenshots, and resolve common issues automatically. Ship confidently with release builds and built-in health checks.

什么是 Flutter Mobile Workbench

Accelerate Flutter mobile development with guided setup, smart device management, and streamlined run/build/test workflows. Handle Android and iOS simulators and emulators, capture logs and screenshots, and resolve common issues automatically. Ship confidently with release builds and built-in health checks.

README

MCP Mobile Server — AI-Powered Mobile Development for Android, iOS, and Flutter

<div align="center">

<a href="https://www.npmjs.com/package/@cristianoaredes/mcp-mobile-server"><img src="https://img.shields.io/npm/v/@cristianoaredes/mcp-mobile-server.svg?style=flat-square&label=npm&color=CB3837" alt="NPM Version"></a> <a href="https://github.com/cristianoaredes/mcp-mobile-server/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="License: MIT"></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-compatible-green.svg?style=flat-square" alt="MCP Compatible"></a> <img src="https://img.shields.io/badge/platforms-Android%20%7C%20iOS%20%7C%20Flutter-orange.svg?style=flat-square" alt="Platforms: Android | iOS | Flutter"> <img src="https://img.shields.io/badge/tools-36-brightgreen.svg?style=flat-square" alt="36 Tools"> <img src="https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg?style=flat-square" alt="Node.js 18+">

36 tools for mobile development automation, ready to use inside Claude Desktop and any MCP-compatible AI client.

by Cristiano Arêdes

</div>

What is this?

MCP Mobile Server is a Model Context Protocol server that gives AI assistants direct, structured access to your mobile development toolchain. It bridges Claude Desktop (and other MCP clients) to Flutter, Android SDK, and iOS/Xcode workflows through 36 typed tools and 10 high-level "super-tools" that orchestrate complete multi-step workflows.

Instead of switching between terminals and docs, you describe what you want in natural language and the server executes the right commands — with validation, error handling, and fallback strategies built in.

Supported platforms: Android · iOS · Flutter · macOS · Linux · Windows (partial)


Features

CategoryToolsWhat you can do
Core / Health5Environment diagnostics, Flutter doctor, device discovery
Device Management9List, create, start, and stop Android emulators and iOS simulators
Flutter Development6Hot reload sessions, builds, tests, dependency management
Utilities4Logcat, screenshots, simulator boot/shutdown
Setup & Configuration2Automated Flutter and Android SDK environment setup
Super-Tools (workflows)10Complete end-to-end workflows combining multiple atomic tools

Super-Tools — complete workflows in one call

ToolWhat it does
flutter_dev_sessionSelects best available device, runs doctor, starts hot reload — one command
flutter_test_suiteUnit + widget + integration tests with coverage reporting
flutter_release_buildMulti-platform release builds (APK, App Bundle, IPA)
flutter_deploy_pipelineEnd-to-end: test → build → sign
flutter_fix_common_issuesDiagnoses and auto-fixes common Flutter build errors
flutter_inspector_sessionWidget inspection session
mobile_device_managerIntelligent device orchestration across platforms
android_full_debugDevice selection → APK install → launch → logcat in one step
android_emulator_workflowAVD create → start → wait → ready
ios_simulator_managerBoot → wait → ready → screenshot lifecycle management

Security built in

  • All shell commands are validated against an allowlist before execution
  • Dangerous pattern detection blocks injection attempts
  • Path traversal protection on all file arguments
  • Runtime input validation via Zod
  • Configurable timeouts on long-running processes

Requirements

RequirementVersion
Node.js18.0.0 or later
npm or yarnany recent version
Flutter SDK3.0+ (for Flutter tools)
Android SDK / Android Studioany recent (for Android tools)
Xcode14+ on macOS (for iOS tools)

You only need the SDKs for the platforms you work on. The server starts and serves tools even when some SDKs are absent.


Installation

Option 1 — Run with npx (no install needed)

bash
npx @cristianoaredes/mcp-mobile-server

Option 2 — Install globally

bash
npm install -g @cristianoaredes/mcp-mobile-server
mcp-mobile-server

Option 3 — Build from source

bash
git clone https://github.com/cristianoaredes/mcp-mobile-server.git
cd mcp-mobile-server
npm install
npm run build
npm start

Claude Desktop Setup

Add the server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "mobile-dev": {
      "command": "npx",
      "args": ["@cristianoaredes/mcp-mobile-server"]
    }
  }
}

Restart Claude Desktop after saving. The 36 mobile development tools will appear automatically.


Usage Examples

Check your environment

code
Use the health_check tool to verify the mobile development server is working
code
Run flutter_doctor to check my Flutter setup

Work with devices

code
List all connected Android devices and iOS simulators
code
Start a Flutter development session with hot reload on the best available device

Build and test

code
Run the full test suite for my Flutter project at /path/to/project
code
Build release versions for Android and iOS

Fix build problems

code
My Flutter app won't build. Use flutter_fix_common_issues to diagnose and fix it.

Validate the installation from the command line

bash
# After building from source:
npm run mcp:validate

# Expected output:
# ✅ Server configuration is valid
# ✅ 36 tools registered

Project Structure

code
src/
  server.ts          # MCP server entry point
  tools/
    android.ts       # Android SDK tools
    ios.ts           # iOS / Xcode / Simulator tools
    flutter.ts       # Flutter SDK tools
    super-tools.ts   # High-level workflow automation
    setup-tools.ts   # Environment setup tools
  utils/
    process.ts       # Process execution and tracking
    security.ts      # Command validation and sandboxing
    fallbacks.ts     # Fallback strategies (ADB → native-run, etc.)
    tool-categories.ts # Tool registry

The server communicates over stdio using JSON-RPC 2.0, the standard MCP transport.


Contributing

bash
# Clone and install
git clone https://github.com/cristianoaredes/mcp-mobile-server.git
cd mcp-mobile-server
npm install

# Run in development mode (watch)
npm run dev

# Run tests
npm test

# Run linter and full CI check
npm run ci

See CONTRIBUTING.md for guidelines and docs/ for the full documentation set.


Documentation

ResourceDescription
Quick Start GuideGet running in under 5 minutes
Tools ReferenceAll 36 tools with parameters and examples
ArchitectureSystem design, security layer, and ADRs
Android WorkflowAndroid development guide
iOS WorkflowiOS development guide
Flutter WorkflowFlutter development guide
TroubleshootingCommon issues and solutions

Troubleshooting

Flutter not found

bash
# Run the automated setup tool
# In Claude Desktop: "Use flutter_setup_environment to install Flutter"

Android SDK not configured

bash
# In Claude Desktop: "Use android_sdk_setup to configure Android"

No devices available

bash
# List what's available
# "Use android_list_emulators and ios_list_simulators to see available devices"

# Or start a new one
# "Use android_start_emulator to launch an Android emulator"

Claude Desktop not recognizing the server

  1. Verify the config file path is correct for your OS
  2. Check the JSON is valid (no trailing commas)
  3. Restart Claude Desktop completely
  4. Ask Claude: "Use health_check to verify the mobile server"

License

MIT — free to use, modify, and distribute.


<div align="center">

GitHub Stars

Report a Bug · Request a Feature · Full Documentation

</div>

常见问题

Flutter Mobile Workbench 是什么?

Accelerate Flutter mobile development with guided setup, smart device management, and streamlined run/build/test workflows. Handle Android and iOS simulators and emulators, capture logs and screenshots, and resolve common issues automatically. Ship confidently with release builds and built-in health checks.

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描111.8k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描111.8k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描111.8k

相关 MCP Server

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
83.1k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
51.8k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
46.2k

评论