flutter-coder
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@flutter-coder generate a BLoC counter boilerplate"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Flutter Coder MCP Server
MCP server providing Flutter and Dart reference data, code generation, live API lookups, a verified advanced-sample corpus, and an opinionated knowledge base for Claude Code.
Tools (12)
Tool | Description | Source |
| Search the advanced sample corpus by describing what you're building | Static (verified corpus) |
| Full code + gotchas for a specific sample id | Static (verified corpus) |
| Browse the corpus index by category | Static (verified corpus) |
| Architecture/tooling guidance: structure, state management, theming, flavors/CI, package picks | Static (verified 2026-07) |
| Search Flutter API docs for any class/widget/method | Live (api.flutter.dev) |
| Search Dart API docs for core library references | Live (api.dart.dev) |
| Get pub.dev package details, versions, score, dependencies | Live (pub.dev API) |
| Search curated widget catalog with properties and tips | Static (100+ widgets) |
| Diagnose common Flutter errors with solutions | Static (20+ patterns) |
| Query breaking changes by version or keyword | Live (docs.flutter.dev) |
| Dart language feature reference through Dart 3.12 | Static (21 features) |
| Generate widget/BLoC/Riverpod 3/test/freezed/repository boilerplate | Static (7 templates) |
Related MCP server: Flutter MCP
Resources (6)
Resource | URI | Description |
Samples Index |
| The verified advanced sample corpus, grouped by category |
Knowledge Base |
| Index of current best-practice guidance entries |
Widget Catalog |
| 100+ widgets with categories, properties, usage tips |
Error Catalog |
| Common errors with root causes and solutions |
Dart Features |
| Dart language features through 3.12 (incl. the macros cancellation) |
State Management |
| BLoC vs Riverpod 3 vs Provider comparison |
The sample corpus
Every sample in src/data/samples/ is complete, self-contained Dart that passed
flutter analyze with zero errors/warnings in a scratch app before landing here
(test-category samples also pass flutter test). Categories: rendering, animation,
architecture, async, platform, navigation, performance, testing, ui-patterns, and
connectivity (BLE, MQTT, provisioning, serial, firmware↔app protocol, OTA — the
device-companion layer for REC's embedded products).
Setup
git clone https://github.com/RoanokeControls/flutter-coder.git
cd flutter-coder
npm install
npm run build
npm test # corpus integrity suiteRegister in Claude Code
Add to ~/.claude.json under mcpServers:
{
"flutter-coder": {
"type": "stdio",
"command": "node",
"args": ["/path/to/flutter-coder/dist/index.js"]
}
}Or copy .mcp.json to your Flutter project root for project-level registration.
Staying current
npm run check-updates probes Flutter/Dart releases and the tracked pub.dev
packages against the committed baseline in data/version-state.json, exiting 1
when static content may be stale. A scheduled cloud routine runs it on the 1st
of every month and opens a GitHub issue with the findings. See CLAUDE.md for
the maintenance playbook.
Architecture
src/
├── index.ts # MCP server entry, tool + resource registration
├── cache.ts # In-memory TTL cache (5 min API, 1 hour docs)
├── fetcher.ts # HTTP fetch helpers with timeout and HTML parsing
├── tools/ # Tool implementations (live fetchers + corpus search)
└── data/
├── samples/ # Verified advanced sample corpus (one file per area)
├── knowledge/ # Knowledge base entries (asOf-dated guidance)
├── widget-catalog.ts # 100+ curated widget entries
├── error-catalog.ts # 20+ error patterns with solutions
├── dart-features.ts # Dart language features through 3.12
└── patterns.ts # State management patterns + codegen templates
scripts/check-updates.mjs # Monthly freshness probe (exit 1 = actionable)
data/version-state.json # Committed baseline the probe diffs against
test/corpus.test.mjs # Integrity suite (ids, categories, deprecated-API bans)Hybrid approach: live fetching from official APIs (pub.dev, api.flutter.dev, api.dart.dev, docs.flutter.dev) combined with curated, analyzer-verified static data for samples, error solutions, and guidance. All live fetches use an in-memory TTL cache.
License
MIT
Available Tools
14 toolsdart_docsB
Search Dart API docs for core library classes. Returns description, properties, methods, and constructors.
Inputs: query (required), library.
dart_language_refB
Dart language feature reference with syntax, examples, and tips. Covers records, patterns, sealed classes, and more.
Inputs: feature (required).
flutter_breaking_changesB
Query Flutter breaking changes by version or keyword. Useful for migration planning.
Inputs: query, version.
flutter_codegenC
Generate Flutter/Dart boilerplate code. Supports StatelessWidget, StatefulWidget, BLoC, Riverpod, tests, freezed, and repository patterns.
Inputs: name (required), template (required), props.
flutter_docsC
Search Flutter API docs for any class, widget, method, or enum. Returns description, properties, methods, and constructors.
Inputs: query (required), type.
flutter_error_helpA
Diagnose common Flutter errors and get solutions with code examples. Paste the error message for diagnosis.
Inputs: error_message (required).
flutter_find_sampleA
FIRST STOP when writing advanced Flutter code. Search the verified sample corpus (custom render objects, shaders, slivers, animation physics, isolates, platform channels, go_router, golden tests, performance patterns) by describing what you're building. Returns the best-match sample in full with gotchas.
Inputs: need (required).
flutter_get_sampleB
Get a specific sample from the advanced corpus by id, with complete compilable code and notes.
Inputs: id (required).
flutter_knowledgeA
Opinionated, current best-practice guidance for Flutter projects: architecture, state management choice, project structure, theming, error handling, flavors/CI, package picks. Query by topic or entry id.
Inputs: query (required).
flutter_list_samplesB
Browse the advanced sample corpus index, optionally filtered by category.
Inputs: category.
flutter_source_readA
Read a file or directory from the vendored flutter_reactive_ble federation source. Call with no path for the package tree and version manifest; a directory path lists it; a file path returns numbered source (paged, 500 lines max per call).
Inputs: path, end_line, start_line.
flutter_source_searchA
Grep the vendored ground-truth source of flutter_reactive_ble and its federation (reactive_ble_platform_interface, reactive_ble_mobile — Dart API, Android Kotlin, iOS/macOS Swift, protobuf codecs), pinned at the exact versions the sample corpus was verified against. Use when the answer lives in the implementation: what a call actually throws, how the native side maps a GATT status, what goes over the method channel.
Inputs: query (required), package, max_results.
flutter_widget_lookupB
Search the curated Flutter widget catalog. Returns widget properties, usage tips, and best practices.
Inputs: query (required), category.
pub_packageA
Get pub.dev package details including version, score, dependencies, and installation instructions.
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools are clearly distinct: docs lookups (dart_language_ref, flutter_docs, dart_docs, flutter_widget_lookup), sample retrieval (flutter_find_sample, flutter_get_sample, flutter_list_samples), source grep/read (flutter_source_search, flutter_source_read), and codegen. Minor potential confusion exists between flutter_docs and flutter_widget_lookup (both search Flutter API/widget info) and between flutter_find_sample vs flutter_get_sample vs flutter_list_samples, though the 'first stop' labeling and verbs help differentiate.
Tools follow a consistent flutter/dart prefix plus verb_noun pattern: flutter_find_sample, flutter_get_sample, flutter_list_samples, flutter_source_search, flutter_source_read are well-formed. A few use noun-only names (flutter_docs, dart_docs, pub_package) lacking an explicit verb, but the convention is otherwise stable and predictable.
14 tools is on the upper edge of the recommended range but justified for a flutter coding assistant that covers docs, samples, source, codegen, errors, and best practices. Each tool serves a clear reference/research purpose, though some (source_search/source_read) are highly specialized.
The surface is thorough for a coders' reference: language/API docs, widget lookup, package info, error diagnosis, breaking changes, verified samples, codegen, best practices, and vendored source access. Minor gaps include no build/run tool and no explicit write/edit capability, but for a reference and code-generation server the coverage is strong.
Related MCP Connectors
Create, edit, preview, and build Flutter apps via FlutterGo.AI cloud MCP (OAuth).
Flutter in-app bug tracking, visual pin annotations, and device logs directly into your AI IDE.
Get up-to-date, version-specific documentation and code examples from official sources directly in…
@latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with the Flutter SDK by providing tools to analyze and apply fixes to Dart and Flutter files.8-
- AlicenseAqualityDmaintenanceA real-time server that provides Flutter/Dart documentation and pub.dev package information to AI assistants, ensuring they generate accurate and up-to-date Flutter code.874MIT
- AlicenseNot gradedqualityDmaintenanceProvides advanced Flutter development tools via Model Context Protocol with features including widget analysis, documentation search, performance optimization, and code generation.18MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to search, analyze, and retrieve detailed information about Dart and Flutter packages from pub.dev. Supports package discovery, version management, dependency analysis, and documentation access.613 npm5MIT