mcp-injector MCP Server

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.

Local serverstdio

What is the mcp-injector MCP Server?

mcp-injector is an MCP project maintained in the foldwork-dev/mcp-injector repository. The maintainer describes its purpose as “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…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /usr/local/bin/mcp-injector. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares MCP_WORKSPACE, FOLDWORK_DB_DSN. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_project_map
injector_retrieve
injector_search
injector_diagram
injector_regex_search
injector_write_file
injector_blast_radius
injector_git_context
injector_inspect_table
injector_clear_cache
injector_stats

How to install the mcp-injector MCP Server

{
  "mcpServers": {
    "mcp-injector": {
      "command": "/usr/local/bin/mcp-injector",
      "env": {
        "MCP_WORKSPACE": "/absolute/path/to/your/project",
        "FOLDWORK_DB_DSN": "postgres://user:pass@localhost:5432/dbname"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
MCP_WORKSPACEDeclared in the maintainer’s client configuration.Check documentation
FOLDWORK_DB_DSNDeclared in the maintainer’s client configuration.Check documentation