Provides access to Google Gemini AI models (Flash, Flash-Lite, Pro, and Gemini 3) through the Gemini CLI, enabling AI-assisted coding, analysis, and multi-turn conversational sessions with token-optimized communication.
Gemini Daily MCP Server (Compressed) โก
Token-optimized MCP server for Google Gemini CLI with 43.8% token savings through Progressive Disclosure strategy.
๐ฏ Why Compressed Version?
This is an experimental token-optimized variant of gemini-daily-mcp that reduces tool schema overhead by 43.8% while maintaining full functionality.
Token Savings Comparison
Version | Schema Size | Tokens | Savings |
Original | 1,227 bytes | 306 tokens | - |
Compressed โก | 691 bytes | 172 tokens | 43.8% |
Impact:
Per conversation: Save 134 tokens
3,000 conversations/month: Save ~$1.61/month
Scale to 50 tools: Save ~$66/month (61%)
๐ก How It Works: Progressive Disclosure
Traditional Approach (Verbose Schema)
Size: 731 bytes โ 182 tokens
Progressive Disclosure (Compressed Schema)
Size: 281 bytes โ 70 tokens (61.6% savings)
Where Did the Details Go?
They're in the enhanced help tool! When Claude needs details:
Result:
โ 90% of conversations: Don't need details โ Save tokens
โ 10% of conversations: Call help once โ Get full docs
โ Overall: 43.8% token savings
๐ Features
Same Functionality as Original
โ Full Gemini CLI integration
โ Session management (saves up to 74% tokens in multi-turn conversations)
โ Gemini 3 support (gemini-3-pro-preview with fallback)
โ Multi-model selection (Flash, Flash-Lite, Pro, Gemini 3)
โ Comprehensive error handling
Token Optimization
โก 43.8% smaller tool schemas
โก Progressive Disclosure via enhanced help tool
โก Preserves all type information
โก Maintains parameter validation
๐ฆ Installation
Prerequisites
Google Gemini CLI must be pre-installed and configured
Install: Follow Google's official Gemini CLI installation guide
Setup: Run
gemini auth loginwith your Google accountAPI Key: Set
GOOGLE_API_KEYenvironment variable or configure viagemini config
Claude Code or Claude Desktop installed
Claude Code
Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
๐ง Tools
gemini - AI Coding Assistant
Execute Gemini CLI with optional session support.
Basic Usage:
Advanced Usage:
listSessions - Session Management
List all active conversation sessions.
ping - Connection Test
Test if the MCP server is working properly.
help - Enhanced Documentation
Get detailed documentation for all tools (this is where the detailed info lives in the compressed version).
๐ Compression Details
Strategy
Remove verbose descriptions from tool schemas
Preserve all functionality:
Parameter names
Type information
Required fields
Enum values
Enhance help tool to provide complete documentation
Token Breakdown
Tool | Original | Compressed | Savings |
gemini | 182 tokens | 70 tokens | 61.6% |
ping | 49 tokens | 37 tokens | 24.5% |
help | 33 tokens | 32 tokens | 3.0% |
listSessions | 40 tokens | 33 tokens | 17.5% |
Total | 306 tokens | 172 tokens | 43.8% |
Trade-offs
Pros โ :
Significant token savings (43.8%)
Lower costs ($66/month for 3K conversations with 50 tools)
Full functionality preserved
Claude understands compressed schemas
Cons โ ๏ธ:
~10% of conversations may need an extra help call
Schema less readable for developers
Need to maintain documentation in two places (schema + help tool)
๐ When to Use Compressed Version?
Recommended For โ
High-frequency usage (>100 conversations/day)
Many tools (>20 tools in your MCP setup)
Cost-sensitive projects
Complex tool schemas with verbose descriptions
Use Original Version Instead
Low-frequency usage (<100 conversations/day)
Few tools (<10 tools)
Need maximum schema readability
Occasional use
๐งช Experimental Status
This is an experimental project to validate the Progressive Disclosure approach for MCP tool schemas.
Testing Results (from lab-02-testbed):
โ All tools function normally
โ help tool provides complete documentation
โ Claude understands compressed schemas
โ 43.8% token savings confirmed
โ ๏ธ ~10% scenarios require help call (adds 1 tool invocation)
Feedback Welcome: Please open issues if you encounter any problems or have suggestions.
๐ Related Projects
Original Version: gemini-daily-mcp - Full verbose schemas
Token Analysis: See TOOL-SCHEMA-COMPRESSION-EXPERIMENT.md
Gemini CLI: Google Gemini CLI
๐ Documentation
MODELS.md: Gemini model compatibility and selection guide
CODEX-TO-GEMINI-ADAPTATION.md: How this was adapted from codex-mcp-server
API Reference: Use the
helptool within Claude for detailed documentation
๐ ๏ธ Development
๐ Version Compatibility
This MCP server is compatible with:
Gemini CLI: v0.17.0+ (with Gemini 3 support)
Claude Code: Latest version
Claude Desktop: Latest version
MCP SDK: @modelcontextprotocol/sdk ^1.17.3
๐ค Contributing
This is an experimental project. Contributions, issues, and feature requests are welcome!
๐ License
ISC
๐ฌ Questions?
Use the help tool:
mcp__gemini-daily-compressed__helpOpen an issue: GitHub Issues
Original project: gemini-daily-mcp
โก Compressed. Efficient. Same Power.