ai-debate
Enables Claude Code to debate with Gemini on a given topic by managing conversation history and assigning personas, allowing users to watch AI agents argue.
README
Claude vs Gemini 토론봇
Claude Code랑 Gemini 둘이 한 주제로 티격태격하게 만드는 MCP 서버다. Claude가 진행도 하고 직접 한쪽 편도 들고, Gemini는 반대편 맡아서 받아친다. 근데 사실 Gemini는 자기가 토론하는 줄도 모름. 그냥 평범한 API 호출 받는 거라.
MCP 공부하려고 만든 거고, 덤으로 AI 둘 싸우는 거 구경하는 게 목적. <img width="1888" height="802" alt="image" src="https://github.com/user-attachments/assets/d9901af0-e852-44be-9d6d-1c59172610b1" /> <img width="1882" height="588" alt="image" src="https://github.com/user-attachments/assets/c9af2b50-ccfd-4866-a25f-08994691e074" />
돌아가는 구조
대충 이런 흐름이다.
Claude Code ──(툴 호출)──> 이 서버 ──(google API)──> Gemini
^ │
└────────────────── 답변 받아서 다시 반박 <──────────┘
왼쪽(Claude↔서버)만 MCP고, 오른쪽(서버↔Gemini)은 그냥 HTTPS다. 끝.
깔기
cd 프로젝트경로
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
Gemini API 키 하나 필요하다. 무료 티어로 충분하고, GEMINI_API_KEY 환경변수에 넣으면 됨.
모델 바꾸고 싶으면 GEMINI_MODEL(기본 gemini-2.5-flash).
일단 잘 되나 확인
Gemini 연결부터:
$env:GEMINI_API_KEY="네_키"
venv\Scripts\python.exe test_gemini.py
뭐라도 답 오면 된 거다.
서버 자체 확인은:
mcp dev debate_server.py
웹 UI 뜨면 debate_with_gemini에 아무 말이나 넣고 호출해본다.
Claude Code에 붙이기
.mcp.json.example 복사해서 .mcp.json 만들고 경로/키 채우면 된다.
venv 쓰면 command는 꼭 venv 안 python 절대경로여야 함.
{
"mcpServers": {
"ai-debate": {
"command": "~\\python.exe",
"args": ["~\\debate_server.py"],
"env": {
"GEMINI_API_KEY": "네_키",
"GEMINI_MODEL": "gemini-2.5-flash"
}
}
}
}
프로젝트 열면 Claude Code가 "이 서버 연결할래?" 물어본다. 승인하면 됨.
/mcp로 연결됐는지 보면 된다.
툴 세 개
debate_with_gemini(message, conversation_id, persona)— 메인. Gemini한테 한마디 던지고 반박 받는다.conversation_id: 같은 토론이면 같은 값 써야 맥락 이어짐. 바꾸면 처음부터 다시.persona: Gemini한테 입장 깔아주는 거. 첫 호출에만 먹힌다. (예: "넌 사형제도 찬성 입장이야")
reset_debate(conversation_id)— 그 토론 기록 날림.list_debates()— 지금 살아있는 토론 목록. 디버깅용.
어떻게 시키냐면
Claude Code한테 그냥 이렇게 말하면 된다:
ai-debate 툴로 "사형제도 폐지 vs 존치" 토론하자. Gemini한테 존치 입장 주고 너는 폐지 맡아. conversation_id는 "death-penalty"로 고정하고 4라운드 한 다음에 양쪽 논거 요약해줘.
돈 안 나가게
- Claude Code는 구독 계정으로. (
ANTHROPIC_API_KEY깔려있으면 API로 붙어서 돈 나간다. 없는지 확인) - Gemini는 무료 티어 키.
- 무한 루프 돌리지 말 것. 라운드 수 정해놓고 하자. 안 그럼 둘이 밤새 싸운다.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.