PN

postrv/narsil-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

185 stars 27 forks 质量 90 趋势 31Apache-2.0

postrv/narsil-mcp 是从 https://github.com/postrv/narsil-mcp. 导入的 MCP 服务器候选

概览

postrv/narsil-mcp 是从 https://github.com/postrv/narsil-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

极速、以隐私为先的深度代码智能 MCP 服务器

一台基于Rust的MCP(模型上下文协议)服务器,通过90个专业工具为AI助手提供深入的代码理解。

为什么是narsil-mcp?

功能 NARSIL-MCP XRAY Serena GitHub MCP
语言 32 4 30+(语言语言) 无
神经搜索是的 不 不
污点分析是的 不 不
SBOM/许可是的 不 不 部分
线下/本地是的 是的 是的 不是
WASM/浏览器是的 不 不 不
呼号图 是的 部分 不 不
类型推断是的 不是 不是 不是

主要特色

  • 代码智能 - 符号提取、语义搜索、呼叫图分析
  • 神经语义搜索 - 使用嵌入(Voyage AI、OpenAI)寻找类似代码
  • 安全分析 - 污染分析、漏洞扫描、OWASP/CWE覆盖
  • 供应链安全 - SBOM生成、依赖审计、许可合规
  • 高级分析 - 控制流图、数据流分析、死码检测

为什么选择纳西尔-MCP?

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

narsil-mcp

The blazing-fast, privacy-first MCP server for deep code intelligence

A Rust-powered MCP (Model Context Protocol) server providing AI assistants with deep code understanding through 90 specialized tools.

Why narsil-mcp?

Feature narsil-mcp XRAY Serena GitHub MCP
Languages 32 4 30+ (LSP) N/A
Neural Search Yes No No No
Taint Analysis Yes No No No
SBOM/Licenses Yes No No Partial
Offline/Local Yes Yes Yes No
WASM/Browser Yes No No No
Call Graphs Yes Partial No No
Type Inference Yes No No No

Key Features

  • Code Intelligence - Symbol extraction, semantic search, call graph analysis
  • Neural Semantic Search - Find similar code using embeddings (Voyage AI, OpenAI)
  • Security Analysis - Taint analysis, vulnerability scanning, OWASP/CWE coverage
  • Supply Chain Security - SBOM generation, dependency auditing, license compliance
  • Advanced Analysis - Control flow graphs, data flow analysis, dead code detection

Why Choose narsil-mcp?

  • Written in Rust - Blazingly fast, memory-safe, single binary (~30MB)
  • Tree-sitter powered - Accurate, incremental parsing for 32 languages
  • Zero config - Point at repos and go
  • MCP compliant - Works with Claude, Cursor, VS Code Copilot, Zed, and any MCP client
  • Privacy-first - Fully local, no data leaves your machine
  • Parallel indexing - Uses all cores via Rayon
  • Smart excerpts - Expands to complete syntactic scopes
  • Security-first - Built-in vulnerability detection and taint analysis
  • Neural embeddings - Optional semantic search with Voyage AI or OpenAI
  • WASM support - Run in browser with WebAssembly build
  • Real-time streaming - Results as indexing progresses for large repos

Supported Languages

Language Extensions Symbols Extracted
Rust .rs functions, structs, enums, traits, impls, mods
Python .py, .pyi functions, classes
JavaScript .js, .jsx, .mjs functions, classes, methods, variables
TypeScript .ts, .tsx functions, classes, interfaces, types, enums
Go .go functions, methods, types
C .c, .h functions, structs, enums, typedefs
C++ .cpp, .cc, .hpp functions, classes, structs, namespaces
Java .java methods, classes, interfaces, enums
在 GitHub 查看完整 README

安装

npx @modelcontextprotocol/inspector ./target/release/narsil-mcp --repos ./path/to/repo
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "narsil-mcp": { "command": "narsil-mcp", "args": ["--repos", ".", "--git", "--call-graph"] } } }