Back to MCP directory
publicPublicdnsLocal runtime

gemini-mcp-server

一个基于TypeScript的MCP服务器,集成Google Gemini Pro模型

article

README

🚀 gemini-mcp-server

这是一个基于TypeScript实现的模型上下文协议(MCP)服务器,它能够与Google的Gemini Pro模型集成,为相关应用提供支持。

🚀 快速开始

此服务器基于TypeScript实现,支持与Google的Gemini Pro模型集成,还可与Claude桌面应用程序集成使用。

✨ 主要特性

  • 基于TypeScript实现,具有良好的类型检查和代码可维护性。
  • 支持与Google的Gemini Pro模型集成,可借助强大的Gemini模型能力。
  • 能够与Claude桌面应用程序集成,拓展应用场景。

📦 安装指南

先决条件

  • Node.js 18或更高版本
  • Google Gemini API密钥
  • TypeScript
  • Claude桌面应用程序

安装步骤

  1. 克隆仓库:
git clone https://github.com/GeorgeJeffers/gemini-mcp-server.git
cd gemini-mcp-server
  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build

💻 使用示例

MCP工具 - generate_text

从服务端:gemini

与Claude桌面集成

要在此服务器中使用Claude桌面应用程序,可按以下步骤操作:

  1. 打开Claude桌面应用程序。
  2. 转到“设置” > “开发者”。
  3. 点击“编辑配置”。
  4. 添加以下配置:
{
  "name": "gemini",
  "command": "node",
  "args": ["dist/gemini_mcp_server.js"],
  "env": {
    "GEMINI_API_KEY": "your_api_key_here"
  },
  "cwd": "/path/to/mcp-gemini-server"
}

请替换以下内容:

  • /path/to/mcp-gemini-server:请替换成你实际克隆此仓库的绝对路径。
  • your_api_key_here:请替换成你的Google Gemini API密钥。

完成上述步骤后,该服务器将在Claude桌面应用程序的MCP服务器列表中可用。

📄 许可证

本项目采用MIT许可证。

👨‍💻 作者信息

GeorgeJeffers

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client