MCP server for Cursor that leverages Gemini's much larger context window to enhance the capabilities of the AI tools
Gemini Context MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP server for Cursor that leverages Gemini's much larger context window to enhance the capabilities of the AI tools.
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.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
Once Gemini Context is connected, these are the calls the assistant has available:
generate_text — Generate text with contextget_context — Get current context for a sessionclear_context — Clear session contextadd_context — Add specific context entriessearch_context — Find relevant context semanticallymcp_gemini_context_create_cache — Create a cache for large contextsmcp_gemini_context_generate_with_cache — Generate with cached contextmcp_gemini_context_list_caches — List all available cachesmcp_gemini_context_update_cache_ttl — Update cache TTLmcp_gemini_context_delete_cache — Delete a cachePrerequisites — The Prerequisites tool exposed by this serverInstallation — The Installation tool exposed by this serverYou will need one environment variable: GEMINI_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Gemini Context's toolset — generate_text, get_context, clear_context and 9 more — is a fair guide to whether it matches your workflow. It is maintained by ogoldberg; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| generate_text | Generate text with context |
| get_context | Get current context for a session |
| clear_context | Clear session context |
| add_context | Add specific context entries |
| search_context | Find relevant context semantically |
| mcp_gemini_context_create_cache | Create a cache for large contexts |
| mcp_gemini_context_generate_with_cache | Generate with cached context |
| mcp_gemini_context_list_caches | List all available caches |
| mcp_gemini_context_update_cache_ttl | Update cache TTL |
| mcp_gemini_context_delete_cache | Delete a cache |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Installation | The Installation tool exposed by this server. |
| Variable | Description | Required |
|---|---|---|
| GEMINI_API_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.