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 "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/riccardosecchi/gem-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server