cctx-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cctx-mcpshow symbol hierarchy for app.py"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Overview
CCTX-MCP — Code ConTeXt via Model Context Protocol. An MCP server that gives AI agents a structured view of source code without reading entire files.
Built for Claude, Cursor, OpenCode, and any MCP-compatible AI coding tool.
Related MCP server: token-pilot
Quick Start
uvx cctx-mcpAdd to your MCP client config:
{
"mcpServers": {
"cctx-mcp": {
"command": "uvx",
"args": ["cctx-mcp"]
}
}
}Tools
Code Analysis
Tool | Returns | Replaces | Savings |
| symbol hierarchy, deps, docs, line counts |
| ~87% |
| symbol locations by name or type |
| ~99% |
| all imports of a file in one shot |
| ~96% |
| every call site with file + line |
| ~90% |
| language breakdown, file counts, tree |
| ~98% |
| AI semantic descriptions per symbol | reading implementation | ~85% |
Git & Commits
Tool | Returns | Replaces | Savings |
| structured git diff with intent cues |
| ~75% |
| AI-generated conventional commit message | writing from scratch | ~90% |
| executes the commit after review |
| — |
Observability
get_config · get_health · get_version
Token Savings
Operation | Native | With CCTX-MCP | Savings |
Read 500-line file | ~1,500 tokens | ~200 tokens | 87% |
Find function across project | ~5,000 tokens | ~50 tokens | 99% |
Understand imports | ~800 tokens | ~30 tokens | 96% |
Analyze project structure | ~10,000 tokens | ~150 tokens | 98% |
Git change summary | ~3,000 tokens | ~750 tokens | 75% |
Typical session: 80%+ aggregate savings.
Supported Languages
Powered by tree-sitter AST — each language has a dedicated parser.
Install
uvx (recommended)
{
"mcpServers": {
"cctx-mcp": {
"command": "uvx",
"args": ["cctx-mcp"]
}
}
}pip
pip install cctx-mcp{
"mcpServers": {
"cctx-mcp": {
"command": "python",
"args": ["-m", "code_context.server"]
}
}
}source
git clone https://github.com/nikondrat/cctx-mcp.git
cd cctx-mcp
uv sync
uv run python -m code_context.server --skip-indexConfiguration
Variable | Default | Description |
|
| Ollama server address |
| — | Remote inference key |
|
|
|
|
| Local model for commit drafting |
|
| Local model for embeddings |
|
| Enable AI symbol summaries |
Development
uv sync
uv run pytest tests/ -vDebug Logging
Tool calls are logged to ~/.code-context-cache/debug.jsonl with args, result preview, latency, and status:
tail -f ~/.code-context-cache/debug.jsonlSet CC_DEBUG_LOG env var to change the log path.
PRs welcome. Open issues.
License
MIT — free for any use.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nikondrat/cctx-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server