by cmdaltctr
Lightweight MCP integration bringing Google's Gemini AI capabilities to Claude Code with 1M+ token context window, smart model selection, and powerful code analysis tools
# Add to your Claude Code skills
git clone https://github.com/cmdaltctr/claude-gemini-mcp-slimGuides for using mcp servers skills like claude-gemini-mcp-slim.
Last scanned: 5/30/2026
{
"issues": [
{
"type": "npm-audit",
"message": "ajv: ajv has ReDoS when using `$data` option",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "fast-uri: fast-uri vulnerable to path traversal via percent-encoded dot segments",
"severity": "high"
},
{
"type": "npm-audit",
"message": "js-yaml: js-yaml has prototype pollution in merge (<<)",
"severity": "medium"
}
],
"status": "WARNING",
"scannedAt": "2026-05-30T15:29:08.510Z",
"npmAuditRan": true,
"pipAuditRan": false
}claude-gemini-mcp-slim is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by cmdaltctr. Lightweight MCP integration bringing Google's Gemini AI capabilities to Claude Code with 1M+ token context window, smart model selection, and powerful code analysis tools. It has 233 GitHub stars.
claude-gemini-mcp-slim returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/cmdaltctr/claude-gemini-mcp-slim" and add it to your Claude Code skills directory (see the Installation section above).
claude-gemini-mcp-slim is primarily written in Python. It is open-source under cmdaltctr on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-gemini-mcp-slim against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
๐ What's Coming Next: I'm building an AI Agent Feedback Loop System that enables intelligent collaboration between Claude Code and Gemini AI. This will create a continuous improvement cycle where both AI agents learn from each other's suggestions, creating smarter code analysis and more contextual development assistance. Starting with Claude Code, then expanding to other IDEs. Stay tuned!
A lightweight integration that brings Google's Gemini AI capabilities to Claude Code through MCP (Model Context Protocol)
This project connects Claude Code (your coding assistant) with Google's Gemini AI models. Think of it as adding a second AI expert to your development team - one that can read and understand massive amounts of code at once (1M+ tokens, which is like reading hundreds of code files simultaneously).
With this integration, you can ask Gemini questions about your code, get security reviews, performance suggestions, and architectural advice - all without leaving your coding environment. It automatically chooses the right AI model for each task: fast responses for quick questions, deeper analysis for complex problems.
/g, /analyze, /securityClaude Code โโ MCP Server โโ Gemini CLI/API โโ Google Gemini Models
โ
Smart Model Selection
(Flash for speed, Pro for depth)
The Gemini MCP server uses a shared architecture where one installation serves multiple AI clients and projects:
Claude Desktop โ Claude Code โ Cursor IDE โ VS Code + Extensions
โ โ โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Protocol โ
โ (Tool Requests) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโ
โ Gemini MCP โ
โ Server โ
โ (Python/Shell) โ
โโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ
โ Gemini API โ โ Gemini CLI โ โ
โ (Direct HTTP) โ โ (Shell Command)โ โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Google Gemini AI โ
โ (1M+ Token Context) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
~/mcp-servers/ โ Central location for all MCP servers
โโโ shared-mcp-env/ โ Shared virtual environment
โ โโโ bin/python โ Python interpreter for all MCPs
โ โโโ lib/python3.x/site-packages/ โ Shared dependencies (mcp, google-generativeai, etc.)
โโโ gemini-mcp/ โ Complete Gemini MCP package
โโโ gemini_mcp_server.py โ Main MCP server
โโโ .claude/ โ Complete slash commands system
โโโ hooks.json โ Hook definitions
โโโ commands/ โ Native slash commands (10+ commands)
โ โโโ gemini.md โ /gemini command
โ โโโ analyze.md โ /analyze command
โ โโโ ... โ Other command definitions
โโโ scripts/
โโโ slim_gemini_hook.py โ Hook execution script
your-project/
โโโ .claude โ ~/mcp-servers/gemini-mcp/.claude โ Symlink to shared hooks
โโโ src/ โ Your project files
โโโ README.md
โโโ (no venv or MCP files needed!) โ Clean project structure
The shared MCP architecture supports multiple AI clients simultaneously:
Supported Clients:
Important: Hook functionality (.claude/hooks.json) is exclusive to Claude Code ecosystem (Claude Code standalone + VS Code with Claude Code extension). No other AI client currently supports this automation system.
New to this project? Here's what you need to do:
Installation time: ~5 minutes | Prerequisites: Python 3.10+, Node.js 16+
Use gemini_quick_query for:
- "How do I implement JWT authentication in Node.js?"
- "What's the difference between useEffect and useLayoutEffect?"
- "Best practices for error handling in Python async functions"
Use gemini_analyze_code for:
- Security review of authentication functions
- Performance analysis of database queries
- Architecture review before major refactoring
Use gemini_codebase_analysis for:
- Overall architecture assessment
- Security vulnerability scanning
- Performance bottleneck identification
The hooks system provides intelligent automation that runs at key development moments:
Pre-edit Analysis:
- Automatically analyzes files before Claude Code edits them
- Provides context about security, performance, and architecture concerns
- Helps prevent issues by informing Claude Code before changes are made
Pre-commit Review:
- Analyzes staged changes before git commits
- Reviews code for critical bugs, security vulnerabilities, and quality issues
- Provides final quality check before code enters version control
Session Summary:
- Generates brief recap when Claude Code session ends
- Highlights key changes made and potential next steps
- Maintains development context between sessions
The slash commands provide a much simpler way to access Gemini's powerful analysis without remembering the full MCP