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

MCP server · Audited from source

Narsil MCP server

by postrv/narsil-mcpApache-2.0 licenceAudited 6 Oct 2026 · source c95b55984ca6

npm narsil-mcp 1.7.0★ 184
✕BLOCKGrade F · 53/100 · 6 Oct 2026 · c95b559

Is it safe? No — BLOCK, grade F (53/100). It exposes 96 tools: 84 read, 12 write and 0 destructive. The audit recorded 58 findings (6 critical, 23 high, 11 medium, 13 low). Maintainer's description: Rust MCP server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Narsil MCP server (postrv/narsil-mcp)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/postrv/narsil

Why this is BLOCK. The audit found 6 critical and 23 high findings; the most severe is Hard-coded secrets at rules/secrets.yaml:230. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

Trust audit

Audit 0.4.1 · full source read 6 Oct 2026

Trust score53/100✕BLOCK F
6 critical23 high11 medium13 low5 info

58 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

  • FilesystemDeclared14 observations
  • NetworkDeclared23 observations
  • ShellDeclared14 observations
  • DependenciesNot pinnedSome ranges float
  • SecretsFoundSee the findings

Findings (58)

Sorted by severity · the 25 most severe of 58 are listed

CRITICALHard-coded secretssecret.private_key · rules/secrets.yaml:230
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
CRITICALHard-coded secretssecret.private_key · rules/secrets.yaml:231
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
CRITICALHard-coded secretssecret.private_key · rules/secrets.yaml:232
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
CRITICALHard-coded secretssecret.private_key · rules/secrets.yaml:233
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
CRITICALHard-coded secretssecret.private_key · rules/secrets.yaml:234
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
CRITICALHard-coded secretssecret.stripe · test-fixtures/security/vulnerable.kt:40
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
HIGHCode injectioncode.deserialize · src/security_rules.rs:2484
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
data = pickle.loads(user_input)
Why
deserialises untrusted bytes into live objects
Fix
use json or yaml.safe_load
HIGHCode injectioncode.deserialize · test-fixtures/security/vulnerable.php:37
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
$obj = unserialize($data); // BAD: Unserialize user input
Why
deserialises untrusted bytes into live objects
Fix
use json or yaml.safe_load
HIGHCode injectioncode.deserialize · test-fixtures/security/vulnerable.php:38
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
return unserialize($_GET['obj']); // BAD
Why
deserialises untrusted bytes into live objects
Fix
use json or yaml.safe_load
HIGHCode injectioncode.eval_exec · src/taint/patterns.rs:697
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
"exec(".to_string(),
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/taint/patterns.rs:699
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
"Exec(".to_string(),
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/taint/patterns.rs:720
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
"exec(".to_string(),
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/taint/patterns.rs:783
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
"eval(".to_string(),
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/taint/patterns.rs:784
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
"exec(".to_string(),
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHFilesystem / pathfs.credential_store · .claude/hooks/security-filter.sh:77
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"$HOME/.ssh/"
Why
touches a credential store
Fix
—
HIGHFilesystem / pathfs.credential_store · .claude/hooks/security-filter.sh:78
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"/home/*/.ssh/"
Why
touches a credential store
Fix
—
HIGHFilesystem / pathfs.credential_store · .claude/hooks/security-filter.sh:80
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"cat.*id_rsa"
Why
touches a credential store
Fix
—
HIGHFilesystem / pathfs.credential_store · .claude/hooks/security-filter.sh:81
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"cat.*id_ed25519"
Why
touches a credential store
Fix
—
HIGHFilesystem / pathfs.credential_store · .claude/hooks/security-filter.sh:82
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"cat.*id_ecdsa"
Why
touches a credential store
Fix
—
HIGHNetwork egressnet.metadata_ip · src/ccg/import.rs:1176
F-04 Network egressCWE-200 · CWE-319Layer L1
validate_url_for_ssrf("http://169.254.169.254/metadata", SsrfPolicy::BlockPrivate)
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
HIGHNetwork egressnet.metadata_ip · src/neural.rs:1414
F-04 Network egressCWE-200 · CWE-319Layer L1
let result = validate_embedding_endpoint("http://169.254.169.254/latest/meta-data/");
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
HIGHNetwork egressnet.metadata_ip · src/neural.rs:1422
F-04 Network egressCWE-200 · CWE-319Layer L1
validate_embedding_endpoint("http://metadata.google.internal/computeMetadata/v1/");
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
HIGHNetwork egressnet.metadata_ip · src/validation.rs:196
F-04 Network egressCWE-200 · CWE-319Layer L1
host == "169.254.169.254"
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
HIGHNetwork egressnet.metadata_ip · src/validation.rs:199
F-04 Network egressCWE-200 · CWE-319Layer L1
|| host == "metadata.google.internal"
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
HIGHNetwork egressnet.tls_off · rules/bash.yaml:75
F-04 Network egressCWE-200 · CWE-319Layer L1
remediation: Remove -k/--insecure flag and ensure proper CA certificates are installed
Why
certificate verification is disabled
Fix
leave verification on

Tools it exposes

96 declared in source · 0 destructive

84 read12 write0 destructive
ToolWhat it doesRisk
add_remote_repoAdd a remote GitHub repository for indexing. Clones the repo to a temporary location.write
find_circular_importsDetect circular import dependencies in the codebase. Returns all cycles with the files involved.write
find_importsFind import relationships for a filewrite
get_code_graphGet graph visualization data (call graph, import graph, symbols). HTTP-only tool, not available via MCP.write
get_commit_diffGet the diff for a specific commit. Requires --git flag.write
get_file_historyGet git commit history for a file. Requires --git flag.write
get_import_graphBuild and analyze the import/dependency graph for a codebase. Shows which files import which other files, helps identify circular dependencies.write
import_ccgImport a CCG layer from URL or local file. Supports JSON-LD (L0/L1) and gzipped N-Quads (L2/L3) formats.write
import_ccg_from_registryImport all CCG layers from the codecontextgraph.com registry for a repository.write
reindexTrigger re-indexing of a repository or all repositorieswrite
run_sparql_templateExecute a predefined SPARQL query template with parameters. Requires --graph flag.write
sparql_queryExecute a SPARQL query against the RDF knowledge graph. Supports SELECT and ASK queries with timeout and result limits. Requires --graph flag.write
check_cwe_top25Scan for CWE Top 25 Most Dangerous Software Weaknesses including buffer overflows, injection, improper input validation.read
check_dependenciesCheck project dependencies for known vulnerabilities using the OSV (Open Source Vulnerabilities) database. Returns CVE/GHSA IDs and recommended upgrades.read
check_licensesAnalyze dependency licenses for compliance issues. Detects copyleft licenses, unknown licenses, and license compatibility problems.read
check_owasp_top10Scan specifically for OWASP Top 10 2021 vulnerabilities including injection, broken auth, XSS, SSRF, etc.read
check_type_errorsFind potential type errors in Python/JavaScript/TypeScript code without running mypy/tsc. Detects type mismatches, undefined variables, etc.read
discover_reposAuto-discover repositories in a directory by detecting VCS roots and project markersread
explain_vulnerabilityGet detailed explanation of a security vulnerability type including examples, references, and remediation guidance.read
export_ccgExport all CCG layers as a bundle to a directory. Generates manifest.json, architecture.json, symbol-index.nq.gz.b64, and full-detail.nq.gz.b64.read
export_ccg_architectureExport CCG Layer 1 architecture (~10-50KB JSON-LD) with module hierarchy, public API, and dependencies.read
export_ccg_fullExport CCG Layer 3 full detail (~1-20MB N-Quads gzipped) with complete RDF dataset including imports and security findings.read
export_ccg_indexExport CCG Layer 2 symbol index (~100-500KB N-Quads gzipped) with all symbols and call graph edges.read
export_ccg_manifestExport CCG Layer 0 manifest to a file. Returns content or writes to specified path.read
find_call_pathFind the call path between two functions. Requires --call-graph flag.read
find_callsFind what a function calls and what calls itread
find_dead_codeFind unreachable code blocks in a function or file using control flow analysis.read
find_dead_storesFind variable assignments that are never read (dead stores).read
find_functionsFind all functions in a repositoryread
find_functions_by_nameFind functions matching a name patternread
find_injection_vulnerabilitiesFind injection vulnerabilities (SQL injection, XSS, command injection, path traversal) using taint analysis.read
find_referencesFind all references to a symbol across the codebaseread
find_security_findingsFind security findings at or above a severity thresholdread
find_semantic_clonesFind semantically similar code (Type-3/4 clones) using neural embeddings. Detects code that does the same thing with different implementation.read
find_similar_codeFind code similar to a given snippet using TF-IDF embeddings. Good for finding duplicate or related code patterns.read
find_similar_to_symbolFind code similar to a specific symbol (function, class, etc.). Useful for finding related implementations or potential duplicates.read
find_symbol_usagesFind all usages of a symbol across files, including imports and re-exports. Cross-language aware for JS/TS projects.read
find_symbolsFind data structures (structs, classes, enums, interfaces) and functions/methods in a repository. Supports filtering by type and name pattern.read
find_symbols_in_fileFind all symbols defined in a specific fileread
find_uninitializedFind variables that may be used before being initialized.read
find_unused_exportsDetect exported symbols never imported by other files in repo. Cross-file analysis using import graph. Configurable to exclude public API surface.read
find_upgrade_pathFind safe upgrade paths for vulnerable dependencies. Shows which versions fix known vulnerabilities and whether upgrades have breaking changes.read
generate_sbomGenerate a Software Bill of Materials (SBOM) for a project. Supports CycloneDX and SPDX formats. Parses Cargo.toml, package.json, requirements.txt, and go.mod.read
get_blameGet git blame information for a file. Requires --git flag.read
get_branch_infoGet current branch name and repository status. Requires --git flag.read
get_call_graphGet the call graph for a repository or specific function. Requires --call-graph flag.read
get_calleesFind functions called by a given function. Requires --call-graph flag.read
get_callersFind functions that call a given function. Requires --call-graph flag.read
get_ccg_access_infoGet information about CCG access tiers and permissions. Explains the Triple-Heart Model and WebACL configuration.read
get_ccg_aclGenerate WebACL access control document for CCG layers. Supports Triple-Heart Model (public/authenticated/private tiers).read
get_ccg_manifestGet CCG Layer 0 manifest (~1-2KB JSON-LD) with repository identity, symbol counts, languages, and security summary. Always fits in AI context window.read
get_chunk_statsGet statistics about code chunks in a repository.read
get_chunksGet AST-aware code chunks for a file with symbol context.read
get_complexityGet complexity metrics (cyclomatic, cognitive) for a function. Requires --call-graph flag.read
get_contributorsGet contributors to a file or repository. Requires --git flag.read
get_control_flowGet the control flow graph (CFG) for a function, showing basic blocks, branches, and loops.read
get_data_flowGet data flow analysis for a function, showing variable definitions and uses.read
get_dependenciesAnalyze dependencies and imports for a file or moduleread
get_embedding_statsGet statistics about the embedding index.read
get_excerptExtract code excerpts around specific lines with intelligent context expansion. Automatically expands to function/class boundaries when enabled.read
get_export_mapGet the export map for a file or module showing all exported symbols and their types.read
get_fileGet the contents of a specific file with optional line rangeread
get_function_hotspotsFind highly connected functions (potential refactoring targets) based on call graph analysis. Requires --call-graph flag.read
get_hotspotsFind code hotspots - files with high churn and complexity. Requires --git flag.read
get_hover_infoGet hover information (type info, documentation) for a symbol at a specific position. Enhanced with LSP when available.read
get_incremental_statusGet status of incremental indexing including Merkle tree root hash, file counts, and change statistics.read
get_index_statusGet status of the search index and enabled features. Shows which optional features are enabled (--git, --call-graph, --persist, --watch) and index statistics.read
get_metricsGet performance metrics including tool execution times, indexing statistics, and server uptimeread
get_modified_filesGet list of modified files in the working tree. Requires --git flag.read
get_neural_statsGet statistics about the neural embedding index. Requires --neural flag.read
get_project_structureGet the directory structure and key files of a repository. Returns a tree view with file types and sizes.read
get_reaching_definitionsGet reaching definitions analysis - which variable assignments reach each point in the code.read
get_recent_changesGet recent commits across the repository. Requires --git flag.read
get_remote_fileFetch a specific file from a remote GitHub repository via API (no clone needed).read
get_security_summaryGet a comprehensive security summary for a repository including vulnerability counts and risk assessment.read
get_symbol_definitionGet the full definition of a symbol with surrounding context. Returns the source code with line numbers.read
get_symbol_historyGet commits that modified a specific symbol/function. Requires --git flag.read
get_taint_sourcesList all identified taint sources (user inputs, file reads, network data) in the codebase.read
get_type_infoGet precise type information for a symbol. Requires LSP to be enabled.read
get_typed_taint_flowEnhanced taint analysis with type information. More precise than untyped taint tracking, combines data flow with type inference.read
go_to_definitionFind the definition location of a symbol at a specific position. Enhanced with LSP when available.read
hybrid_searchPerform hybrid search combining BM25 keyword search with TF-IDF semantic similarity using Reciprocal Rank Fusion (RRF).read
infer_typesInfer types for variables in a Python/JavaScript/TypeScript function. Shows what types flow through the code without running external type checkers.read
list_remote_filesList files in a remote GitHub repository via API (no clone needed). Rate limited without GITHUB_TOKEN.read
list_reposList all indexed repositories with metadata (path, language breakdown, file count)read
list_sparql_templatesList available SPARQL query templates for common code intelligence patterns. Requires --graph flag.read
neural_searchSearch code using neural semantic embeddings. Finds semantically similar code even with different variable names. Requires --neural flag and EMBEDDING_API_KEY.read
query_ccgQuery CCG Layer 3 using SPARQL. Enables rich semantic queries against the full code context graph.read
scan_securityScan repository for security issues using the security rules engine. Detects vulnerabilities, secrets, crypto issues, and more.read
search_chunksSearch over AST-aware code chunks with symbol context.read
search_codeSemantic and keyword search across code. Returns ranked excerpts with surrounding context.read
semantic_searchBM25-ranked semantic search with code-aware tokenization. Better than simple text search for natural language queries.read
suggest_fixGet suggested fixes for a specific security finding.read
trace_taintTrace how tainted data flows from a source location through the code.read
validate_repoValidate that a path is a valid repository and can be indexedread
workspace_symbol_searchFuzzy search for symbols across the entire workspace. Uses trigram matching for typo-tolerant search.read

Audit history

  1. ✕BLOCK F 53 / 100

    First audit · c95b55984ca6

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK FMODELSATLASBLOCK · F

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about Narsil MCP server

What is the Narsil MCP server?
Rust MCP server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more
What tools does Narsil expose?
96 in total: 84 read-only, 12 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Narsil safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (53/100) and found 25 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does Narsil need?
It reads API_KEY and DATABASE_PASSWORD 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 current is this page?
The grade is for one exact copy of the source (c95b55984ca6), read on 2026-10-06. The repository is watched and re-audited when it changes.
I already installed Narsil. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • postrv/narsil-mcp on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit c95b55984ca6Observed · 6 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.