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

MCP server · Audited from source

Socraticode MCP server

by giancarloerra/socraticodeAGPL-3.0 licenceAudited 22 Sep 2026 · source e1a11a896e7b

npm socraticode 1.14.0stdio★ 3,319
✓SAFEGrade B · 89/100 · 22 Sep 2026 · e1a11a8
3,319GitHub stars

Is it safe? Yes — SAFE, grade B (89/100). It exposes 30 tools: 23 read, 4 write and 3 destructive. The audit recorded 19 findings (0 critical, 0 high, 1 medium, 17 low). Maintainer's description: Enterprise-grade (40m+ LOC) codebase intelligence, zero-setup, local & private Plugin/Skill/Extension or MCP: hybrid semantic search, polyglot dependency graphs, symbol-level impact analysis & call-flow, interactive HTML viewer, cross-project & branch-aware search, DB/API/infra knowledge. 61% less t

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Socraticode MCP server (giancarloerra/socraticode)”. Retrieved 22 Sep 2026. https://modelsatlas.com/mcp/giancarloerra/socraticode

Trust audit

Audit 0.4.1 · full source read 22 Sep 2026

Trust score89/100✓SAFE B
0 critical0 high1 medium17 low1 info

19 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

  • FilesystemDeclared1 observation
  • NetworkDeclared2 observations
  • ShellDeclared1 observation
  • 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, activityPASS 6 findings
L1 Static sourceSecrets, path traversal, supply chainPASS 12 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 giancarloerraUser accountAccount type recorded when we read the repository.
  • PackagePublished on npmsocraticode at version 1.14.0
  • LicenceAGPL-3.0From the repository, as read at the audited commit.
  • Last push1 day agoActivity of the repository when we read it.
  • Source commit reade1a11a896e7bThe audit covers exactly this commit, read on 22 Sep 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory30 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 (19)

Sorted by severity

MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
codebase_context_remove, codebase_graph_remove, codebase_remove
Why
3 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenanceinv.hidden_file · .coderabbit.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.coderabbit.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .release-it.json
F-13 Inventory / provenanceCWE-1104Layer L0
.release-it.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .socraticodecontextartifacts.json.example
F-13 Inventory / provenanceCWE-1104Layer L0
.socraticodecontextartifacts.json.example
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .socraticodeignore.example
F-13 Inventory / provenanceCWE-1104Layer L0
.socraticodeignore.example
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · extension/.vscodeignore
F-13 Inventory / provenanceCWE-1104Layer L0
.vscodeignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:25
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { invalidateGraphCache } from "../../src/services/code-graph.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:26
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { stopAllWatchers } from "../../src/services/watcher.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:27
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { handleGraphTool } from "../../src/tools/graph-tools.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:28
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { handleIndexTool } from "../../src/tools/index-tools.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:29
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { handleManageTool } from "../../src/tools/manage-tools.js";
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:64
F-04 Network egressCWE-200 · CWE-319Layer L1
if curl --connect-timeout 1 --max-time 2 -fsS http://127.0.0.1:6333/healthz >/dev/null; then
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:81
F-04 Network egressCWE-200 · CWE-319Layer L1
QDRANT_MODE=external QDRANT_URL=http://127.0.0.1:6333 \
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:121
F-04 Network egressCWE-200 · CWE-319Layer L1
if curl --connect-timeout 1 --max-time 2 -fsS http://127.0.0.1:6333/healthz >/dev/null; then
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:130
F-04 Network egressCWE-200 · CWE-319Layer L1
QDRANT_URL=http://127.0.0.1:6333 \
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:145
F-04 Network egressCWE-200 · CWE-319Layer L1
if curl --connect-timeout 1 --max-time 2 -fsS http://127.0.0.1:6333/healthz >/dev/null; then
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · extension/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@biomejs/biome, @types/node, @types/vscode, @vscode/vsce, esbuild, ovsx, tsx, typescript
Why
8 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@ast-grep/lang-bash, @ast-grep/lang-c, @ast-grep/lang-cpp, @ast-grep/lang-csharp, @ast-grep/lang-dart, @ast-grep/lang-elixir, @ast-grep/lang-go, @ast-grep/lang-java
Why
43 dependency range(s) float
Fix
pin exact versions or ship a lockfile
INFOInventory / provenanceinv.oversize · socraticode_logo.png
F-13 Inventory / provenanceCWE-1104Layer L0
socraticode_logo.png
Why
1970981 bytes not read
Fix
—

Tools it exposes

30 declared in source · 3 destructive

23 read4 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
codebase_context_removedestructiveRemove all indexed context artifacts for a project from the vector database. Blocked while indexing is in progress — use codebase_stop or wait for the operation to finish first.
codebase_graph_removedestructiveRemove a project
codebase_removedestructiveRemove a project
codebase_indexwriteStart indexing a codebase in the background. Returns immediately. Call codebase_status to poll progress until 100%. Do NOT search until indexing is complete. If already indexing, returns current progress.
codebase_stopwriteGracefully stop an in-progress indexing operation. The current batch will finish and checkpoint, preserving all progress. Re-run codebase_index to resume from where it left off.
codebase_updatewriteIncrementally update an existing codebase index. Only re-indexes changed files. Runs synchronously. Use it to refresh a manual/off snapshot, or whenever an immediate catch-up is needed.
codebase_watchwriteStart/stop watching a project directory for file changes and automatically update the index. When starting, first runs an incremental update to catch up, then watches for changes. SOCRATICODE_WATCHER=manual allows explicit starts only; off rejects starts.
changedreadChanged artifact
codebase_aboutreadDisplay information about SocratiCode — what it is, its tools and how to use it. Use this to get a quick overview of the MCP tools and their purpose.
codebase_contextreadList all context artifacts defined in .socraticodecontextartifacts.json — database schemas, API specs, infra configs, architecture docs, etc. Shows each artifact
codebase_context_indexreadIndex or re-index all context artifacts defined in .socraticodecontextartifacts.json. Chunks and embeds artifact content into the vector database for semantic search. Usually not needed — codebase_context_search auto-indexes on first use.
codebase_context_searchreadSemantic search across context artifacts (database schemas, API specs, infra configs, etc.) defined in .socraticodecontextartifacts.json. Auto-indexes on first use and auto-detects stale artifacts. Use this to find relevant infrastructure or domain knowledge.
codebase_flowreadTrace the EXECUTION FLOW forward from an entry point — what does this code call into? With NO args, returns a ranked list of auto-detected entry points (orphans with outgoing calls, conventional names like main(), framework routes, tests). With an entrypoint argument, returns the call tree.
codebase_graph_buildreadBuild a dependency graph of the codebase using static analysis (ast-grep). Maps import/require/export relationships between files. Runs in the background — call codebase_graph_status to poll progress until complete.
codebase_graph_circularreadFind circular dependencies in the codebase.
codebase_graph_queryreadQuery the code dependency graph for a specific file. Returns what the file imports and what files depend on it.
codebase_graph_statsreadGet statistics about the code dependency graph: total files, edges, most connected files, orphan files, circular dependencies.
codebase_graph_statusreadCheck the status of the code dependency graph: build progress (if building), node/edge count, when it was last built, whether it
codebase_graph_visualizereadNo description in the source
codebase_healthreadCheck the health of all infrastructure: Docker, Qdrant container, Ollama, and embedding model. Use this to diagnose setup issues.
codebase_impactreadImpact Analysis — return the BLAST RADIUS for a file or symbol. Lists every file (and, where helpful, function) that could break if you change the target. Polymorphic on target: a path-like string (
codebase_list_projectsreadList all projects that have been indexed (have collections in Qdrant).
codebase_prunereadInventory stored project identities and their resources. Report-only by default. Applying requires an exact identity, the confirmation token from a fresh inventory, and an acknowledgement that no other host is writing to it; path absence on this host is advisory, not proof of abandonment.
codebase_searchreadSemantic search across an indexed codebase. Only use after codebase_index is complete (check codebase_status first). Returns relevant code chunks matching a natural language query.
codebase_statusreadCheck index status: chunk count, indexing progress (%), last completed operation, file watcher state. Call after codebase_index to poll until 100% complete.
codebase_symbolread360° view of a symbol: definition, kind, callers, callees, confidence levels. Use to understand a function or class before changing it.
codebase_symbolsreadList symbols in a file, or search by name across the project. Use to discover what exists before drilling into a single symbol with codebase_symbol.
referencereadReference documentation
samereadSame artifact
schemareadDB

Install

Package version 1.14.0 · audited commit e1a11a8

claude mcp add socraticode --env OPENAI_API_KEY=${OPENAI_API_KEY} --env GOOGLE_API_KEY=${GOOGLE_API_KEY} --env OLLAMA_API_KEY=${OLLAMA_API_KEY} --env LMSTUDIO_API_KEY=${LMSTUDIO_API_KEY} -- npx -y [email protected]

The command pins the package version recorded in the source (1.14.0); the audit covers commit e1a11a896e7b. Transport: stdio. Reads these environment variables: GOOGLE_API_KEY, LITELLM_API_KEY, LMSTUDIO_API_KEY, OLLAMA_API_KEY, OPENAI_API_KEY, QDRANT_API_KEY. Give it the narrowest token it needs.

Audit history

  1. ✓SAFE B 89 / 100

    Source changed, verdict held · e1a11a896e7b

  2. ✓SAFE B 89 / 100

    First audit · fdafd68090a0

README badge

For maintainers · updates on every re-audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/mcp/giancarloerra/socraticode/badge.svg)](https://modelsatlas.com/mcp/giancarloerra/socraticode/)

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 Socraticode MCP server

What is the Socraticode MCP server?
Enterprise-grade (40m+ LOC) codebase intelligence, zero-setup, local & private Plugin/Skill/Extension or MCP: hybrid semantic search, polyglot dependency graphs, symbol-level impact analysis & call-flow, interactive HTML viewer, cross-project & branch-aware search, DB/API/infra knowledge. 61% less t
What tools does Socraticode expose?
30 in total: 23 read-only, 4 that write, and 3 that can delete or overwrite (codebase_context_remove, codebase_graph_remove, codebase_remove). Every one is listed on this page with its risk.
Is Socraticode safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. 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 Socraticode need?
It reads GOOGLE_API_KEY, LITELLM_API_KEY, LMSTUDIO_API_KEY, OLLAMA_API_KEY, OPENAI_API_KEY and QDRANT_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 Socraticode run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as socraticode at 1.14.0.
How current is this page?
The grade is for one exact copy of the source (e1a11a896e7b), read on 2026-09-22. The repository is watched and re-audited when it changes.

Sources

  • giancarloerra/socraticode on GitHub — the source we read, its licence, stars and activityObserved · 22 Sep 2026
  • ModelsAtlas trust audit — SAFE verdict for commit e1a11a896e7bObserved · 22 Sep 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.