gem-mcp
An autonomous MCP server for AI-powered software generation using Gemini and Groq, with features like dual-engine strategy, visual inspection, and QA sentinel.
README
<p align="center"> <img src="https://img.shields.io/badge/MCP-Server-blueviolet?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xMiAyQzYuNDggMiAyIDYuNDggMiAxMnM0LjQ4IDEwIDEwIDEwIDEwLTQuNDggMTAtMTBTMTcuNTIgMiAxMiAyem0wIDE4Yy00LjQxIDAtOC0zLjU5LTgtOHMzLjU5LTggOC04IDggMy41OSA4IDgtMy41OSA4LTggOHoiLz48L3N2Zz4=" alt="MCP Server"> <img src="https://img.shields.io/badge/Gemini_2.5-Flash%20%7C%20Pro-4285F4?style=for-the-badge&logo=google&logoColor=white" alt="Gemini"> <img src="https://img.shields.io/badge/Groq-Fallback-F55036?style=for-the-badge&logo=groq&logoColor=white" alt="Groq"> <img src="https://img.shields.io/badge/Python-3.10+-3776AB?style=for-the-badge&logo=python&logoColor=white" alt="Python"> </p>
<h1 align="center">💎 gem-mcp</h1>
<p align="center"> <strong>Flash-Fabric Architecture</strong> — An autonomous MCP server for AI-powered software generation </p>
<p align="center"> <a href="#-features">Features</a> • <a href="#-quick-start">Quick Start</a> • <a href="#-configuration">Configuration</a> • <a href="#-tools">Tools</a> • <a href="#-architecture">Architecture</a> </p>
✨ 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 |
🚀 Quick Start
Prerequisites
- Python 3.10+
- Claude Code CLI
- 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 chromium
Environment Setup
# Copy the example env file
cp .env.example .env
# Edit with your API keys
nano .env
Required 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.json
Add 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
/mcp
You 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
<p align="center"> Made with 💎 by the Flash-Fabric Architecture </p>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。