ogoldberg_gemini-context-mcp-server

ogoldberg_gemini-context-mcp-server

3.1

If you are the rightful owner of ogoldberg_gemini-context-mcp-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.

Gemini Context MCP Server is a powerful implementation leveraging Gemini's capabilities for context management and caching, maximizing the value of Gemini's 2M token context window.

The Gemini Context MCP Server is designed to efficiently manage and cache large contexts using Gemini's extensive capabilities. It supports a 2M token context window, allowing for session-based conversations and smart context tracking. The server also features semantic search and automatic context cleanup, ensuring that sessions and contexts expire automatically. Additionally, it offers API caching to optimize costs by reusing large system prompts and instructions, with TTL management and automatic cleanup of expired caches. This server is compatible with various MCP-compatible clients, making it versatile for different development environments.

Features

  • Context Management: Supports up to 2M token context window, session-based conversations, smart context tracking, semantic search, and automatic context cleanup.
  • API Caching: Efficiently reuses large system prompts, reduces token usage costs, manages TTL, and automatically cleans up expired caches.

Tools

  1. generate_text

    Generate text with context.

  2. get_context

    Get current context for a session.

  3. clear_context

    Clear session context.

  4. add_context

    Add specific context entries.

  5. search_context

    Find relevant context semantically.

  6. mcp_gemini_context_create_cache

    Create a cache for large contexts.

  7. mcp_gemini_context_generate_with_cache

    Generate with cached context.

  8. mcp_gemini_context_list_caches

    List all available caches.

  9. mcp_gemini_context_update_cache_ttl

    Update cache TTL.

  10. mcp_gemini_context_delete_cache

    Delete a cache.