Narsil MCP
N

Narsil MCP

An MCP server based on Rust that provides in-depth code intelligent analysis, supporting functions such as symbol extraction, semantic search, security analysis, and supply chain security for 16 programming languages, with an emphasis on privacy and performance.
2.5 points
6.2K

What is narsil-mcp?

narsil-mcp is a Model Context Protocol (MCP) server specifically designed to provide in-depth code understanding capabilities for AI assistants (such as Claude, Cursor, VS Code Copilot, etc.). By analyzing your codebase, it enables AI to understand the code structure, find functions, analyze dependencies, discover security vulnerabilities, etc., just like giving AI a 'code X-ray vision'.

How to use narsil-mcp?

After installing narsil-mcp, simply tell it the location of your codebase, and it will automatically index and analyze it. Then configure your AI assistant (such as Claude Desktop, Cursor, etc.) to connect to narsil-mcp, and the AI can use 76 code analysis tools to assist you in programming, debugging, and reviewing code.

Use cases

narsil-mcp is particularly suitable for the following scenarios: 1. Understanding large and unfamiliar codebases 2. Code review and security auditing 3. Code refactoring and optimization 4. Finding bugs and performance issues 5. Managing dependencies and license compliance 6. Learning new project structures

Main features

Code intelligent analysis
Supports symbol extraction, semantic search, and call graph analysis for 16 programming languages. It can find function, class, and variable definitions, and analyze code structure and dependencies.
Neural network semantic search
Uses AI embedding technology to find semantically similar code, even if the variable names and structures are different. Supports Voyage AI, OpenAI, or local ONNX models.
Security analysis
Comes with 111 built-in security rules to detect vulnerabilities such as SQL injection, XSS, and command injection. Supports taint analysis, OWASP Top 10, and CWE Top 25 scanning.
Supply chain security
Generates a Software Bill of Materials (SBOM), checks for dependency vulnerabilities, analyzes license compliance, and provides suggestions for security upgrade paths.
Type inference
Infers variable types for Python, JavaScript, and TypeScript code, allowing you to discover potential type errors without installing mypy or tsc.
Git integration
View code history, contributor information, and hot file analysis to understand the code evolution process and reasons for modifications.
Visual analysis
Interactively view call graphs, import relationship graphs, and code complexity heat maps through a web interface to intuitively understand the code structure.
Browser support
Provides a WebAssembly version that can run code analysis in the browser, suitable for online code editors and educational platforms.
Advantages
Completely local operation - Your code data will not leave your machine, protecting privacy and security
Excellent performance - Built on Rust, it only takes a few seconds to index large codebases
Multi-language support - Supports 16 mainstream programming languages, with wide coverage
Zero-configuration startup - Just specify the codebase path to start using
Compatible with mainstream AI assistants - Supports Claude, Cursor, VS Code Copilot, Zed, etc.
Rich toolset - Provides 76 code analysis tools to meet various needs
Intelligent preset configuration - Automatically detects the editor and applies the optimal configuration
Limitations
Requires local installation - Needs to be downloaded and installed on your computer
Large codebases consume memory - Indexing very large projects (such as the Linux kernel) may require more memory
Neural network search requires an API key - Configuring an AI service API is required to use the advanced semantic search function
Some advanced features require additional compilation - For example, the visualization front-end requires specific compilation options

How to use

Install narsil-mcp
Choose the appropriate installation method according to your operating system. The simplest way is to use the one-click installation script.
Configure the AI assistant
Add the narsil-mcp server configuration to your AI assistant (such as Claude Desktop, Cursor, etc.).
Start and index the code
Start narsil-mcp and specify the path of the codebase to be analyzed. It will automatically index all files.
Start using the AI assistant
Now your AI assistant can use all the tools of narsil-mcp. Try asking questions about the code.

Usage examples

Understand an unfamiliar codebase
When you take over a new project, you can use narsil-mcp to quickly understand the code structure and key functions.
Security code review
Conduct a security check before submitting code to discover potential security vulnerabilities.
Find similar code
When you want to refactor code or find duplicate logic, you can find semantically similar code snippets.
Dependency security check
Check if there are any known security vulnerabilities in the project dependencies.

Frequently asked questions

Will narsil-mcp send my code to an external server?
Which programming languages are supported?
How much disk space and memory are required?
How to configure neural network search?
Which AI assistants/editors are supported?
How long does it take to index a large codebase?

Related resources

GitHub repository
Source code, issue tracking, and the latest version
Detailed installation guide
Detailed installation instructions and troubleshooting for each platform
Configuration guide
Complete configuration options and preset descriptions
User manual
Actual usage cases and tutorials
Model Context Protocol official website
Official documentation and specifications for the MCP protocol

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "narsil-mcp": {
      "command": "narsil-mcp",
      "args": ["--repos", ".", "--git", "--call-graph"]
    }
  }
}

{
  "mcpServers": {
    "narsil-mcp": {
      "command": "narsil-mcp",
      "args": ["--repos", "/path/to/your/projects", "--git"]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
8.8K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
10.1K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
6.1K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
9.5K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
9.1K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
9.9K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
8.7K
4 points
U
Uniprof
Uniprof is a tool that simplifies CPU performance analysis. It supports multiple programming languages and runtimes, does not require code modification or additional dependencies, and can perform one-click performance profiling and hotspot analysis through Docker containers or the host mode.
TypeScript
8.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
33.2K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
23.9K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
69.1K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
21.3K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
29.5K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
62.1K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
45.4K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase