Narsil MCP
UnclaimedRust MCP server for comprehensive code intelligence - 90 tools, 32 languages, security scanning, call graphs, and more
Set up this server
01 / Choose your client
02 / Before you connect
Authentication is not specified. Check the project instructions before connecting.
Project instructions03 / Add the configuration
claude mcp add --transport stdio 'narsil-mcp' -- 'npx' '-y' '@modelcontextprotocol/inspector' './target/release/narsil-mcp' '--repos' './path/to/repo'04 / Check it in your client
Open your client’s MCP settings and confirm the server connects and lists its tools. A copied configuration does not confirm a working connection.
More in Security
Browse the full directoryUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverSecurity profile
Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works
40 of 40 tools
Documented tools (40)
From project documentation. A server handshake does not verify each tool’s description or behavior.
discover_repos
Auto-discover repositories in a directory
find_call_path
Find path between two functions
find_dead_code
Find unreachable code blocks
find_dead_stores
Assignments that are never read
find_references
Find all references to a symbol
find_semantic_clones
Find Type-3/4 semantic clones of a function
find_similar_code
Find code similar to a snippet (TF-IDF)
find_similar_to_symbol
Find code similar to a symbol
find_symbol_usages
Cross-file symbol usage with imports
find_symbols
Find structs, classes, functions by type/pattern
find_uninitialized
Variables used before initialization
get_call_graph
Get call graph for repository/function
get_callees
Find functions called by a function
get_callers
Find functions that call a function
get_chunk_stats
Statistics about code chunks
get_chunks
Get AST-aware chunks for a file
get_complexity
Get cyclomatic/cognitive complexity
get_control_flow
Get CFG showing basic blocks and branches
get_data_flow
Variable definitions and uses
get_dependencies
Analyze imports and dependents
get_embedding_stats
Embedding index statistics
get_excerpt
Extract code around specific lines with context
get_export_map
Get exported symbols from a file/module
get_file
Get file contents with optional line range
get_function_hotspots
Find highly connected functions
get_index_status
Show index stats and enabled features
get_neural_stats
Neural embedding index statistics
get_project_structure
Get directory tree with file icons and sizes
get_reaching_definitions
Which assignments reach each point
get_symbol_definition
Get symbol source with surrounding context
hybrid_search
Combined BM25 + TF-IDF with rank fusion
infer_types
Infer types for variables in a function without external type checkers
list_repos
List all indexed repositories with metadata
neural_search
Semantic search using neural embeddings (finds similar code even with different names)
reindex
Trigger re-indexing of repositories
search_chunks
Search over AST-aware code chunks
search_code
Keyword search with relevance ranking
semantic_search
BM25-ranked semantic search
validate_repo
Check if path is a valid repository
workspace_symbol_search
Fuzzy search symbols across workspace
Tool change history
FAQ
Questions about Narsil MCP Server
- How do I connect Narsil MCP Server to Claude?
- Run `claude mcp add narsil-mcp -- npx -y @modelcontextprotocol/inspector ./target/release/narsil-mcp --repos ./path/to/repo` in Claude Code, or add the same command and arguments under mcpServers in Cursor's mcp.json or Claude Desktop's claude_desktop_config.json, then restart the client. The blocks above are ready to paste.
- Is Narsil MCP Server free?
- The listed licence is Apache-2.0. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
- What can Narsil MCP Server do?
- Narsil MCP Server documents 40 tools to the agent, including discover_repos, find_call_path, find_dead_code. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.