About Narsil MCP
Narsil MCP is an MCP server published by postrv in the Developer Tools category: rust MCP server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more. Conduid read 88 tools from its source: add_remote_repo, check_cwe_top25, check_dependencies, check_licenses, check_owasp_top10, check_type_errors and 82 more. No package is published for it, so it installs from a source checkout.
The repository has 190 stars and 28 forks, is licensed Apache-2.0, and its last commit was on 7 Oct 2026. The latest release is v1.7.2 (7 Oct 2026). It follows v1.7.1 (7 Oct 2026), and the 5 most recent releases go back to v1.6.0 (16 Feb 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include security-tools, devtools, code-intelligence and privacy.
Install
git clone https://github.com/postrv/narsil-mcpTools (88)
add_remote_repoClone and index GitHub repositorycheck_cwe_top25Scan for CWE Top 25 weaknessescheck_dependenciesCheck for known vulnerabilities (OSV database)check_licensesAnalyze licenses for compliance issuescheck_owasp_top10Scan for OWASP Top 10 2021 vulnerabilitiescheck_type_errorsFind potential type mismatchesdiscover_reposAuto-discover repositories in a directoryexplain_vulnerabilityGet detailed vulnerability explanationexport_ccgExport all CCG layers as a bundleexport_ccg_architectureLayer 1 architecture (~10-50KB JSON-LD) - modules, APIexport_ccg_fullLayer 3 full detail (~1-20MB N-Quads gzipped)export_ccg_indexLayer 2 symbol index (~100-500KB N-Quads gzipped)export_ccg_manifestExport Layer 0 manifest to filefind_call_pathFind path between two functionsfind_circular_importsDetect circular dependenciesfind_dead_codeFind unreachable code blocksfind_dead_storesAssignments that are never readfind_injection_vulnerabilitiesFind SQL injection, XSS, command injection, path traversalfind_referencesFind all references to a symbolfind_semantic_clonesFind Type-3/4 semantic clones of a functionfind_similar_codeFind code similar to a snippet (TF-IDF)find_similar_to_symbolFind code similar to a symbolfind_symbol_usagesCross-file symbol usage with importsfind_symbolsFind structs, classes, functions by type/patternfind_uninitializedVariables used before initializationfind_upgrade_pathFind safe upgrade paths for vulnerable depsgenerate_sbomGenerate SBOM (CycloneDX/SPDX/JSON)get_blameGit blame for fileget_branch_infoCurrent branch and statusget_call_graphGet call graph for repository/functionget_calleesFind functions called by a functionget_callersFind functions that call a functionget_ccg_access_infoGet CCG access tier informationget_ccg_aclGenerate WebACL access control for CCG layersget_ccg_manifestLayer 0 manifest (~1-2KB JSON-LD) - repo identity, countsget_chunk_statsStatistics about code chunksget_chunksGet AST-aware chunks for a fileget_commit_diffDiff for specific commitget_complexityGet cyclomatic/cognitive complexityget_contributorsRepository/file contributorsget_control_flowGet CFG showing basic blocks and branchesget_data_flowVariable definitions and usesget_dependenciesAnalyze imports and dependentsget_embedding_statsEmbedding index statisticsget_excerptExtract code around specific lines with contextget_export_mapGet exported symbols from a file/moduleget_fileGet file contents with optional line rangeget_file_historyCommit history for fileget_function_hotspotsFind highly connected functionsget_hotspotsFiles with high churn and complexityget_hover_infoType info and documentationget_import_graphBuild and analyze import graphget_incremental_statusMerkle tree and change statisticsget_index_statusShow index stats and enabled featuresget_metricsPerformance stats and timingget_modified_filesWorking tree changesget_neural_statsNeural embedding index statisticsget_project_structureGet directory tree with file icons and sizesget_reaching_definitionsWhich assignments reach each pointget_recent_changesRecent commits in repositoryget_remote_fileFetch file via GitHub APIget_security_summaryComprehensive security risk assessmentget_symbol_definitionGet symbol source with surrounding contextget_symbol_historyCommits that changed a symbolget_taint_sourcesList taint sources (user input, files, network)get_type_infoPrecise type informationget_typed_taint_flowEnhanced security analysis with type infogo_to_definitionFind definition locationhybrid_searchCombined BM25 + TF-IDF with rank fusionimport_ccgImport CCG layer from URL or fileimport_ccg_from_registryImport CCG from codecontextgraph.com registryinfer_typesGet inferred types for all variables in a functionlist_remote_filesList files via GitHub APIlist_reposList all indexed repositories with metadatalist_sparql_templatesList available SPARQL query templatesneural_searchSemantic search using neural embeddings (finds similar code even with different names)query_ccgQuery CCG using SPARQLreindexTrigger re-indexing of repositoriesrun_sparql_templateExecute predefined SPARQL template with parametersscan_securityScan with security rules (OWASP, CWE, crypto, secrets)search_chunksSearch over AST-aware code chunkssearch_codeKeyword search with relevance rankingsemantic_searchBM25-ranked semantic searchsparql_queryExecute SPARQL query against RDF knowledge graphsuggest_fixGet remediation suggestions for findingstrace_taintTrace tainted data flow from a sourcevalidate_repoCheck if path is a valid repositoryworkspace_symbol_searchFuzzy search symbols across workspaceSecurity checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 6.0K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by Cargo.lock and frontend/package-lock.json.
- !No dynamic code executionScanned 114 source files and found 22 calls to eval or shell execution, in npm/install.js:99, npm/install.js:115 and src/taint/analyzer.rs:953 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 30 callsnpm/bin/narsil-mcp.js:8, npm/install.js:99, npm/install.js:115
- Outbound network calls
- 14 callsfrontend/src/api/client.ts:28, frontend/src/api/client.ts:39, frontend/src/api/client.ts:51
- Writes or deletes files
- 60 callsbenches/indexing.rs:45, benches/indexing.rs:74, benches/indexing.rs:78
- Lockfile
- Cargo.lock and frontend/package-lock.json
Pattern matches on the source text of 114 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 6.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README