Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Code Graph RAG MCP server

by er77/code-graph-rag-mcpMIT licenceAudited 7 Oct 2026 · source ade3c7351bbd

npm @er77/code-graph-rag-mcp 2.7.18stdio★ 122
!CAUTIONGrade B · 83/100 · 7 Oct 2026 · ade3c73
122GitHub stars

Is it safe? With care — CAUTION, grade B (83/100). It exposes 27 tools: 24 read, 0 write and 3 destructive. The audit recorded 11 findings (0 critical, 0 high, 3 medium, 8 low).

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Code Graph RAG MCP server (er77/code-graph-rag-mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/er77/code-graph-rag

2 MCP servers are called Code-Graph-RAG. You are viewing er77/code-graph-rag-mcp. Compare all 2 →

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score83/100!CAUTION B
0 critical0 high3 medium8 low0 info

11 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared5 observations
  • NetworkDeclared6 observations
  • ShellDeclared3 observations
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityWARN 1 finding
L1 Static sourceSecrets, path traversal, supply chainWARN 9 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner er77User accountAccount type recorded when we read the repository.
  • PackagePublished on npm@er77/code-graph-rag-mcp at version 2.7.18
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last pushArchivedThe repository is archived: it will not be updated.
  • Source commit readade3c7351bbdThe audit covers exactly this commit, read on 7 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory27 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (11)

Sorted by severity

MEDIUMInventory / provenanceinv.binary · data/query_cache.db
F-13 Inventory / provenanceCWE-1104Layer L0
query_cache.db
Why
a compiled or binary member cannot be reviewed from source
Fix
ship source, or explain the binary in the README
MEDIUMNetwork egressnet.raw_ip · src/semantic/providers/ollama-provider.ts:28
F-04 Network egressCWE-200 · CWE-319Layer L1
this.baseUrl = opts.baseUrl ?? "http://127.0.0.1:11434";
Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
clean_index, clear_bus_topic, reset_graph
Why
3 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInsecure cryptocrypto.weak_hash · src/parsers/tree-sitter-parser.ts:257
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
const internalHash = createHash("sha1").update(content).digest("hex");
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · src/vendor/jscpd/tokenizer/tokens-map.ts:8
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
createHash("md5").update(value).digest("hex").substring(0, TOKEN_HASH_LENGTH);
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/semantic/__tests__/provider-mapping.test.ts:9
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { getConfig } from "../../config/yaml-config.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/semantic/providers/factory.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
} from "../../types/semantic.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/semantic/providers/factory.ts:7
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { logger as appLogger } from "../../utils/logger.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/semantic/providers/factory.ts:8
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { makeProviderLogger } from "../../utils/provider-logger.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/storage/sqlite-manager.ts:143
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const packageRoot = fileURLToPath(new URL("../../", import.meta.url));
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@er77/code-graph-rag-mcp, @modelcontextprotocol/sdk, better-sqlite3, lru-cache, nanoid, sqlite-vec, tree-sitter-kotlin, yaml
Why
25 dependency range(s) float
Fix
pin exact versions or ship a lockfile

Tools it exposes

27 declared in source · 3 destructive

24 read0 write3 destructive

3 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolRiskWhat it does
clean_indexdestructiveUse when: you want a guaranteed clean rebuild (reset + full index). Typical flow: clean_index → query/semantic_search. Output: indexing result; may time out on strict clients—use batch_index if needed.
clear_bus_topicdestructiveUse when: you need to invalidate cached knowledge bus entries for a topic. Typical flow: get_bus_stats → clear_bus_topic(topic). Output: confirmation + updated stats.
reset_graphdestructiveUse when: you need a clean slate (schema reset, corrupted index, or changing indexing config). Typical flow: reset_graph → clean_index/batch_index. Output: confirmation; destructive to indexed data.
analyze_code_impactreadUse when: you need a reverse-dependency view (who uses/depends on this). Typical flow: list_file_entities → analyze_code_impact(entityId, filePath hint) → inspect affected files. Output: dependents and affected files; requires indexing.
analyze_hotspotsreadUse when: you want a quick list of risky areas (complexity/changes/coupling). Typical flow: analyze_hotspots(metric) → inspect top files/entities → suggest_refactoring. Output: ranked hotspots with the chosen metric.
batch_indexreadUse when: you need reliable indexing on strict clients/timeouts. Typical flow: batch_index(reset:true) → keep calling batch_index(sessionId) until done:true. Output: progress + stats + next arguments; returns sessionId for resumable sessions.
cross_language_searchreadUse when: you want discovery constrained to specific languages. Typical flow: cross_language_search(query, languages) → open results → list_file_entities. Output: results filtered by language set; semantic must be available for best quality.
detect_code_clonesreadUse when: you want semantic clone groups across the codebase. Typical flow: detect_code_clones → prioritize hotspots → suggest_refactoring. Output: clone groups; consider jscpd_detect_clones for fast tokenizer-based scanning.
find_related_conceptsreadUse when: you want conceptually related code for an entity (semantic neighbors). Typical flow: list_file_entities → find_related_concepts(entityId) → open candidates. Output: related entities/snippets; semantic must be available.
find_similar_codereadUse when: you have a snippet and want near-duplicate or conceptually similar code. Typical flow: find_similar_code → open candidate file(s) → suggest_refactoring/detect_code_clones. Output: ranked similar snippets with scores (semantic must be available).
get_agent_metricsreadUse when: you need per-agent telemetry (queues, memory, CPU) to debug slow/failed tool calls. Typical flow: get_agent_metrics → adjust concurrency/memory limits. Output: agent snapshots and coordinator metrics.
get_bus_statsreadUse when: you need to debug caching/events and topic growth. Typical flow: get_bus_stats → clear_bus_topic for hot/large topics. Output: topic/entry/subscription counts.
get_entity_sourcereadUse when: you need the exact source snippet for an entity to ground answers. Typical flow: resolve_entity/list_file_entities → get_entity_source(entityId, contextLines) → analyze_code_impact. Output: snippet + line ranges; requires file access and indexing.
get_graphreadUse when: you need a bounded snapshot of entities and relationships for inspection/debugging. Avoid when: exporting entire large graphs—use a query filter/limit. Output: entities + relations + stats; requires indexing.
get_graph_healthreadUse when: you need to verify DB health (counts + sample read). Typical flow: get_graph_health → if unhealthy, clean_index/reset_graph. Output: health status, totals, and sample verification.
get_graph_statsreadUse when: you need counts/summary stats for the indexed graph. Typical flow: get_graph_stats → get_graph_health if counts look suspicious. Output: counts and DB metrics; requires indexing.
get_metricsreadUse when: you need runtime resource usage and agent queue snapshots for debugging. Typical flow: get_metrics → get_agent_metrics for deeper agent telemetry. Output: CPU/memory/resource manager + knowledge bus stats.
get_versionreadUse when: you need server version/runtime info (node/platform/memory/uptime) for debugging. Output: version + runtime details; does not require indexing.
indexreadUse when: you want a one-shot index of a repo and your client can tolerate a long-running tool call. Avoid when: strict transports may time out—use batch_index instead. Typical flow: clean_index → index or batch_index. Output: JSON status + counts; indexing is required for most graph tools.
jscpd_detect_clonesreadUse when: you want fast, tokenizer-based duplicate detection (no embeddings). Typical flow: jscpd_detect_clones(paths, formats) → review clone blocks → refactor. Output: clone blocks with locations; best for quick duplication sweeps.
lerna_project_graphreadUse when: you want a package/workspace dependency graph from Lerna config. Typical flow: lerna_project_graph(force?) → optionally ingest → query graph. Output: package DAG; may require Lerna setup in the repo.
list_file_entitiesreadUse when: you have a file and need the exact entityId for follow-up graph tools. Typical flow: list_file_entities(filePath) → pick entityId → list_entity_relationships/analyze_code_impact. Output: entity list with locations/metadata; requires indexing.
list_module_importersreadUse when: you care about module-level dependents (who imports ./x). Typical flow: list_module_importers(moduleSource) → inspect importer files/entities. Output: importing files/entities; requires indexing.
queryreadUse when: you want a best-effort hybrid answer (semantic + structural) for discovery. Typical flow: query → refine with list_file_entities/list_entity_relationships/analyze_code_impact. Output: combined semantic and structural matches (semantic may be unavailable/disabled).
resolve_entityreadUse when: a name is ambiguous and you need the correct entityId before deeper graph tools. Typical flow: resolve_entity(name, filePathHint) → pick entityId → get_entity_source/list_entity_relationships. Output: ranked candidates with reasons; requires indexing.
semantic_searchreadUse when: you want semantic discovery across the codebase. Typical flow: semantic_search → list_file_entities (for exact IDs) → list_entity_relationships. Output: ranked matches; semantic may be disabled; ground results with graph/source follow-ups.
suggest_refactoringreadUse when: you want refactoring suggestions for a file or snippet. Typical flow: identify target via semantic_search/query → suggest_refactoring(filePath, focusArea/entityId). Output: suggestions; validate against real code context.

Install

Package version 2.7.18 · audited commit ade3c73

Read the findings first. The most severe is Inventory / provenance (medium) at data/query_cache.db.

One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.7.18. The audit covers commit ade3c73 only.

claude mcp add code-graph-rag-mcp --env CLOUDRU_API_KEY=${CLOUDRU_API_KEY} --env MCP_EMBEDDING_API_KEY=${MCP_EMBEDDING_API_KEY} --env OPENAI_API_KEY=${OPENAI_API_KEY} -- npx -y @er77/[email protected]

The command pins the package version recorded in the source (2.7.18); the audit covers commit ade3c7351bbd. Transport: stdio. Reads these environment variables: CLOUDRU_API_KEY, MCP_EMBEDDING_API_KEY, OPENAI_API_KEY. Give it the narrowest token it needs.

Audit history

  1. !CAUTION B 83 / 100

    First audit · ade3c7351bbd

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/er77/code-graph-rag/badge.svg)](https://modelsatlas.com/mcp/er77/code-graph-rag/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Code Graph RAG MCP server

What tools does Code Graph RAG expose?
27 in total: 24 read-only, 0 that write, and 3 that can delete or overwrite (clean_index, clear_bus_topic, reset_graph). Every one is listed on this page with its risk.
Is Code Graph RAG safe to connect to an agent?
With care. The audit graded it B (83/100) and found 11 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 3 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Code Graph RAG need?
It reads CLOUDRU_API_KEY, MCP_EMBEDDING_API_KEY and OPENAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Code Graph RAG run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @er77/code-graph-rag-mcp at 2.7.18.
How current is this page?
The grade is for one exact copy of the source (ade3c7351bbd), read on 2026-10-07. The repository is watched and re-audited when it changes.
Which Code-Graph-RAG MCP server is the right one?
vitali87/code-graph-rag. 2 servers share the name; see the side-by-side comparison.

Sources

  • er77/code-graph-rag-mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit ade3c7351bbdObserved · 7 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.