GG

georgejeffers/gemini-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

12 stars 7 forks 质量 61 趋势 19MIT

A Model Context Protocol (MCP) server that integrates with Google's Gemini Pro model, can be used in Claude Desktop App.

概览

A TypeScript implementation of a Model Context Protocol (MCP) server that integrates with Google's Gemini Pro model. - Node.js 18 or higher - Google Gemini API key - TypeScript - Claude Desktop app To install Gemini MCP Server for Claude Desktop automatically via Smithery: 1. Open Claude Desktop 2. Go to Settings > Developer 3. Click "Edit Config" 4. Add the following configuration: 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.

README

gemini-mcp-server

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

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

在 GitHub 查看完整 README

安装

npx -y @smithery/cli install @georgejeffers/gemini-mcp-server --client claude
新手?先看 mcpskill.org 教程 →