Skip to main content
Glama

Flutter MCP

by adamsmaka

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_flutter_docs

Get Flutter class documentation on-demand with optional smart truncation.

DEPRECATED: This tool is deprecated. Please use flutter_docs() instead. The new tool provides better query resolution and unified interface.

Args: class_name: Name of the Flutter class (e.g., "Container", "Scaffold") library: Flutter library (e.g., "widgets", "material", "cupertino") tokens: Maximum token limit for truncation (default: 8000, min: 500)

Returns: Dictionary with documentation content or error message

search_flutter_docs

Search across Flutter/Dart documentation sources with fuzzy matching.

DEPRECATED: This tool is deprecated. Please use flutter_search() instead. The new tool provides better filtering and more structured results.

Searches Flutter API docs, Dart API docs, and pub.dev packages. Returns top 5-10 most relevant results with brief descriptions.

Args: query: Search query (e.g., "state management", "Container", "navigation", "http requests") tokens: Maximum token limit for response (default: 5000, min: 500)

Returns: Search results with relevance scores and brief descriptions

flutter_docs

Unified tool to get Flutter/Dart documentation with smart identifier resolution.

Automatically detects the type of identifier and fetches appropriate documentation. Supports Flutter classes, Dart classes, and pub.dev packages.

Args: identifier: The identifier to look up. Examples: - "Container" (Flutter widget) - "material.AppBar" (library-qualified Flutter class) - "dart.Future" (Dart API) - "provider" (pub.dev package) - "pub" (explicit pub.dev package) - "flutter" (explicit Flutter class) topic: Optional topic filter. For classes: "constructors", "methods", "properties", "examples". For packages: "getting-started", "examples", "api", "installation" tokens: Maximum tokens for response (default: 10000, min: 1000)

Returns: Dictionary with documentation content, type, and metadata

process_flutter_mentions

Parse text for @flutter_mcp mentions and return relevant documentation.

NOTE: This tool is maintained for backward compatibility. For new integrations, consider using the unified tools directly:

  • flutter_docs: For Flutter/Dart classes and pub.dev packages
  • flutter_search: For searching Flutter/Dart documentation

Supports patterns like:

  • @flutter_mcp provider (pub.dev package - latest version)
  • @flutter_mcp provider:^6.0.0 (specific version constraint)
  • @flutter_mcp riverpod:2.5.1 (exact version)
  • @flutter_mcp dio:>=5.0.0 <6.0.0 (version range)
  • @flutter_mcp bloc (latest version keyword)
  • @flutter_mcp material.AppBar (Flutter class)
  • @flutter_mcp dart.Future (Dart API)
  • @flutter_mcp Container (widget)

Args: text: Text containing @flutter_mcp mentions tokens: Maximum token limit for each mention's documentation (default: 4000, min: 500)

Returns: Dictionary with parsed mentions and their documentation

get_pub_package_info

Get package information from pub.dev including README content.

DEPRECATED: This tool is deprecated. Please use flutter_docs() instead with the "pub:" prefix (e.g., flutter_docs("pub")).

Args: package_name: Name of the pub.dev package (e.g., "provider", "bloc", "dio") version: Optional specific version to fetch (e.g., "6.0.5", "2.5.1") tokens: Maximum token limit for response (default: 6000, min: 500)

Returns: Package information including version, description, metadata, and README

flutter_search

Search across multiple Flutter/Dart documentation sources with unified results.

Searches Flutter classes, Dart classes, pub packages, and concepts in parallel. Returns structured results with relevance scoring and documentation hints.

Args: query: Search query (e.g., "state management", "Container", "http") limit: Maximum number of results to return (default: 10, max: 25) tokens: Maximum token limit for response (default: 5000, min: 500)

Returns: Unified search results with type classification and relevance scores

flutter_status

Check the health status of all Flutter documentation services.

Returns: Health status including individual service checks and cache statistics

health_check

Check the health status of all scrapers and services.

DEPRECATED: This tool is deprecated. Please use flutter_status() instead.

Returns: Health status including individual scraper checks and overall status

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adamsmaka/flutter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server