返回 MCP 目录
public公开dns本地运行

双子座服务

一个TypeScript服务器,通过模型上下文协议将Google的Gemini Pro模型与Claude桌面端集成,使Claude用户能够访问Gemini的文字生成能力。

article

README

gemini-mcp-server

smithery badge

A TypeScript implementation of a Model Context Protocol (MCP) server that integrates with Google's Gemini Pro model.

Gemini Server MCP server

MCP Tools

generate_text

From server: gemini

Prerequisites

  • Node.js 18 or higher
  • Google Gemini API key
  • TypeScript
  • Claude Desktop app

Installation

Installing via Smithery

To install Gemini MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @georgejeffers/gemini-mcp-server --client claude

Manual Installation

  1. Clone the repository:
git clone https://github.com/GeorgeJeffers/gemini-mcp-server.git
cd gemini-mcp-server
  1. Install dependencies:
npm install
  1. Build:
npm run build

Claude Desktop Integration

To use this server with Claude Desktop:

  1. Open Claude Desktop
  2. Go to Settings > Developer
  3. Click "Edit Config"
  4. Add the following configuration:
{
  "name": "gemini",
  "command": "node",
  "args": ["dist/gemini_mcp_server.js"],
  "env": {
    "GEMINI_API_KEY": "your_api_key_here"
  },
  "cwd": "/path/to/mcp-gemini-server"
}

Replace:

  • /path/to/mcp-gemini-server with the absolute path to where you cloned this repository
  • your_api_key_here with your actual Google Gemini API key

The server will now be available in Claude Desktop's MCP server list.

License

MIT

Author

GeorgeJeffers

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端