Gemini Context MCP Server
@ogoldberg
Gemini Context MCP Server について
MCP server for Cursor that leverages Gemini's much larger context window to enhance the capabilities of the AI tools
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"gemini-context-mcp-server": {
"command": "node",
"args": [
"dist/mcp-server.js"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Gemini Context MCP Server?
Gemini Context MCP Server is an MCP (Model Context Protocol) server that uses Gemini’s capabilities for context management and caching, supporting up to a 2M token context window. It enables session-based conversations, semantic search, and efficient reuse of large prompts to reduce costs.
How to use Gemini Context MCP Server?
Requires Node.js 18+, a Gemini API key, and cloning the repository. Install dependencies (npm install), copy .env.example to .env and add your key, then build (npm run build) and start (node dist/mcp-server.js). Quick client setup commands are available for Claude Desktop, Cursor, and VS Code (e.g., npm run install:claude). For custom usage, instantiate GeminiContextServer with optional configuration.
Key features of Gemini Context MCP Server
- Up to 2M token context window support
- Session-based conversations with state tracking
- Semantic search for relevant context
- Automatic context and cache expiration
- Large prompt caching for cost optimization
- TTL management for cached contexts
Use cases of Gemini Context MCP Server
- Maintain conversational context across multiple interactions in a session
- Improve response quality by reusing large system prompts via caching
- Reduce API token costs by caching frequently used contexts
- Find relevant past context using semantic similarity
FAQ from Gemini Context MCP Server
What are the runtime requirements?
Node.js 18+ and a Gemini API key are required.
How do I get a Gemini API key?
Obtain one from ai.google.dev.
Which MCP clients are supported?
It works with Claude Desktop, Cursor, and VS Code via MCP-compatible extensions.
What MCP tools are available?
Context tools include generate_text, get_context, clear_context, add_context, and search_context. Caching tools include create_cache, generate_with_cache, list_caches, update_cache_ttl, and delete_cache.
How is context stored and does it persist?
Context and caches are held in memory with automatic expiration; database persistence is a planned future improvement.
「AI とエージェント」の他のコンテンツ
Intervals.icu MCP Server
mvilanovaModel Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API.
MCP-NixOS - Because Your AI Assistant Shouldn't Hallucinate About Packages
utensilsMCP-NixOS - Model Context Protocol Server for NixOS resources
LinkedIn MCP Server
stickerdanielOpen-source MCP server for LinkedIn. Give Claude and any MCP-compatible AI agent access to profiles, companies, jobs, and messages.
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
1MCP - One MCP Server for All
1mcp-appA unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.
コメント