gem-mcp
Full support for Flutter project scaffolding and code generation across all platforms, including blueprint-based architecture.
Dual-engine AI strategy using Gemini 2.5 Pro for reasoning and Flash for high-speed code generation, with API key rotation to avoid rate limits.
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., "@gem-mcpCreate a simple to-do list app with Flutter"
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.
⨠Features
Feature | Description |
š§ Dual-Engine Strategy | Uses Gemini 2.5 Pro for reasoning and Flash for high-speed generation |
š API Key Rotation | Multiple Gemini keys with random load balancing to avoid rate limits |
š Groq Fallback | Automatic fallback to Groq when Gemini quota is exceeded |
šļø Visual Inspector | Multimodal UI validation with Playwright + Gemini Vision (OCR fallback) |
š”ļø QA Sentinel | Auto-healing test execution with smart diagnostics |
ā” Lazy Loading | Sub-5 second startup time |
Related MCP server: MCP Agentic AI Server
š Quick Start
Prerequisites
Python 3.10+
Google Gemini API Key (Get one here)
Installation
# Clone the repository
git clone https://github.com/riccardosecchi/gem-mcp.git
cd gem-mcp
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Install Playwright browsers (for visual inspection)
playwright install chromiumEnvironment Setup
# Copy the example env file
cp .env.example .env
# Edit with your API keys
nano .envRequired keys in .env:
# Single Gemini key
GEMINI_API_KEY=your_key_here
# OR multiple keys for rotation (recommended)
GEMINI_API_KEYS=key1,key2,key3,key4
# Groq fallback (optional but recommended)
GROQ_API_KEY=gsk_your_groq_keyāļø Configuration
Connect to Claude Code
Add the server to your Claude Code global configuration:
# Edit ~/.claude.jsonAdd this configuration:
{
"mcpServers": {
"gem-mcp": {
"command": "/path/to/gem-mcp/venv/bin/python3",
"args": [
"/path/to/gem-mcp/server.py"
]
}
}
}š” Tip: Replace
/path/to/gem-mcpwith your actual installation path
Verify Connection
# Start Claude Code
claude
# Inside Claude, check MCP servers
/mcpYou should see gem-mcp with a green checkmark ā
š ļø Tools
sequential_thinking
Meta-cognitive buffer for complex reasoning. Enables 50-step planning before code generation.
Use: "Think through the requirements for building a todo app"architect_blueprint
Generates Clean Architecture JSON blueprints with folder structure and tech stack.
Use: "Create a blueprint for a Flutter expense tracker app"scaffold_project
Creates physical folder structure. Full Flutter support with all platforms.
Use: "Scaffold the project based on the blueprint"intelligent_code_writer
Flash-powered code generation with framework-specific linting rules.
Use: "Write the main.dart file with dependency injection setup"visual_inspector
Takes screenshots and validates UI against design expectations.
Use: "Check if the login page matches the design mockup"qa_sentinel
Executes tests with self-healing diagnostics.
Use: "Run pytest and fix any failures"search_codebase
Smart code search with context.
Use: "Find all usages of the UserRepository class"šļø Architecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Claude Code (LLM) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Protocol
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā gem-mcp Server ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāā ā
ā ā Architect ā ā Fabricator ā ā Visual Engine ā ā
ā ā (Pro Model) ā ā(Flash Model)ā ā (Playwright+Flash) ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Tool Layer (8 Agents) ā
ā ⢠sequential_thinking ⢠intelligent_code_writer ā
ā ⢠architect_blueprint ⢠visual_inspector ā
ā ⢠scaffold_project ⢠qa_sentinel ā
ā ⢠search_codebase ⢠clear_thought_process ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāš Project Structure
gem-mcp/
āāā server.py # Main MCP server with all tools
āāā requirements.txt # Python dependencies
āāā .env.example # Environment template
āāā CLAUDE.md # Instructions for Claude
āāā README.md # This fileš Security
API keys are loaded from
.env(never committed)Dangerous shell commands are blocked
Test execution has timeout limits
All external calls use async with proper error handling
š License
MIT Ā© 2025
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
One message in, a full agentic application out: website and MCP app, live. Built from any AI client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that uses Google Gemini AI to analyze requirements, create project plans, review code quality, and provide execution analysis feedback for software development projects.1MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA dual-server MCP implementation with task-based AI processing using Google Gemini API, featuring tool integration, real-time monitoring dashboard, and extensible framework for custom AI workflows.-
- FlicenseAqualityDmaintenanceAn MCP server that automates the full software development lifecycle through an AI-driven TDD state machine. It handles everything from task decomposition and test-driven development to integration testing and automated pull request creation.4-
- AlicenseBqualityCmaintenanceProduction-grade, autonomous Model Context Protocol (MCP) server that elevates AI models from stateless code generators into persistent, self-verifying software engineers.211MIT