MCP Catalogs
首页

narsil-mcp

by postrv·151·综合分 51

Rust MCP 服务器,提供 32 种语言的 90+ 代码智能工具,包括神经搜索和安全分析。

developer-toolsai-llmsecurity
19
Forks
1
活跃 Issue
本月
最近提交
2 天前
收录于

概述

narsil-mcp 是一个全面的基于 Rust 的 MCP 服务器,提供深度的代码智能功能。它包含 32 种编程语言的 90 个专业工具,支持神经语义搜索、污点分析、调用图生成以及供应链安全功能(如 SBOM 生成)。该服务器注重隐私,完全离线工作,支持本地和远程仓库分析。其 Rust 实现提供了内存安全和性能优势,二进制文件大小仅约 30MB。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:大型代码库的代码分析和重构
:安全审计和漏洞扫描
:神经代码搜索和相似性匹配
:narsil-mcp 支持哪些编程语言?
:narsil-mcp 是否需要互联网连接?

什么时候选它

当您需要跨多种语言的全面代码分析,包括安全扫描和神经网络搜索功能,特别是处理大型代码库且希望本地处理时,选择 narsil-mcp。

什么时候不要选它

如果您只需要基本的 LSP 功能而不需要重型代码分析工具,或者需要实时协作功能(因为 narsil-mcp 本地处理所有内容),则应避免使用 narsil-mcp。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • search_symbols

    Search for symbols in code repositories

  • call_graph

    Generate function call graphs for code analysis

  • security_scan

    Perform security vulnerability scanning on code

  • generate_sbom

    Generate Software Bill of Materials for dependencies

  • semantic_search

    Find similar code using neural embeddings

  • taint_analysis

    Track data flow paths in code to identify potential security issues

  • extract_dependencies

    Extract and analyze project dependencies

  • find_code_patterns

    Find specific code patterns across repositories

  • extract_documentation

    Extract documentation comments and docstrings

  • analyze_control_flow

    Analyze control flow graphs of functions

  • detect_dead_code

    Identify unused or dead code in repositories

  • file_metadata

    Extract metadata and structure information from files

说明:Inferred tool names and descriptions from feature descriptions, usage examples, and the broad functionality described in the README. The server mentions 90 tools total but doesn't list them all explicitly.

可对比工具

semantic-mcpast-grep-mcpripgrep-mcptree-sitter-lsp

安装

安装

**macOS / Linux (Homebrew):**

brew tap postrv/narsil
brew install narsil-mcp

**Windows (Scoop):**

scoop bucket add narsil https://github.com/postrv/scoop-narsil
scoop install narsil-mcp

**Rust/Cargo (所有平台):**

cargo install narsil-mcp

**Node.js/npm (所有平台):**

npm install -g narsil-mcp

Claude Desktop 配置

{
  "mcpServers": {
    "narsil-mcp": {
      "command": "narsil-mcp",
      "args": ["--repos", "~/projects"]
    }
  }
}

FAQ

narsil-mcp 支持哪些编程语言?
narsil-mcp 支持 32 种编程语言,包括 Rust、Python、JavaScript、TypeScript、Go、C/C++、Java、C# 等。请参阅 README 获取完整列表和支持的扩展名。
narsil-mcp 是否需要互联网连接?
不需要,narsil-mcp 设计为完全离线工作。所有分析都在您的本地机器上进行。仅在使用基于云的嵌入服务时,神经搜索功能才需要互联网连接。

Hacker News 讨论

开发者社区最近的相关讨论。

narsil-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。