This MCP or multiple AI setup let claude code use Grok, Gemini and DeepSeek for reviewing and fixes
๐ Make Claude Code even smarter by connecting it to Google Gemini, Grok-3, ChatGPT, and DeepSeek!
โก You can use any combination - just the ones you have API keys for!
Instead of switching between different AI websites, now you can simply ask Claude Code to get help from other AIs. Just say things like:
"Hey Claude, ask all the AIs to help debug this code"
"Claude, get Grok's opinion on this architecture"
"Have Gemini and ChatGPT debate this technical decision"
๐ก You don't need all of them! Start with just Gemini (it's free), then add others if you want.
# 1. Download the code
git clone https://github.com/RaiAnsar/claude_code-multi-AI-MCP.git
cd claude_code-multi-AI-MCP
# 2. Run the automatic setup
chmod +x setup.sh
./setup.sh
# 3. That's it! Start using it right away
During setup, you'll be asked for API keys:
๐ก Pro tip: Start with just Gemini (it's free), then add others later if you want.
After setup, just ask Claude naturally:
"Hey Claude, ask Gemini what the capital of France is"
If you see a response from Gemini, you're all set! ๐
Once installed, you just talk to Claude Code normally and ask it to use the other AIs. Here are real examples:
You: "Hey Claude, ask all the AIs what they think about using microservices vs monolith architecture"
Claude: I'll ask all available AIs for their perspectives on this...
(Claude will use the
ask_all_ais
tool and show you all available AI responses)
You: "Claude, can you have Grok help debug this Python function that's running slowly?"
Claude: Let me ask Grok to analyze your code for performance issues...
(Claude will use the
grok_debug
tool)
You: "Have Gemini and ChatGPT debate whether to use React or Vue for my frontend"
Claude: I'll set up a debate between Gemini and ChatGPT on this topic...
(Claude will use the
ai_debate
tool)
You: "Can you ask all the AIs to review this authentication function for security issues?"
Claude: I'll have all available AIs review your code...
(Claude will use multiple code_review tools)
You: "Ask Grok to brainstorm some creative features for my todo app"
Claude: Let me get Grok's creative input on your todo app...
(Claude will use the
grok_brainstorm
tool)
You: "Claude, have Gemini help design the database schema for my e-commerce site"
Claude: I'll ask Gemini to provide architecture recommendations...
(Claude will use the
gemini_architecture
tool)
๐ The beauty is you don't need to remember any commands - just ask Claude naturally!
Edit ~/.claude-mcp-servers/multi-ai-collab/credentials.json
:
{
"gemini": {
"api_key": "your-gemini-key",
"model": "gemini-2.0-flash",
"enabled": true
},
"grok": {
"api_key": "your-grok-key",
"model": "grok-3",
"enabled": true
},
"openai": {
"api_key": "your-openai-key",
"model": "gpt-4o",
"enabled": true
}
}
๐ก Pro Tip: You can mix and match any combination:
Think of it like having a team of experts with different personalities:
๐ง Gemini (Google): The technical expert
๐ Grok (xAI): The creative problem solver
๐ฌ ChatGPT (OpenAI): The balanced advisor
๐ฎ DeepSeek: The reasoning specialist
Real Benefits:
Don't have all the API keys? No problem!
The server automatically adapts to your available AIs. Tools for unavailable AIs simply won't appear in Claude Code.
๐ฐ Cost-Effective Options:
~/.claude-mcp-servers/multi-ai-collab/credentials.json
.gitignore
file excludes all credential filesโ ๏ธ Important: Never share your credentials.json
file or commit it to version control!
MCP not showing up?
claude mcp list
# Should show "multi-ai-collab"
AI not responding?
mcp__multi-ai-collab__server_status
# Check which AIs are enabled and working
Connection errors?
credentials.json
Reinstall:
claude mcp remove multi-ai-collab
./setup.sh
~/.claude-mcp-servers/multi-ai-collab/
โโโ server.py # Main MCP server
โโโ credentials.json # API keys and configuration
โโโ requirements.txt # Python dependencies
# Creative writing with high temperature
mcp__multi-ai-collab__ask_gemini
prompt: "Write a creative story about AI collaboration"
temperature: 0.9
mcp__multi-ai-collab__ask_openai
prompt: "Write a creative story about AI collaboration"
temperature: 0.9
# Technical explanations with low temperature
mcp__multi-ai-collab__ask_grok
prompt: "Explain how TCP/IP works"
temperature: 0.2
# Gemini: Technical accuracy focus
mcp__multi-ai-collab__gemini_code_review
code: "[your code]"
focus: "technical accuracy"
# ChatGPT: Best practices focus
mcp__multi-ai-collab__openai_code_review
code: "[your code]"
focus: "best practices"
# Grok: Creative solutions focus
mcp__multi-ai-collab__grok_code_review
code: "[your code]"
focus: "alternative approaches"
# Step 1: Get all perspectives
mcp__multi-ai-collab__ask_all_ais
prompt: "How should I structure a microservices architecture?"
# Step 2: Have top AIs debate specifics
mcp__multi-ai-collab__ai_debate
topic: "Event-driven vs REST for microservices communication"
ai1: "gemini"
ai2: "openai"
# Step 3: Get Grok's creative alternative
mcp__multi-ai-collab__ask_grok
prompt: "What's a creative alternative to traditional microservices?"
This is designed to be simple and extensible. To add new AI providers:
credentials.json
server.py
MIT - Use freely!
๐ Enjoy having multiple AI assistants working together with Claude Code!
No configuration available
Related projects feature coming soon
Will recommend related projects based on sub-categories