MCP Servers

External integrations and model context protocol servers

GemBoost MCP Servers Guide 🔌

Overview

MCP (Model Context Protocol) servers extend Gemini Cli's capabilities through specialized tools. GemBoost integrates 6 MCP servers and provides Gemini with instructions on when to activate them based on your tasks.

🔍 Reality Check

  • What MCP servers are: External Node.js processes that provide additional tools
  • What they aren't: Built-in GemBoost functionality
  • How activation works: Gemini reads instructions to use appropriate servers based on context
  • What they provide: Real tools that extend Gemini Cli's native capabilities

Core Servers:

context7: Official library documentation and patterns
sequential-thinking: Multi-step reasoning and analysis
magic: Modern UI component generation
playwright: Browser automation and E2E testing
morphllm-fast-apply: Pattern-based code transformations
serena: Semantic code understanding and project memory

Quick Start

Setup Verification: MCP servers activate automatically.

Auto-Activation Logic:

Request ContainsServers Activated
Library imports, API namescontext7
--think, debuggingsequential-thinking
component, UI, frontendmagic
test, e2e, browserplaywright
Multi-file edits, refactoringmorphllm-fast-apply
Large projects, sessionsserena

Server Details

context7 📚

Purpose: Official library documentation access

Triggers: Import statements, framework keywords, documentation requests

Requirements: Node.js 16+, no API key

# Automatic activation
/gb:implement "React authentication system"
# → Provides official React patterns

# Manual activation
/gb:analyze auth-system/ --c7

sequential-thinking 🧠

Purpose: Structured multi-step reasoning and systematic analysis

Triggers: Complex debugging, --think flags, architectural analysis

Requirements: Node.js 16+, no API key

# Automatic activation
/gb:troubleshoot "API performance issues"
# → Enables systematic root cause analysis

# Manual activation
/gb:analyze --think-hard architecture/

magic ✨

Purpose: Modern UI component generation from 21st.dev patterns

Triggers: UI requests, /ui commands, component development

Requirements: Node.js 16+, TWENTYFIRST_API_KEY

# Automatic activation
/gb:implement "responsive dashboard component"
# → Generates accessible UI with modern patterns

# API key setup
export TWENTYFIRST_API_KEY="your_key_here"

playwright 🎭

Purpose: Real browser automation and E2E testing

Triggers: Browser testing, E2E scenarios, visual validation

Requirements: Node.js 16+, no API key

# Automatic activation
/gb:test --type e2e "user login flow"
# → Enables browser automation testing

# Manual activation
/gb:validate "accessibility compliance" --play

morphllm-fast-apply 🔄

Purpose: Efficient pattern-based code transformations

Triggers: Multi-file edits, refactoring, framework migrations

Requirements: Node.js 16+, MORPH_API_KEY

# Automatic activation
/gb:improve legacy-codebase/ --focus maintainability
# → Applies consistent patterns across files

# API key setup
export MORPH_API_KEY="your_key_here"

serena 🧭

Purpose: Semantic code understanding with project memory

Triggers: Symbol operations, large codebases, session management

Requirements: Python 3.9+, uv package manager, no API key

# Automatic activation
/gb:load existing-project/
# → Builds project understanding and memory

# Manual activation
/gb:refactor "extract UserService" --serena

Configuration

MCP Configuration File (~/.gemini.json):

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp@latest"]
    },
    "sequential-thinking": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
    },
    "magic": {
      "command": "npx",
      "args": ["@21st-dev/magic"],
      "env": {"TWENTYFIRST_API_KEY": "${TWENTYFIRST_API_KEY}"}
    },
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    },
    "morphllm-fast-apply": {
      "command": "npx",
      "args": ["@morph-llm/morph-fast-apply"],
      "env": {"MORPH_API_KEY": "${MORPH_API_KEY}"}
    },
    "serena": {
      "command": "uv",
      "args": ["run", "serena", "start-mcp-server", "--context", "ide-assistant"],
      "cwd": "$HOME/.gemini/serena"
    }
  }
}

Usage Patterns

Server Control:

# Enable specific servers
/gb:analyze codebase/ --c7 --seq

# Disable all MCP servers
/gb:implement "simple function" --no-mcp

# Enable all servers
/gb:design "complex architecture" --all-mcp

Multi-Server Coordination:

# Full-stack development
/gb:implement "e-commerce checkout"
# → Sequential: workflow analysis
# → Context7: payment patterns
# → Magic: UI components
# → Serena: code organization
# → Playwright: E2E testing

Server Combinations

No API Keys (Free):

context7 + sequential-thinking + playwright + serena

1 API Key:

Add magic for professional UI development

2 API Keys:

Add morphllm-fast-apply for large-scale refactoring

Common Workflows:

  • Learning: context7 + sequential-thinking
  • Web Development: magic + context7 + playwright
  • Enterprise Refactoring: serena + morphllm + sequential-thinking
  • Complex Analysis: sequential-thinking + context7 + serena

Integration

With GemBoost Commands:

  • • Analysis commands automatically use Sequential + Serena
  • • Implementation commands use Magic + Context7
  • • Testing commands use Playwright + Sequential

With Behavioral Modes:

  • • Brainstorming Mode: Sequential for discovery
  • • Task Management: Serena for persistence
  • • Orchestration Mode: Optimal server selection

Performance Control:

  • • Automatic resource management based on system load
  • • Concurrency control: --concurrency N (1-15)
  • • Priority-based server selection under constraints