Gemini Context MCP Server

MCP server for Cursor that leverages Gemini's much larger context window to enhance the capabilities of the AI tools

Local serverstdioTypeScript

What is the Gemini Context MCP Server?

MCP server for Cursor that leverages Gemini's much larger context window to enhance the capabilities of the AI tools

What you get

A powerful MCP (Model Context Protocol) server implementation that leverages Gemini's capabilities for context management and caching. This server maximizes the value of Gemini's 2M token context window while providing tools for efficient caching of large contexts.

Configuration and credentials

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generate_textGenerate text with context
get_contextGet current context for a session
clear_contextClear session context
add_contextAdd specific context entries
search_contextFind relevant context semantically
mcp_gemini_context_create_cacheCreate a cache for large contexts
mcp_gemini_context_generate_with_cacheGenerate with cached context
mcp_gemini_context_list_cachesList all available caches
mcp_gemini_context_update_cache_ttlUpdate cache TTL
mcp_gemini_context_delete_cacheDelete a cache

Configuration

VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Gemini Context to generate text.”
  • “Use Gemini Context to get context.”
  • “Use Gemini Context to clear context.”

Frequently asked questions

Node.js 18+ and a Gemini API key are required.