Skip to main content
Glama
flutter-stripe-mcp

flutter-stripe-mcp

by remonh87

flutter-stripe-mcp

An MCP server that diagnoses Flutter + Stripe (flutter_stripe) setup issues — so Claude can check your project automatically.

What it does

Three tools: one diagnoses your local project setup, and two search GitHub for known issues and their fixes.

diagnose_setup takes the path to your Flutter project root and runs every check:

Check

Requirement

kotlin

Kotlin version >= 1.9.0 (read from android/settings.gradle or legacy android/build.gradle)

gradle_wrapper

Gradle wrapper >= 8.0

android_themes

Theme styles derive from Theme.AppCompat.*, Theme.MaterialComponents.*, or Theme.Material3.*

main_activity

MainActivity extends FlutterFragmentActivity (not FlutterActivity)

proguard_rules

proguard-rules.pro contains all required Stripe rules

ios_deployment_target

iOS deployment target >= 13.0 (from Podfile or project.pbxproj)

ios_camera_permission

NSCameraUsageDescription set in Info.plist (suggestion — needed for card scanning)

The result lists passing checks by name and returns a fix instruction for each problem found. Platforms without an android/ or ios/ directory are skipped.

Checking for known issues

Two more tools let Claude check whether a problem is already a documented issue in the flutter_stripe GitHub repo, and read the fix straight from the discussion:

Tool

Purpose

search_flutter_stripe_issues(query, state="all", limit=10)

Search issues by keywords (e.g. an error message); returns titles, state, and short excerpts.

get_flutter_stripe_issue(issue_number)

Fetch one issue's full body and all comments, to find the actual fix.

These use GitHub's public search API, which is limited to 60 requests/hour unauthenticated. If you hit the rate limit, the tool returns a clear error instead of failing silently. Optionally, set a GITHUB_TOKEN (or GH_TOKEN) environment variable to raise this to 5,000 requests/hour — no other configuration needed.

Related MCP server: reforge-mcp

Install

pip install flutter-stripe-mcp

Or with uv:

uv tool install flutter-stripe-mcp

Add to Claude Desktop

Open ~/Library/Application Support/Claude/claude_desktop_config.json and add:

{
  "mcpServers": {
    "flutter-stripe-mcp": {
      "command": "flutter-stripe-mcp"
    }
  }
}

Restart Claude Desktop. Claude will now have access to the diagnostic tool.

Add to Claude Code

claude mcp add flutter-stripe-mcp -- flutter-stripe-mcp

Usage

Ask Claude:

"Check if my Flutter project at /path/to/myapp is set up correctly for flutter_stripe."

Claude calls diagnose_setup with the project root and tells you exactly what to fix.

Development

uv sync
uv run pytest

See DEVELOPMENT.md for running the server locally with MCP Inspector.

Available Tools

3 tools
diagnose_setupA
Read-onlyIdempotent

Diagnose a Flutter + Stripe (flutter_stripe) project setup.

Android checks: Kotlin version, Gradle wrapper version, theme parents, MainActivity base class, ProGuard rules. iOS checks: minimum deployment target, camera usage permission.

Args: project_path: Absolute path to the Flutter project root (the directory containing android/ and ios/).

Returns: {"ok": [names of passed checks], "issues": [{"check", "status", "fix", ...} for each problem found]}

Inputs: project_path (required). Returns: object

get_flutter_stripe_issueA
Read-onlyIdempotent

Fetch the full body and comments of one flutter_stripe GitHub issue.

Use this after search_flutter_stripe_issues has identified a candidate issue number, to read the complete discussion — maintainer replies and community comments often contain the actual fix, workaround, or root cause that a title/excerpt alone won't reveal.

Args: issue_number: The GitHub issue number (e.g. 1234), not a URL.

Returns: {"number", "title", "state", "url", "body", "comments": [{"author", "body"}]} (plus "note" if the comment thread was too long to fetch in full), or {"error": "...", "kind": "..."} on failure (e.g. not found).

Inputs: issue_number (required). Returns: object

search_flutter_stripe_issuesA
Read-onlyIdempotent

Search GitHub issues in the flutter_stripe repository (flutter-stripe/flutter_stripe).

Use this to check whether a problem you're debugging (an error message, a crash, an unexpected behavior) is already a known, reported issue — before assuming it's novel or trying to work around it from scratch. Returns short excerpts so you can judge relevance; call get_flutter_stripe_issue with a specific issue number to read the full discussion and find the documented fix or workaround.

If an exact-match search (all words present) finds nothing, this automatically retries with a broader "any of these words" search and marks the result with "broadened_search": true — treat those results as lower-confidence and check relevance via the excerpt before following up with get_flutter_stripe_issue.

Args: query: Free-text search terms (e.g. an error message or symptom). state: "all" (default), "open", or "closed". limit: Max number of results to return (1-30).

Returns: {"total_count": int, "results": [{"number", "title", "state", "url", "excerpt"}]} (plus "broadened_search"/"note" if a broader fallback search was used), or {"error": "...", "kind": "..."} on failure (e.g. rate-limited).

Inputs: query (required), limit, state. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.8/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: diagnosing local project setup, searching GitHub issues, and retrieving a full issue. There is no functional overlap or ambiguity between them.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern (diagnose_setup, search_flutter_stripe_issues, get_flutter_stripe_issue). Naming style and verb usage are uniform.

    Tool Count5/5

    Three tools is at the lower bound but appropriate for the narrow scope of Flutter Stripe diagnostics and issue research. Each tool earns its place and there is no redundancy.

    Completeness4/5

    The set covers the core workflow: diagnose a setup problem, search for known issues, and read full discussion for fixes. Minor gaps exist such as no direct tool for checking Stripe dependency versions or API key configuration, but the main diagnostic/research loop is complete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      A self-hosted MCP server that lets Claude query your bank accounts, balances, and transactions through Plaid.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that lets Claude manage long-running development processes across frameworks like Flutter, Next.js, Spring Boot, and Vite, with lifecycle control, log streaming, and hot reload support.
      1
      -