
choplin/mcp-gemini-cli
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
choplin/mcp-gemini-cli는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요
choplin/mcp-gemini-cli는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
Google Gemini CLI를 위한 간단한 MCP 서버 래퍼로, AI 어시스턴트가 모델 컨텍스트 프로토콜을 통해 Gemini의 기능을 사용할 수 있도록 합니다.
그것이 하는 일들
이 서버는 Gemini CLI와 상호작용하는 세 가지 도구를 제공합니다:
googleSearch: Gemini에게 당신의 쿼리를 사용해 구글 검색을 요청합니다chat: 일반 대화를 위해 제미니에게 직접 프롬프트를 보냅니다analyzeFile: Gemini의 멀티모달 기능을 사용하여 파일(이미지, PDF, 텍스트)을 분석합니다
선수 조건
- Gemini CLI 설치 및 구성 (–allow-npx 플래그 선택 사항)
🚀 클로드 코드와 함께 빠른 시작
1. MCP 서버 추가로
또는 아래 설치 옵션 섹션에 표시된 설정으로 MCP 클라이언트를 구성할 수도 있습니다.
2. 한번 시도해 보세요
예시 프롬프트:
- 검색: “구글을 사용해 최신 TypeScript 5.0 기능을 검색하기”
- 채팅: “Gemini에게 자바스크립트에서 async/wait와 promises의 차이를 설명해 달라고 요청하세요”
- 파일 분석: “Gemini에게 /path/to/screenshot.png의 이미지를 분석해 달라고 요청하세요”
🔧 설치 옵션
-allow-npx 플래그가 포함된 npx 사용
지역 개발
-
복제 및 설치:
-
Claude 데스크탑 설정에 추가하기:
🛠️ 사용 가능한 도구
1. 구글 검색
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Gemini CLI
A simple MCP server wrapper for Google’s Gemini CLI that enables AI assistants to use Gemini’s capabilities through the Model Context Protocol.
What it does
This server exposes three tools that interact with Gemini CLI:
googleSearch: Asks Gemini to perform a Google search using your querychat: Sends prompts directly to Gemini for general conversationsanalyzeFile: Analyzes files (images, PDFs, text) using Gemini’s multimodal capabilities
Prerequisites
- Gemini CLI installed and configured (optional with --allow-npx flag)
🚀 Quick Start with Claude Code
1. Add the MCP server
claude mcp add -s project gemini-cli -- npx mcp-gemini-cli --allow-npx
Or configure your MCP client with the settings shown in the Installation Options section below.
2. Try it out
Example prompts:
- Search: “Search for the latest TypeScript 5.0 features using Google”
- Chat: “Ask Gemini to explain the difference between async/await and promises in JavaScript”
- File Analysis: “Ask Gemini to analyze the image at /path/to/screenshot.png”
🔧 Installation Options
Using npx with --allow-npx flag
{
"mcpServers": {
"mcp-gemini-cli": {
"command": "npx",
"args": ["mcp-gemini-cli", "--allow-npx"]
}
}
}
Local Development
- Clone and install:
git clone https://github.com/choplin/mcp-gemini-cli
cd mcp-gemini-cli
bun install
- Add to Claude Desktop config:
{
"mcpServers": {
"mcp-gemini-cli": {
"command": "bun",
"args": ["run", "/path/to/mcp-gemini-cli/index.ts"]
}
}
}
🛠️ Available Tools
1. googleSearch
Performs a Google search using Gemini CLI.
Parameters:
query(required): The search querylimit(optional): Maximum number of resultssandbox(optional): Run in sandbox modeyolo(optional): Skip confirmationsmodel(optional): Gemini model to use (default: “gemini-2.5-pro”)
2. chat
Have a conversation with Gemini.
Parameters:
prompt(required): The conversation promptsandbox(optional): Run in sandbox modeyolo(optional): Skip confirmationsmodel(optional): Gemini model to use (default: “gemini-2.5-pro”)
3. analyzeFile
Analyze files using Gemini’s multimodal capabilities.
Supported file types:
- Images: PNG, JPG, JPEG, GIF, WEBP, SVG, BMP
- Text: TXT, MD, TEXT
- Documents: PDF
Parameters:
filePath(required): The absolute path to the file to analyzeprompt(optional): Additional instructions for analyzing the filesandbox(optional): Run in sandbox modeyolo(optional): Skip confirmationsmodel(optional): Gemini model to use (default: “gemini-2.5-pro”)
💡 Example Prompts
Try these prompts to see mcp-gemini-cli in action:
- Search: “Search for the latest TypeScript 5.0 features using Google”
설치
npx mcp-gemini-cli --allow-npx설정
{
"mcpServers": {
"mcp-gemini-cli": {
"command": "npx",
"args": ["mcp-gemini-cli", "--allow-npx"]
}
}
}