context-killer-mcp
Enables Claude to offload code generation to Google's Gemini, saving tokens by writing files directly to disk without returning the content to the chat.
README
Context-Killer MCP
A little MCP server that keeps big code generation out of Claude's context window.
When Claude writes a large file, every line flows back through the conversation and eats tokens. This server hands the job to Google's Gemini instead: Gemini writes the file straight to disk, and Claude only gets back a one-line "done". The code never lands in the chat.
It's a single tool, delegate_to_gemini_and_save. You give it a prompt and a path;
it optionally reads a few files for context, asks Gemini for the code, and saves it.
Only use this for small taks or if you just want to try it out its not fully polished and claude doesnt see the results which is good for saving Tokens but it may lead to Errors since gemini api is not as good in coding and should only be used for small simple Tasks.
The tool
delegate_to_gemini_and_save(task_prompt, target_file_path, context_files=None)
task_prompt– what you want built, in plain wordstarget_file_path– where to save it (missing folders are created)context_files– optional list of files for Gemini to read first
Setup
You'll need Python 3.11+ and a free Gemini key from https://aistudio.google.com/app/apikey.
pip install -r requirements.txt
cp .env.example .env # then paste your key into .env
Use it in Claude Desktop
Add this to your claude_desktop_config.json:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"context-killer": {
"command": "python",
"args": ["C:\\path\\to\\context-killer-mcp\\server.py"],
"env": { "GEMINI_API_KEY": "your-key-here" }
}
}
}
Restart Claude, then just ask: "Use context-killer to write … and save it to …".
Good to know
- It writes (and overwrites) files on disk, so glance at what Claude's about to do before approving.
- Your prompt and any context files get sent to Gemini — don't point it at secrets.
.envis git-ignored. Never commit your real key.
License
MIT — see LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.