Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ€– Coding Agents
  3. MCP Injector
MCP Injector logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 12:17:40 PM

MCP Injector

User RatingsBe the first to rate and review this MCP server!
View Repository4 GitHub StarsTotal stargazers on GitHub for the source repository (4 stars).Visit Website
codebase-indexingast-compressionsqlitecoding-agentslocal

Local MCP server that pre-indexes codebases into SQLite catalogs and serves AST-compressed snapshots to reduce token usage.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet β€” we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself β€” its README, its docs, or a verified owner. We haven’t found those for foldwork-dev/mcp-injector, and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Directory Badge Claim listing AlternativesπŸ€– More in Coding Agents

Overview

This server pre-indexes your entire codebase into a local SQLite catalog using AST body folding to compress function bodies while preserving signatures. It serves precise, cache-friendly code snapshots to AI coding assistants, reducing token consumption and API costs significantly. It runs locally with zero configuration and is suitable for large codebases where minimizing token usage and improving context relevance are critical.

Use cases

β€’Pre-index large codebases for AI coding assistants
β€’Serve compressed code snapshots to reduce token usage
β€’Perform full-text symbol search over local code
β€’Retrieve uncompressed source files or file ranges
β€’Analyze code dependencies and generate sequence diagrams

Key features

β€’AST-based code compression with function body folding
β€’Local SQLite catalog for deterministic repository indexing
β€’Multiple tools including project map, search, retrieve, diagram, regex search
β€’Supports scoped queries by path prefixes and file patterns
β€’Integrates local Git context for branch and commit awareness
β€’Zero configuration single Go binary

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Injector.

Extracted Tool Capabilities
AST-based code compression with function body folding
Local SQLite catalog for deterministic repository indexing
Multiple tools including project map, search, retrieve, diagram, regex search
Supports scoped queries by path prefixes and file patterns
Integrates local Git context for branch and commit awareness
Zero configuration single Go binary

Documentation Overview

mcp-injector

AI coding assistants often fail because they retrieve the wrong context. On a large codebase, blindly dumping raw files into the prompt leads to hallucinations, slow responses, and high API costs.

Foldwork fixes this. It is a deterministic repository understanding engine that pre-indexes your entire codebase into a local SQLite catalog. It acts as the Context Layer for your IDE, serving exactly the functions the AI needsβ€”no more, no lessβ€”maximizing the first-try success rate and reducing token usage by 41-89%.

By combining AST body folding (which strips out function bodies while preserving signatures) with canonical determinism (which guarantees byte-identical outputs to maximize Anthropic's KV cache hits), Foldwork transforms massive enterprise monorepos into lightweight, cache-friendly payloads. This drastically reduces token consumption, cuts API costs by up to 90%, and eliminates context window overflow.

No cloud. No telemetry. Runs entirely on your machine.--

Real-World Codebase Context Benchmarks

Estimate the impact of AST code compression on large open-source repositories (calculated at $2.00 / million input tokens for Claude Sonnet 5):

RepositoryTotal FilesRaw Context TokensCompressed Context TokensToken ReductionCost Saved / Run
Django2,3595,554,607596,75289.3%$10.99
Tokio7891,597,813444,16472.2%$3.11
Gin99197,30047,71875.8%$0.39

Numbers are reproducible. Run the open-source benchmark tool on any public repository:
mcp-benchmark repository


What It Looks Like

Run mcp-benchmark on your own project to see your exact savings before installing anything:

text
mcp-benchmark ./your-project

════════════════════════════════════════════════════════════════════════════════
  mcp-injector Benchmark β€” context
  Tier 3 compression  |  $2.00/1M tokens  |  2026-07-15T12:00:00Z
════════════════════════════════════════════════════════════════════════════════

FILE                                          RAW TOKENS    COMPRESSED     SAVED   COST SAVED*
──────────────────────────────────────────────────────────────────────────────────────────
cmd/license-gen/main.go                            3,633           214       94%       $0.0072
main.go                                           17,555         1,917       89%       $0.0347
website/api/webhook.go                             2,682           295       89%       $0.0053
main_test.go                                       1,576           353       78%       $0.0031
──────────────────────────────────────────────────────────────────────────────────────────
TOTAL (4 files)                                   25,446         2,779     89.1%       $0.0503

  * Based on $2.00 / 1M input tokens

  πŸ’‘ Running this codebase through Claude 10Γ—/day costs $0.51/day raw.
     With mcp-injector:  $0.01/day.  You save $0.50/day ($15/month).

Tools

get_project_map

Returns a compressed structural overview of the workspace. Function bodies are folded and replaced with placeholders to reduce token usage.

  • tier (integer, optional): Compression tier to apply (default: 2).
  • unfolded_files (array of strings, optional): Workspace-relative paths or glob patterns for files to serve at full resolution (uncompressed).
  • path_prefixes (array of strings, optional): Scope the project map to specific microservices or packages, drastically reducing payload bloat.
  • git_context: always includes current branch, changed files, and recent commits in the response.
  • secrets_redacted: count of credentials automatically redacted before sending to Claude.

Example call:

config.json
{
  "tool": "get_project_map",
  "arguments": {
    "tier": 3,
    "unfolded_files": ["src/auth/handler.go", "**/*_test.go"],
    "path_prefixes": ["src/auth/"]
  }
}

injector_retrieve

Retrieves the full uncompressed source of a file from the local cache.

  • path (string, required): The workspace-relative path of the file to retrieve.
  • retrievalKey (string, optional): The SHA-256 retrieval key returned in a prior compressed payload.
  • start_line (integer, optional): 1-indexed start line for range retrieval.
  • end_line (integer, optional): 1-indexed end line for range retrieval.
  • expand_graph (boolean, optional): Resolves and appends cross-file dependencies (limited to 50 1st-degree dependencies).

injector_search

BM25-ranked full-text symbol search over the local SQLite catalog. Supports FTS5 boolean logic (e.g., user AND (auth OR login)).

  • query (string, required): FTS5 query string (bare terms, "phrase", prefix*).
  • limit (integer, optional): Maximum results (default: 20).
  • search_paths (array of strings, optional): Scope search to specific isolated directories.

injector_diagram

Generates a Mermaid sequence diagram for a given symbol by traversing its outbound dependencies (halts after 500 nodes).

  • symbol (string, required): The exact symbol name.
  • max_depth (integer, optional): Maximum traversal depth (default: 3).
  • include_primitives (boolean, optional): Include basic types (String, boolean) and framework boundaries.

injector_regex_search

Fallback for exact literal or regex searches against file contents. Bypasses FTS5 tokenization.

  • query (string, required): The string or regex pattern to search for.
  • is_regex (boolean, optional): Treats query as extended regex (-E).

injector_write_file

Write a full file to disk. CRITICAL: Prevents data loss by intercepting and rejecting payloads containing compressed fold markers.

injector_blast_radius

Analyzes the architectural impact of changing a symbol by traversing the dependency graph. Supports inbound and outbound directional traversal.

injector_git_context

Integrates with local Git history to surface commit context, authorship, and code evolution directly into the LLM context.

injector_inspect_table

Enables direct database introspection capabilities. Currently supports PostgreSQL and MySQL. CRITICAL: You must start the daemon with the FOLDWORK_DB_DSN environment variable set to your database connection string (e.g. postgres://user:pass@localhost:5432/dbname) to activate this tool.

injector_clear_cache

Wipes the SQLite index cache and triggers a clean cold-start full re-index.

injector_stats

Returns index status, current compression ratio, total files indexed, and cache hit rate.

injector_sync (Deprecated)

Read tools automatically wait for pending indexing implicitly. You never need to manually call this tool.


Quick Install

Install the daemon locally and configure your IDEs:

Terminal
curl -fsSL https://foldwork.dev/install | sh

Automatically configures Claude Desktop, Cursor IDE, VS Code, Devin Desktop, and Antigravity.


Getting Started

Step 1: Check if your project qualifies for the free tier

Run the benchmark CLI on your project to see your token savings and line count:

bash
mcp-benchmark ./your-project

If your project is under 50,000 lines, mcp-injector is completely free. The benchmark output shows your exact line count.

Step 2: Install the daemon

Terminal
curl -fsSL https://foldwork.dev/install | sh

The installer auto-detects Claude Desktop, Cursor, VS Code, Devin Desktop, and Antigravity and writes the MCP config automatically. You should see output like:

text
* mcp-injector v0.2.0 installed to /usr/local/bin/mcp-injector
* Claude Desktop configured
* Cursor configured
Restart your IDE and mcp-injector will be active.

Step 3: Restart your IDE

The MCP server starts automatically when your IDE launches. No separate daemon process to manage.

Step 4: Verify it is working

In Claude Code or Cursor, ask Claude:

"Use get_project_map to show me the structure of this project"

Claude will call the mcp-injector tool and return a compressed map of your entire codebase. If you see module names, entry points, and dependency information - it is working.

Step 5: Get the full source when needed

When Claude needs to see the complete implementation of a compressed function, it automatically calls injector_retrieve. You can also trigger this explicitly:

"Show me the full implementation of UserService.java"

Claude will fetch the uncompressed source from the local cache.

Editing Code: You MUST use the injector_write_file tool to edit code. If Claude tries to write back folded placeholders into your source code, the daemon will hard-reject the payload to protect you from data loss.

Step 6: Check your savings

bash
injector_stats

Or ask Claude directly: "Call injector_stats and tell me my current token savings."


Agent Use Cases & Advanced Usage

Now that your AI has deterministic tools to search, traverse, and retrieve code, you can ask it high-level architectural questions that usually fail on raw codebases:

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Coding Agents View all alternatives
  • Codegraphcontext logoCodegraphcontext

    An MCP server that indexes local code into a graph database to provide context to AI assistants with a graphical code visualizations for humans.

    πŸ€– Coding Agents3 views
    Compare vs Codegraphcontext β†’
  • Codex MCP Tool logoCodex MCP Tool

    MCP server that connects your IDE or AI assistant to Codex CLI for code analysis and editing with support for multiple models (gpt-5-codex, o3, codex-1)

    πŸ€– Coding Agents4 views
    Compare vs Codex MCP Tool β†’
  • Agent MCP logoAgent MCP

    A framework for creating multi-agent systems using MCP for coordinated AI collaboration, featuring task management, shared context, and RAG capabilities.

    πŸ€– Coding Agents4 views
    Compare vs Agent MCP β†’
  • Glm MCP logoGlm MCP

    Run GLM (Zhipu/Z.ai) as a real sub-agent inside Claude Code or GitHub Copilot. GLM gets its own agent loop (read/write/edit/run) on your repo β€” not a single LLM call β€” with peak-aware Opus-vs-GLM routing, diff/dry-run/git-revert oversight, and a usage ledger. 10x cheaper than Opus. Requires a Z.ai GLM Coding Plan key.

    πŸ€– Coding Agents6 views
    Compare vs Glm MCP β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
4
Stargazers on the source repository.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about MCP Injector

It compresses code by folding function bodies while preserving signatures, producing deterministic outputs that maximize cache hits and reduce token counts by 41-89%.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Injector AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/foldwork-dev-mcp-injector?style=directory)](https://allmcps.com/mcp/foldwork-dev-mcp-injector)
HTML Embed
<a href="https://allmcps.com/mcp/foldwork-dev-mcp-injector"><img src="https://allmcps.com/api/badge/foldwork-dev-mcp-injector?style=directory" alt="MCP Injector on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ€–Coding Agents
PricingFreemium
More technical detailsExpand β–Ύ
AuthNo auth required
ClientsClaude Desktop, Cursor, Windsurf
Last updatedAug 9, 2026
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars4
GitHub Star CountTotal stargazers on GitHub representing community popularity (4 stars).
43Quality signal: Fair Β· 43/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools20/30
Adoption & activity2/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ€– Coding Agents β†’Best MCP servers for Coding Agents β†’Alternatives to MCP Injector β†’Install in Claude DesktopInstall in CursorInstall in VS Code