Narsil

v1.0.0Developer Toolsstable

Rust MCP server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more

code-intelligencemcpmcp-servermcp-serversprivacy
Share:
154
Stars
0
Downloads
0
Weekly
0/5

What is Narsil?

Narsil is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to rust mcp server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more

Rust MCP server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Rust MCP server for comprehensive code intelligence - 90 too

Use Cases

Rust MCP server for comprehensive code intelligence - 90 tools, 32 languages, se
postrv

Maintainer

LicenseApache-2.0
Languagerust
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx narsil

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Narsil

Narsil is a high-performance Rust-based MCP server that delivers comprehensive code intelligence across 32 programming languages. It exposes up to 90 tools covering symbol search, call graph analysis, taint-based security scanning, SBOM generation, and semantic code search using Voyage AI or OpenAI embeddings. Developers use it to give AI assistants deep, local understanding of large codebases without sending source code to external services, making it ideal for privacy-conscious teams and complex multi-repository projects.

Prerequisites

  • Rust 1.70+ (if building from source) or a pre-built binary via Homebrew, Cargo, npm, or the install script
  • An MCP client such as Claude Desktop, Claude Code, Cursor, VS Code with the MCP extension, or Zed
  • Optional: VOYAGE_API_KEY or OPENAI_API_KEY for neural/semantic code search
  • Git installed if using git history, blame, or hotspot analysis (--git flag)
  • On Windows: Visual Studio Build Tools when compiling from source
1

Install Narsil

Install the narsil-mcp binary using the method that suits your platform. Homebrew is recommended for macOS/Linux; Cargo works everywhere Rust is installed.

# macOS/Linux via Homebrew
brew tap postrv/narsil && brew install narsil-mcp

# Or via Cargo
cargo install narsil-mcp

# Or via npm
npm install -g narsil-mcp

# Or one-line installer (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/postrv/narsil-mcp/main/install.sh | bash
2

Verify the installation

Confirm that narsil-mcp is on your PATH and shows the expected version.

narsil-mcp --version
3

Choose a tool preset

Narsil ships with three presets that control how many of its 90 tools are active. Use 'minimal' (26 tools) for lightweight editors, 'balanced' (51 tools) for VS Code or IntelliJ, and 'full' (90 tools) for Claude Desktop where context is less constrained.

4

Add Narsil to your MCP client configuration

Add the server block to your MCP client config file. Point --repos at the project directory you want to analyze. Add --git to enable blame/history tools and --call-graph to enable call-graph tracing.

{
  "mcpServers": {
    "narsil-mcp": {
      "command": "narsil-mcp",
      "args": ["--repos", "/path/to/your/project", "--git", "--call-graph", "--preset", "balanced"]
    }
  }
}
5

Enable neural search (optional)

For semantic code search that understands intent rather than just keywords, provide a Voyage AI or OpenAI API key and add the --neural flag.

{
  "mcpServers": {
    "narsil-mcp": {
      "command": "narsil-mcp",
      "args": ["--repos", "/path/to/project", "--neural", "--neural-model", "voyage-code-2"],
      "env": {
        "VOYAGE_API_KEY": "pa-your-voyage-key"
      }
    }
  }
}
6

Create a project-level config file (optional)

Place a .narsil.yaml file in your repository root to set per-project defaults so every team member gets consistent tool categories without passing long CLI flags.

# .narsil.yaml
preset: "balanced"
tools:
  categories:
    Security:
      enabled: true

Narsil Examples

Client configuration

Full Claude Desktop configuration with git integration, call graphs, and the balanced preset for a single project.

{
  "mcpServers": {
    "narsil-mcp": {
      "command": "narsil-mcp",
      "args": [
        "--repos", "/Users/you/projects/myapp",
        "--git",
        "--call-graph",
        "--preset", "balanced"
      ]
    }
  }
}

Prompts to try

Examples of what you can ask your AI assistant once Narsil is connected.

- "Find all functions that call `processPayment` and show their call graphs"
- "Run a security scan on the authentication module and list any SQL injection risks"
- "Show me the hottest files in the git history — which ones change most often?"
- "Search for code similar to this snippet using semantic search"
- "Generate a CycloneDX SBOM for this repository and list any OSV vulnerabilities"

Troubleshooting Narsil

narsil-mcp: command not found after npm install

Ensure npm's global bin directory is on your PATH. Run `npm bin -g` to find it and add it to your shell profile, then restart your terminal.

Neural search returns an error about a missing API key

Set VOYAGE_API_KEY or OPENAI_API_KEY in the env block of your MCP config, or export it in your shell before starting the client. Neural features are disabled when no key is present.

Stack overflow when analyzing very large repositories

Set the RUST_MIN_STACK environment variable to a larger value, e.g. RUST_MIN_STACK=8388608, in your MCP server env config to increase the thread stack size.

Frequently Asked Questions about Narsil

What is Narsil?

Narsil is a Model Context Protocol (MCP) server that rust mcp server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Narsil?

Follow the installation instructions on the Narsil GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Narsil?

Narsil works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Narsil free to use?

Yes, Narsil is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "narsil": { "command": "npx", "args": ["-y", "narsil"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Narsil?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides