Skip to main content
Glama

✨ 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

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-mcp with 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


F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

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