bsmi021_mcp-gemini-server

bsmi021_mcp-gemini-server

3.1

If you are the rightful owner of bsmi021_mcp-gemini-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP Gemini Server is a dedicated MCP server that wraps the @google/genai SDK, exposing Google's Gemini model capabilities as standard MCP tools.

The MCP Gemini Server is designed to simplify the integration of Google's Gemini models by providing a consistent, tool-based interface managed via the MCP standard. It allows other LLMs or MCP-compatible systems to leverage Gemini's features as a backend workhorse. The server supports core text generation, function calling, stateful chat, file handling, and caching, making it a versatile tool for developers looking to integrate advanced AI capabilities into their applications. The server requires Node.js and an API Key from Google AI Studio, with specific features only available with Google AI Studio API keys.

Features

  • Core Generation: Standard and streaming text generation using Gemini models.
  • Function Calling: Allows Gemini models to request execution of client-defined functions.
  • Stateful Chat: Manages conversational context across multiple turns.
  • File Handling: Upload, list, retrieve, and delete files using the Gemini API.
  • Caching: Create, list, retrieve, update, and delete cached content to optimize prompts.

Tools

  1. gemini_generateContent

    Generates non-streaming text content from a prompt.

  2. gemini_generateContentStream

    Generates text content via streaming.

  3. gemini_functionCall

    Sends a prompt and function declarations to the model.

  4. gemini_startChat

    Initiates a new stateful chat session.

  5. gemini_sendMessage

    Sends a message within an existing chat session.

  6. gemini_sendFunctionResult

    Sends the result of a function execution back to a chat session.

  7. gemini_uploadFile

    Uploads a file from a local path.

  8. gemini_listFiles

    Lists previously uploaded files.

  9. gemini_getFile

    Retrieves metadata for a specific uploaded file.

  10. gemini_deleteFile

    Deletes an uploaded file.

  11. gemini_createCache

    Creates cached content for compatible models.

  12. gemini_listCaches

    Lists existing cached content.

  13. gemini_getCache

    Retrieves metadata for specific cached content.

  14. gemini_updateCache

    Updates metadata for cached content.

  15. gemini_deleteCache

    Deletes cached content.