GeminiMcpServer
Generate image via Google Gemini API for LM Studio.
claude mcp add --transport stdio bowwowxx-geminimcpserver npm run start
How to use
GeminiMcpServer is an MCP server that bridges LM Studio (and other MCP-compatible clients) with Google Gemini API for image generation and multimodal tasks. It exposes MCP-compatible endpoints so clients can request image generation and other multimodal operations, with the actual computation performed via Google's Gemini API in the cloud while local tooling can be used for orchestration. The server supports optional multimodal input (text and image) and can leverage Gemini 2 for image generation on demand. To use it, start the server and connect an MCP client (like LM Studio) to the GeminiMcpServer instance; clients can issue requests such as generateImage with prompts and output formats, and the server will route those requests to Gemini.
How to install
Prerequisites:
- Node.js v20 or newer
- Git
- Access to Google Gemini API (API key)
Installation steps:
- Clone the repository git clone git@github.com:bowwowxx/GeminiMcpServer.git
- Navigate into the project cd GeminiMcpServer
- Install dependencies npm install
- Create Google API key
- Go to Google AI Studio (or Makersuite API key page) and generate a new API key
- Configure environment variables
- Create a .env file in the project root and add: GEMINI_API_KEY="your_api_key_here"
- Start the server
- Use the npm script defined in package.json (see below) or the command: npm start
Additional notes
Notes and tips:
- Ensure GEMINI_API_KEY is set in the environment (via .env or your shell) before starting the server.
- The MCP client (e.g., LM Studio) should be configured to connect to the GeminiMcpServer as shown in the LM Studio settings example.
- If you need to test the Gemini 2 image generation endpoint locally, you can run test scripts like npx tsx testapi.js (if available) to exercise the MCP endpoints.
- Be aware of network latency when using cloud-based Gemini API; configure timeouts in your MCP client if needed.
- You can adapt the npm start script in package.json if you rename or relocate the server entry point.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.