# Engineering Corpus

> Engineering Corpus is an open-source MCP server for developer tools. Local MCP server and research agents that cite open-source code by commit and license. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, VS Code, Linux, macOS, Windows, Self-hosted
- **Website:** https://engineeringcorpus.com
- **Repository:** https://github.com/ymcbzrgn/engineering-corpus
- **MCP Registry name:** com.engineeringcorpus/engineering-corpus
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

Engineering Corpus indexes a set of public GitHub repositories you pick and lets a coding agent search them by meaning and by exact identifier. Each hit points to a file, its lines at a pinned commit, and the license class of that file, so the agent can show where an approach came from.

The package bundles twelve read-only tools and seven research agents, including one that writes a prior-art brief for a design question and ends it with a receipt for every source. The engine is MIT-licensed and runs on your machine, with embedding done on the CPU. Setup is a single uvx command for MCP clients such as Claude Code, Cursor and VS Code, and a Docker image is also provided.

It suits developers who want their coding agent to check design choices against real code rather than memory, and who need to know which code they may reuse. A hosted version is described as planned, with no date given.

## Features

- **Pinned-commit citations:** Every hit cites the repository, commit, file and line range so the reference stays valid over time.
- **License class per file:** Each file gets a permissive, copyleft, restricted or unknown class, and restricted files return only their location.
- **Hybrid code search:** Combines embedding similarity with keyword matching over identifier-split terms, one hit per file.
- **Research agents:** Seven read-only agents run fixed methods such as prior-art research, usage finding and test scouting.
- **Secret scanning before indexing:** Betterleaks scans each repo before embedding and masks any secret it finds.
- **Local operation:** Searches and reads send queries to no one; network use is limited to cloning, GitHub metadata and model downloads.

## Good for

- Checking how other open-source projects handle retries, rate limits or similar design problems before writing code
- Finding real call sites of a library or API with the versions and error handling they use
- Verifying where a pasted snippet came from and which license notice it requires
- Reviewing a diff against how indexed projects handle the same behavior
- Finding how independent projects test a given behavior

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add engineering-corpus -- uvx engineering-corpus
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add engineering-corpus -- uvx engineering-corpus
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.engineering-corpus]
command = "uvx"
args = ["engineering-corpus"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user engineering-corpus uvx -- engineering-corpus

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "engineering-corpus": {
      "command": "uvx",
      "args": [
        "engineering-corpus"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 12 tools read data; 9 names don't say. From the server's own tool labels and tool names; not verified by us.

- `corpus_search` (name suggests: reads): Code by meaning and exact identifier, one hit per file, with why it matched.
- `corpus_compare`: Up to five different approaches to one problem, grouped by imports and structure.
- `corpus_explore`: Options backed by at least two independent repos for one design question.
- `corpus_read` (name suggests: reads): Lines of a file at the indexed commit, only for files the secret scan saw.
- `corpus_grep`: Lines matching a regular expression in one repo.
- `corpus_symbols`: Definitions of a name in indexed repos.
- `corpus_references`: References to a name, inferred by matching.
- `corpus_context`: A definition with its callers, tests and docs.
- `corpus_package`: Repos that depend on a package, with versions from lockfiles.
- `corpus_usage`: Call sites of an API with their error path.
- `corpus_repos`: Indexed repos with commit, tag, archive flag and license verdict.
- `corpus_status` (name suggests: reads): Counts and status of the index.

## FAQ

### What does the MCP server expose?

Twelve read-only tools, including corpus_search, corpus_read, corpus_grep, corpus_symbols and corpus_package, over stdio or Streamable HTTP.

### Is the engine free to use?

The engine is MIT-licensed and runs on your machine. A hosted library is described as planned, with no date given.

### Are search queries sent anywhere?

A search or a read sends your query to nobody. Network use happens during cloning, GitHub metadata lookups and the first model download.

### Which clients are supported?

Any MCP client. The project documents Claude Code, Codex, Cursor, VS Code and Gemini CLI or Copilot via Agent Skills.

### How do I add Engineering Corpus to Claude Code?

Run this command in your terminal: claude mcp add engineering-corpus -- uvx engineering-corpus

### What are the best alternatives to Engineering Corpus?

The closest alternatives to Engineering Corpus are Codesearch, Octocode MCP - AI Context Platform, Codeix, karst and Cortex.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codesearch](https://ai-powered.com/mcp/codesearch): Codesearch is an open-source MCP server for web search and scraping.
- [Octocode MCP - AI Context Platform](https://ai-powered.com/mcp/octocode-mcp-ai-context-platform): Octocode MCP - AI Context Platform is an open-source MCP server for developer tools.
- [Codeix](https://ai-powered.com/mcp/codeix): Codeix is an open-source MCP server for developer tools.
- [karst](https://ai-powered.com/mcp/karst): karst is an open-source MCP server for developer tools.
- [Cortex](https://ai-powered.com/mcp/cortex): Cortex is an open-source MCP server for developer tools.
- [Sense](https://ai-powered.com/mcp/sense-2): Sense is an open-source MCP server for developer tools.
- [Codeintel](https://ai-powered.com/mcp/codeintel): Codeintel is an open-source MCP server for developer tools.
- [Reuse Before Generate](https://ai-powered.com/mcp/reuse-before-generate): Reuse Before Generate is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/engineering-corpus
