
mcp-injector
Local MCP server that gives IDE AI agents compressed, dependency-aware code context
mcp-injector is a freemium MCP server for ai models and llm tooling. It is available on CLI, VS Code, macOS, Linux and Windows.
- Pricing
- Freemium
- Platforms
- CLI, VS Code, macOS
- What it can do
- Can change data (1 tool)
- GitHub stars
- 5
- Last commit
Similar MCP servers
About mcp-injector
Foldwork indexes a repository once into a local SQLite catalog and serves compact structural views of it to AI assistants over MCP. Function bodies are folded so the assistant sees signatures, imports and call relationships instead of whole files, which keeps prompts small and focused.
The server exposes a set of tools for projecting a codebase map, searching symbols with full-text queries, tracing callers and callees, drawing Mermaid sequence diagrams, and retrieving full source on demand. Writes that contain folded placeholders are rejected so compressed output cannot overwrite real code. Secret-looking values are redacted locally before anything reaches the model.
It is aimed at developers working in Claude Code, Cursor or VS Code on larger repositories, where raw file dumps overflow context windows. Projects under 50,000 lines can use it free; larger workspaces need the paid tier.
Tools this server provides (11)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 11 tools changes data; 5 names don't say.
From the server's own tool labels and tool names; not verified by us.
- get_project_mapName suggests: reads
- Returns a compressed structural overview of the workspace with optional tier, unfolded files and path prefixes.
- injector_retrieveName suggests: reads
- Retrieves the full uncompressed source of a file, optionally a line range or with cross-file dependencies.
- injector_searchName suggests: reads
- BM25-ranked full-text symbol search over the local SQLite catalog.
- injector_diagram
- Generates a Mermaid sequence diagram for a symbol by traversing its outbound dependencies.
- injector_regex_searchName suggests: reads
- Exact literal or regex search against file contents.
- injector_write_fileName suggests: changes
- Writes a full file to disk while rejecting payloads that contain compressed fold markers.
- injector_blast_radius
- Analyzes the impact of changing a symbol by traversing inbound or outbound dependencies.
- injector_git_context
- Surfaces local Git history, authorship and code evolution into context.
- injector_inspect_tableName suggests: reads
- Introspects PostgreSQL and MySQL databases when a connection string is configured.
- injector_clear_cache
- Wipes the index cache and triggers a full re-index.
- injector_stats
- Returns index status, compression ratio, file count and cache hit rate.
What it does
- Folded code maps
- Compresses function bodies while keeping signatures and imports so assistants see the shape of a codebase.
- Symbol and dependency graphs
- Builds a symbol index and caller/callee graph from the repository using a single-pass parser.
- Local SQLite catalog
- Stores the index on the developer's machine and re-indexes only changed files.
- Mermaid sequence diagrams
- Generates architecture diagrams for a symbol by traversing its outbound dependencies.
- Hybrid regex search
- Falls back to literal and regex matching through git grep when full-text search is not enough.
- Secret redaction
- Detects keys, tokens and high-entropy strings and redacts their values before they leave the machine.
- Unsafe write rejection
- Blocks file writes that contain compressed placeholders so source code is not overwritten by mistake.
Good for
- Tracing an authentication or request flow across middleware and data layers in a large repository
- Checking the blast radius of a planned change before refactoring a shared module
- Generating a Mermaid diagram of a workflow for documentation or code review
- Reviewing a branch diff with recent commit context and author history
- Navigating a monorepo by scoping the code map to specific packages
Pricing
Freemium, from $12 a month
Free under 50,000 LOC; Pro $12/month or $99/year
Prices change. Check foldwork.dev before you buy.
mcp-injector FAQ
Is mcp-injector free to use?
Workspaces under 50,000 total source lines get all tools and features at no cost. Larger workspaces require the Pro plan.
Does my code leave my machine?
Indexing and serving run locally in a SQLite catalog, and the daemon does not make outbound network requests, including for license checks.
Which IDEs and languages are supported?
The installer configures Claude Desktop, Cursor, VS Code, Devin Desktop and Antigravity. Supported languages include Go, Python, TypeScript, JavaScript, Java, C++, C, C# and Rust.
Can mcp-injector connect to a database?
Database introspection currently supports PostgreSQL and MySQL and is enabled by setting a connection string environment variable.
What are the best alternatives to mcp-injector?
The closest alternatives to mcp-injector are synapse-mcp, mcp-code-indexer, Code Fundi MCP, mcp-context-condenser and Codeloupe MCP.
Where this comes from
- Description: written from the project's README and the project's website.


