gemini-context-mcp-server

gemini-context-mcp-server

19

The Gemini Context MCP Server is an advanced Model Context Protocol server designed for efficient context management and caching using Gemini's extensive context capabilities. It supports large-scale sessions and context-based conversations, featuring semantic search and optimized caching for cost efficiency.

Gemini Context MCP Server

A powerful MCP (Model Context Protocol) server that utilizes Gemini's capabilities for context management and caching, maximizing the value of Gemini's 2M token context window.

🚀 Features

Context Management

  • Support for up to 2M token context window
  • Session-based conversations
  • Smart context tracking, retrieval, and search
  • Semantic search for relevant context
  • Automatic context cleanup

API Caching

  • Caching large prompts
  • Cost optimization through reduced token usage
  • TTL management and automatic cleanup

🏁 Quick Start

Prerequisites

  • Node.js 18+
  • Gemini API key

Installation

  1. Clone the repository.
  2. Install dependencies with npm.
  3. Copy environment variables and add your Gemini API key.

Usage

Build and start the server using npm scripts. Integrate with MCP-compatible clients like Claude Desktop, Cursor, or VS Code through provided configuration commands.

📚 Further Reading

  • For more detailed usage with MCP tools, see README-MCP.md.