npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@raheesahmed37/flutter-mcp

v1.0.0

Published

A stdio MCP server that helps AI assistants understand Flutter and Dart codebases.

Readme

flutter-mcp

A stdio Model Context Protocol server that helps AI assistants understand Flutter and Dart codebases quickly.

flutter-mcp is designed for local AI coding agents. It scans a Flutter project with pure TypeScript and Node.js, no Dart SDK required, then returns summary-first context that an AI can use to reason about architecture, files, symbols, routes, relationships, and hotspots.

Install

npm install -g @raheesahmed37/flutter-mcp

For local development from this repository:

npm install
npm run build
node dist/index.js --project D:\path\to\flutter_app

MCP Configuration

Use the published package:

{
  "mcpServers": {
    "flutter-mcp": {
      "command": "npx",
      "args": ["@raheesahmed37/flutter-mcp", "--project", "D:\\path\\to\\flutter_app"]
    }
  }
}

Use a local checkout:

{
  "mcpServers": {
    "flutter-mcp": {
      "command": "node",
      "args": ["D:\\mcp-servers\\flutter-mcp\\dist\\index.js", "--project", "D:\\path\\to\\flutter_app"]
    }
  }
}

Tools

The public MCP surface is intentionally small: five strong tools instead of many narrow tools.

get_project_info

Parses pubspec.yaml and pubspec.lock.

Returns:

  • app name and description
  • Dart SDK constraints
  • dependencies and resolved versions
  • detected packages such as BLoC, Provider, Riverpod, GetX, Hive, Dio, Firebase, Freezed, and build_runner
  • plain-English project summary

get_repo_map

Builds a clean AI-readable repository map.

Returns:

  • annotated file tree
  • Dart/generated file counts
  • feature/group summary
  • important files to read first
  • largest files
  • warnings for large files and circular imports

Generated files and noisy folders such as .git, .dart_tool, .gradle, .idea, .next, Pods, build, and binary assets are skipped by default.

read_context

Reads context by file, topic, or symbol.

Examples:

{ "project_path": "D:\\app", "file_path": "lib/main.dart", "start_line": 1, "end_line": 80 }
{ "project_path": "D:\\app", "topic": "auth", "max_files": 8 }
{ "project_path": "D:\\app", "symbol": "LoginScreen" }

Returns:

  • file content or topic context pack
  • related imports and dependents
  • symbols found in context files
  • important files
  • recommended next tools

search_code

Searches Dart code with multiple modes.

Modes:

  • text
  • symbol
  • route
  • widget
  • dependency

Examples:

{ "project_path": "D:\\app", "query": "GeminiService", "mode": "symbol" }
{ "project_path": "D:\\app", "query": "/login", "mode": "route" }

analyze_project

The main AI understanding tool.

Focus modes:

  • full
  • architecture
  • state_management
  • navigation
  • data_flow
  • testing
  • hotspots

Returns:

  • pattern report
  • feature map
  • route map
  • symbol counts
  • import graph hotspots
  • circular imports
  • warnings
  • important files
  • recommended next tools

Recommended AI Workflow

  1. Call get_project_info to identify the stack.
  2. Call get_repo_map to understand layout and important files.
  3. Call analyze_project with focus: "full" for architecture, routes, state, and hotspots.
  4. Call read_context for the feature, file, or symbol being changed.
  5. Use search_code for targeted lookup.

Design Goals

  • stdio only
  • npm installable
  • no Dart SDK required
  • zero shell execution against the target project
  • summary-first JSON responses
  • relative paths in responses
  • generated/noisy files skipped by default
  • resilient parsing for incomplete or malformed Dart files
  • useful for any AI coding assistant, not just one client

Development

npm install
npm test
npm run build

The test suite uses Node's built-in test runner with tsx.

Current Parser Strategy

The parser is regex-based by design. It extracts enough structure for AI code understanding without requiring Flutter, Dart, or analyzer binaries to be installed.

It detects:

  • classes
  • stateless and stateful widgets
  • enums, mixins, extensions
  • Riverpod providers
  • BLoC/Cubit classes
  • imports
  • widget dependencies
  • common project patterns
  • routes and Navigator usage

License

MIT