MCP server · Audited from source
Code Graph RAG MCP server
by er77/code-graph-rag-mcpMIT licenceAudited 7 Oct 2026 · source ade3c7351bbd
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).
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 →
- vitali87/code-graph-rag★ 5,169!CAUTION
- er77/code-graph-rag-mcp★ 122!CAUTION
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
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
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN 1 finding |
L1 Static source | Secrets, path traversal, supply chain | WARN 9 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
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-mcpat 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
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
this.baseUrl = opts.baseUrl ?? "http://127.0.0.1:11434";
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
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
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
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
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
} from "../../types/semantic.js";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/semantic/providers/factory.ts:7
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
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
const packageRoot = fileURLToPath(new URL("../../", import.meta.url));- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@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
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.
| Tool | Risk | What it does |
|---|---|---|
clean_index | destructive | Use 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_topic | destructive | Use 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_graph | destructive | Use 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_impact | read | Use 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_hotspots | read | Use 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_index | read | Use 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_search | read | Use 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_clones | read | Use 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_concepts | read | Use 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_code | read | Use 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_metrics | read | Use 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_stats | read | Use 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_source | read | Use 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_graph | read | Use 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_health | read | Use 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_stats | read | Use 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_metrics | read | Use 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_version | read | Use when: you need server version/runtime info (node/platform/memory/uptime) for debugging. Output: version + runtime details; does not require indexing. |
index | read | Use 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_clones | read | Use 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_graph | read | Use 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_entities | read | Use 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_importers | read | Use 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. |
query | read | Use 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_entity | read | Use 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_search | read | Use 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_refactoring | read | Use 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]{
"mcpServers": {
"code-graph-rag-mcp": {
"command": "npx",
"args": [
"-y",
"@er77/[email protected]"
],
"env": {
"CLOUDRU_API_KEY": "${CLOUDRU_API_KEY}",
"MCP_EMBEDDING_API_KEY": "${MCP_EMBEDDING_API_KEY}",
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
}
}
}
}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
- !CAUTION B 83 / 100
First audit ·
ade3c7351bbd
README badge
For maintainers · updates on every re-audit
[](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?
Is Code Graph RAG safe to connect to an agent?
What credentials does Code Graph RAG need?
How does Code Graph RAG run?
How current is this page?
Which Code-Graph-RAG MCP server is the right one?
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.
- What tools does Code Graph RAG expose?
- Is Code Graph RAG safe to connect to an agent?
- What credentials does Code Graph RAG need?