gemini mcp server

Local 2025-08-31 23:18:55 0

A TypeScript server that integrates Google's Gemini Pro model with Claude Desktop through the Model Context Protocol, allowing Claude users to access Gemini's text generation capabilities.


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

  1. Clone the repository:

    git clone https://github.com/GeorgeJeffers/gemini-mcp-server.git
    cd gemini-mcp-server

  2. Install dependencies:

    npm install

  3. 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

[
  {
    "inputSchema": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "additionalProperties": false,
      "properties": {
        "maxOutputTokens": {
          "maximum": 8192,
          "minimum": 1,
          "type": "number"
        },
        "prompt": {
          "minLength": 1,
          "type": "string"
        },
        "stream": {
          "type": "boolean"
        },
        "temperature": {
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "topK": {
          "maximum": 40,
          "minimum": 1,
          "type": "number"
        },
        "topP": {
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "prompt"
      ],
      "type": "object"
    },
    "name": "generate_text"
  }
]