Atlas / MCP servers / dedeveloper23 / Codebase

CodebaseBLOCK

mcp/dedeveloper23/codebase

Model Context Protocol implementation for retrieving codebases using RepoMix

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
3 2r · 1w · 0d
Transport
sse · stdio
License
MIT
Stars
84
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Model Context Protocol (MCP) server implementation that provides tools to retrieve and analyze entire codebases using RepoMix.

This MCP allows AI Agents like Cursor's Composer Agent to automatically read and understand entire codebases at once, making it easier for developers to work with large codebases and for AI assistants to have comprehensive context of a project.

Features

  • 📚 Codebase Retrieval: Retrieve the entire codebase as a single text output in different formats (XML, Markdown, Plain)
  • 🌐 Remote Repository Support: Process remote GitHub repositories directly
  • 💾 File Saving: Save the processed codebase to a file
  • 🔧 Customizable Options: Control how the codebase is processed with various options (comments, line numbers, file summaries, etc.)

Installation

From NPM (Recommended)

# Install the package globally
npm install -g codebase-mcp

# Install RepoMix (required dependency)
codebase-mcp install

From GitHub

# Clone the repository
git clone https://github.com/DeDeveloper23/codebase-mcp.git

# Navigate to the project directory
cd codebase-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Install globally
npm install -g .

# Install RepoMix (required dependency)
codebase-mcp install

Integration with Cursor

To use this MCP with Cursor's Composer Agent:

  1. Open Cursor IDE
  2. Click the Composer icon in the sidebar
  3. Click the "MCP Servers" button at the top
  4. Click "Add new MCP server"
  5. Fill in the details:
  6. Name: Codebase MCP (or any name you prefer)
  7. Type: command
  8. Command: codebase-mcp start
  9. Click "Add" to save

Once added, the MCP will provide three powerful tools to the Composer Agent:

Available Tools

  1. getCodebase
  2. Purpose: Analyzes your current workspace/project
  3. Use when: You want the AI to understand your entire codebase
  4. Example pro
Read from source at commit b5b7cda4980eOBSERVED · 2026-10-07
Advertisement
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add codebase-mcp -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "codebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (3)

2 read · 1 write · 0 destructive.

ToolRiskDescription
getCodebasereadRetrieve the entire codebase as a single text output using RepoMix
getRemoteCodebasereadRetrieve a remote repository
saveCodebasewriteSave the codebase to a file using RepoMix
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (3 observation(s))
Network
declared (5 observation(s))
Shell
declared (5 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (13)

HIGHPrivilege escalation / persistence · priv.escalate · CWE-269, CWE-250
src/client/stdio.ts:59
: /* list inspired by the default env inheritance of sudo */
Why it matters. asks for elevated privileges
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/server/auth/clients.ts:1
import { OAuthClientInformationFull } from "../../shared/auth.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/server/auth/errors.ts:1
import { OAuthErrorResponse } from "../../shared/auth.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/server/auth/handlers/authorize.test.ts:4
import { OAuthClientInformationFull, OAuthTokens } from '../../../shared/auth.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/server/auth/handlers/metadata.test.ts:2
import { OAuthMetadata } from '../../../shared/auth.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/server/auth/handlers/metadata.ts:2
import { OAuthMetadata } from "../../../shared/auth.js";
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/client/sse.test.ts:56
baseUrl = new URL(`http://127.0.0.1:${addr.port}`);
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/client/sse.test.ts:89
baseUrl = new URL(`http://127.0.0.1:${addr.port}`);
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/client/sse.test.ts:200
baseUrl = new URL(`http://127.0.0.1:${addr.port}`);
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/client/sse.test.ts:371
baseUrl = new URL(`http://127.0.0.1:${addr.port}`);
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/client/sse.test.ts:417
baseUrl = new URL(`http://127.0.0.1:${addr.port}`);
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, content-type, cors, eventsource, express, express-rate-limit, pkce-challenge, raw-body
Why it matters. 31 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOPrompt injection · scope.undeclared_system · CWE-94, CWE-1427
<declared scope>
system use found in code, not declared in the description
Why it matters. the description does not admit a capability the code has
Fix. declare system use in the description, or remove it

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha b5b7cda4980efull audit observations/trust-audit/mcp-server/dedeveloper23__codebase.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-07b5b7cda4980eBLOCKD69first audit
06

Questions

What is the Codebase MCP server?

Model Context Protocol implementation for retrieving codebases using RepoMix

What tools does Codebase expose?

3 in total: 2 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Codebase safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.

What credentials does Codebase need?

No credential environment variables were found in its source, so it appears to need none.

How does Codebase run?

It speaks sse and stdio, so it runs as a local process your client starts. It is published on npm as codebase-mcp at 1.0.0.

How current is this page?

The grade is for one exact copy of the source (b5b7cda4980e), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement