narsil-mcp
v1.2.0
Published
A blazingly fast MCP server for code intelligence - multi-language parsing, semantic search, call graphs, security scanning
Downloads
614
Maintainers
Readme
narsil-mcp
A blazingly fast MCP (Model Context Protocol) server for comprehensive code intelligence.
Installation
npm install -g narsil-mcpQuick Start with Claude Code
Create .mcp.json in your project root:
{
"mcpServers": {
"narsil-mcp": {
"command": "npx",
"args": ["narsil-mcp", "--repos", ".", "--git", "--call-graph"]
}
}
}Then start Claude Code in your project directory.
Features
- 76 MCP tools for code intelligence
- 16 languages supported via tree-sitter
- Multi-mode search: BM25, TF-IDF, hybrid, neural embeddings
- Call graph analysis: callers, callees, paths, hotspots
- Security scanning: OWASP Top 10, CWE Top 25, secrets detection
- Git integration: blame, history, contributors, hotspots
- Static analysis: CFG, DFG, type inference, taint analysis
CLI Usage
# Index current directory
narsil-mcp --repos . --git --call-graph
# Index multiple repositories
narsil-mcp --repos ~/project1 ~/project2
# Enable all features
narsil-mcp --repos . --git --call-graph --persist --watchDocumentation
Full documentation: https://github.com/postrv/narsil-mcp
Alternative Installation
# Shell installer (recommended for non-Node.js users)
curl -fsSL https://raw.githubusercontent.com/postrv/narsil-mcp/main/install.sh | bash
# Build from source
cargo install narsil-mcp
# Homebrew (macOS)
brew install postrv/tap/narsil-mcpLicense
MIT OR Apache-2.0
