BM

bsmi021/mcp-gemini-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

36 stars 15 forks 품질 71 트렌드 0MIT

bsmi021/mcp-gemini-server는 MCP 서버 후보가 https://github.com/bsmi021/mcp-gemini-server.에서 수입되었습니다

개요

bsmi021/mcp-gemini-server는 MCP 서버 후보가 https://github.com/bsmi021/mcp-gemini-server.에서 수입되었습니다

개요(AI 번역)

내용 표

  • 개요
  • 파일 업로드 vs URL 기반 분석
  • 특징
  • 필수
  • 설치 및 설치
  • 구성
  • 사용 가능한 도구
  • 사용 예제
  • 지원되는 멀티미디어 분석 사용 사례
  • MCP Gemini Server 및 Gemini SDK의 MCP 기능 호출
  • 환경변수
  • 보안 고려
  • 오류 처리
  • 개발 및 테스트
  • 기여
  • Code Review 도구
  • 서버 기능
  • 알려진 문제

개요

이 프로젝트는 @google/genai SDK (v0.10.0)를 감싸는 전용 MCP(모델 Context Protocol) 서버를 제공합니다. 그것은 표준 MCP 도구로 Google의 Gemini 모델 기능을 노출, 다른 LLM을 허용 (클래드와 같은) 또는 MCP 호환 시스템 Gemini의 기능을 백엔드 workhorse로 활용.

이 서버는 MCP 표준을 통해 일관된 도구 기반 인터페이스를 제공함으로써 Gemini 모델과 통합을 단순화하는 것을 목표로합니다. gemini-1.5-pro-latest, gemini-1.5-flash], gemini-2.5-pro]] 모델을 포함한 최신 Gemini 모델을 지원합니다.

** 중요 사항 : ** 이 서버는 직접 파일 업로드를 지원하지 않습니다. 대신, 이미지 및 동영상의 URL 기반 멀티미디어 분석에 초점을 맞추고 있습니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Gemini Server

Table of Contents

Overview

This project provides a dedicated MCP (Model Context Protocol) server that wraps the @google/genai SDK (v0.10.0). It exposes Google’s Gemini model capabilities as standard MCP tools, allowing other LLMs (like Claude) or MCP-compatible systems to leverage Gemini’s features as a backend workhorse.

This server aims to simplify integration with Gemini models by providing a consistent, tool-based interface managed via the MCP standard. It supports the latest Gemini models including gemini-1.5-pro-latest, gemini-1.5-flash, and gemini-2.5-pro models.

Important Note: This server does not support direct file uploads. Instead, it focuses on URL-based multimedia analysis for images and videos. For text-based content processing, use the standard content generation tools.

File Uploads vs URL-Based Analysis

❌ Not Supported: Direct File Uploads

This MCP Gemini Server does not support the following file upload operations:

  • Local file uploads: Cannot upload files from your local filesystem to Gemini
  • Base64 encoded files: Cannot process base64-encoded image or video data
  • Binary file data: Cannot handle raw file bytes or binary data
  • File references: Cannot process file IDs or references from uploaded content
  • Audio file uploads: Cannot upload and transcribe audio files directly

Why File Uploads Are Not Supported:

  • Simplified architecture focused on URL-based processing
  • Enhanced security by avoiding file handling complexities
  • Reduced storage and bandwidth requirements
  • Streamlined codebase maintenance

✅ Fully Supported: URL-Based Multimedia Analysis

This server fully supports analyzing multimedia content from publicly accessible URLs:

Image Analysis from URLs:

  • Public image URLs: Analyze images hosted on any publicly accessible web server
  • Supported formats: PNG, JPEG, WebP, HEIC, HEIF via direct URL access
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "gemini-server": { // Or your preferred name "command": "node", "args": ["/path/to/mcp-gemini-server/dist/server.js"], // Absolute path to the compiled server entry point "env": { "GOOGLE_GEMINI_API_KEY": "YOUR_API_KEY", "MCP_SERVER_HOST": "localhost", // Required: Server host "MCP_SERVER_PORT": "8080", // Required: Server port "MCP_CONNECTION_TOKEN": "YOUR_GENERATED_CONNECTION_TOKEN", // Required: Use the token from step 4 "GOOGLE_GEMINI_MODEL": "gemini-1.5-flash", // Optional: Set a default model // Optional security configurations removed - file operations no longer supported "ALLOWED_OUTPUT_PATHS": "/var/opt/mcp-gemini-server/outputs,/tmp/mcp-gemini-outputs" // Optional: Comma-separated list of allowed output directories for mcpCallServerTool and writeToFileTool }, "disabled": false, "autoApprove": [] } // ... other servers } }