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
7.4K

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

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.2K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.7K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
14.6K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
7.7K
4 points
P
Paperbanana
Python
8.8K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
10.4K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
8.6K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
10.3K
5 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
23.4K
4.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
26.7K
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
79.3K
4.3 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
37.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
71.0K
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#
37.9K
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
56.6K
4.8 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
23.6K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase