Open source

Context-Squeeze

An MCP server that gives AI agents a compact symbol map of a codebase

BetaRustMIT

About

Context-Squeeze is a small MCP server that helps AI agents navigate a codebase. Instead of reading whole files, the agent first asks for a compact map of class, struct, interface and function signatures and then fetches the body of only the symbol it needs. Python, TypeScript/JavaScript, Rust and Go are supported. Symbols are extracted with regular expressions, so some symbols are missing from the map. The project is in beta and is installed from source.

Features

  • get_repo_map: a signature-only map that respects .gitignore
  • get_code_item: returns the full body of a single symbol
  • search_code: case-insensitive search over symbol names and signatures
  • Python, TypeScript/JavaScript, Rust and Go files
  • Speaks MCP (JSON-RPC) over stdio

Requirements

A recent stable Rust toolchain to build from source (verified with 1.96); an MCP client such as Claude Desktop or Cursor

Install

cargo install --git https://github.com/Ankara-Software/context-squeeze

Usage

claude_desktop_config.json

{ "mcpServers": { "context-squeeze": { "command": "context-squeeze" } } }

Cursor: add an MCP server of type stdio with command context-squeeze

GitHub repository
https://github.com/Ankara-Software/context-squeeze
Report an issue
https://github.com/Ankara-Software/context-squeeze/issues
Security policy
SECURITY.md
License file
LICENSE (MIT)
Last update

Want to contribute?

Bug reports and pull requests are handled on GitHub.