Gemini MCP Server

平台与服务

by Vijay-2005

通过标准化协议,让语言模型无缝连接外部数据源与工具,动态访问文件、API 和自定义操作,从而增强 AI 能力并简化智能应用开发。

什么是 Gemini MCP Server

通过标准化协议,让语言模型无缝连接外部数据源与工具,动态访问文件、API 和自定义操作,从而增强 AI 能力并简化智能应用开发。

README

MseeP.ai Security Assessment Badge

MCP Gemini Server

This MCP server allows you to access Google's Gemini API directly from Claude Desktop.

Features

  • Call the Gemini API with customizable parameters
  • Ask Claude and Gemini to talk to each other in a long running discussion!
  • Configure model versions, temperature, and other parameters
  • Access to various Gemini models (gemini-pro, gemini-1.5-pro, gemini-1.5-flash, etc.)
  • Conversation history management for context-aware responses
  • Use your own Google AI Studio API key

Setup Instructions

Installing via Smithery

To install Gemini Server for Claude Desktop via Smithery:

bash
# Install dependencies
npm install

# Deploy to Smithery
npm run deploy

After deployment, you should be able to access your MCP server at:

code
https://smithery.ai/server/@YOUR_USERNAME/gemini_mcp/mcp/manifest

Prerequisites

Installation for Local Development

  1. Clone this repository:

    bash
    git clone https://github.com/your-username/gemini_mcp.git
    cd gemini_mcp
    
  2. Install dependencies:

    bash
    npm install
    
  3. Set your Gemini API key in the Smithery dashboard or through the config file.

  4. Deploy to Smithery:

    bash
    npm run deploy
    

Using with Claude Desktop

  1. Configure Claude Desktop to use this MCP server by following the instructions at: MCP Quickstart Guide

  2. Add the following configuration to your Claude Desktop settings:

  3. Restart Claude Desktop.

  4. You can now use the Gemini API through Claude by asking questions that mention Gemini.

Available Tools

The MCP server provides the following tools:

  1. ask_gemini(prompt, model, temperature, max_output_tokens, conversation_id) - Send a prompt to Gemini and get a response

  2. ask_gemini_with_web_search(prompt, model, temperature, max_output_tokens, conversation_id) - Send a prompt to Gemini with enhanced search instructions

Example Usage

Basic Gemini usage:

Tell Claude to ask Gemini a question!

code
Use the ask_gemini tool to answer: What is the best way to learn Python?

Tell Claude to have a conversation with Gemini:

code
Use the ask_gemini tool to have a two way conversation between you and Gemini about the topic that is most important to you.

Note how the conversation_id allows maintaining conversation history for context-aware responses across multiple interactions.

With search capability:

For questions that may benefit from comprehensive information:

code
Use the ask_gemini_with_web_search tool to answer: What are the latest developments in quantum computing?

Try search-enhanced responses for planning:

code
Use the ask_gemini_with_web_search tool to find information about weather patterns and based on that, keep using the tool to build up a great day out for someone who loves food and parks

How It Works

This tool utilizes Google's Gemini API with conversation state management. This approach:

  1. Maintains conversation history locally for context tracking
  2. Provides access to various Gemini models (pro, flash, vision, etc.)
  3. Improves the user experience by maintaining context across messages
  4. Allows enhanced responses with search-oriented prompting

License

MIT License

常见问题

Gemini MCP Server 是什么?

通过标准化协议,让语言模型无缝连接外部数据源与工具,动态访问文件、API 和自定义操作,从而增强 AI 能力并简化智能应用开发。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描123.0k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描123.0k

邮件模板

by alirezarezvani

Universal
热门

快速搭建生产可用的事务邮件系统:生成 React Email/MJML 模板,接入 Resend、Postmark、SendGrid 或 AWS SES,并支持本地预览、i18n、暗色模式、反垃圾优化与追踪埋点。

面向营销与服务场景,快速搭建高质量邮件模板,省去反复设计与切图成本,成熟度和社区认可都很高。

平台与服务
未扫描12.5k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
84.2k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
38.1k

评论