What transport protocols does Kontxt MCP Server support?
It supports SSE (Server‑Sent Events, recommended) and stdio transport. Use `--transport sse` or `--transport stdio`.
@ReyNeill
基本信息
Codebase indexing MCP server
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"Kontxt": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
Kontxt MCP Server is a Model Context Protocol server that indexes a user-specified local code repository and provides the get_codebase_context tool for AI clients like Cursor or Claude Desktop. It uses Google Gemini (default: gemini-2.5-flash-preview-04-17) internally to analyze the codebase and generate contextual responses based on the user’s query.
Clone the repository, create a Python virtual environment, install dependencies from requirements.txt, and ensure the tree command is available on your system. Configure a Gemini API key in a .env file or via the --gemini-api-key argument. Run the server with python kontxt_server.py --repo-path /path/to/your/codebase. It starts in SSE mode on http://127.0.0.1:8080/sse by default; clients connect to this endpoint.
get_codebase_context tool for AI clients.It supports SSE (Server‑Sent Events, recommended) and stdio transport. Use `--transport sse` or `--transport stdio`.
Python 3, the `tree` command, and a Google Gemini API key. The server uses the `google/gemma-7b` tokenizer for token estimation (gated on Hugging Face; free access requires accepting terms).
By default only loopback origins are allowed. Use `--cors-origins` with a comma‑separated list of origins, or set the `KONTXT_CORS_ORIGINS` environment variable. Credentials are off unless `--cors-credentials` is set.
Press `Ctrl+C` in the terminal. The server attempts a graceful shutdown with a 3‑second timeout.
Yes. Use `--gemini-model NAME` to specify a different model (default: `models/gemini-2.5-flash-preview-04-17`) and `--token-threshold NUM` to set the token limit to 500000, 800000 (default), or 1000000.
🚀 The fast, Pythonic way to build MCP servers and clients.
不止于 CSS

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep
MCP Toolbox for Databases is an open source MCP server for databases.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
评论