rust-code-mcp
Verified Safeby molaco
Overview
Semantic code search, navigation, and analysis for Rust codebases, integrating with an MCP client.
Installation
/path/to/file-search-mcpEnvironment Variables
- SERVER_PORT
- DATA_DIR
- MAX_FILE_SIZE
- NUM_THREADS
- DEBUG
- RETRY_ATTEMPTS
- RETRY_DELAY_MS
- RUST_LOG
- CUDA_HOME
- CUDA_PATH
- LD_LIBRARY_PATH
Security Notes
The project demonstrates strong security awareness by implementing a `SecretsScanner` and `SensitiveFileFilter` to prevent sensitive data (e.g., API keys, private keys, .env files) from being indexed. Communication uses `stdio` transport, which is local and minimizes network attack surface. While Rust itself provides memory safety, `fastembed` (via the `ort` crate) relies on ONNX Runtime, which may involve FFI and C/C++ code where memory safety isn't guaranteed by Rust, but this is an external, widely-used dependency.
Similar Servers
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
rust-docs-mcp-server
Provides up-to-date Rust crate documentation via semantic search and LLM summarization to AI coding assistants.
context-engine
Provides an agent-agnostic local context engine via Model Context Protocol (MCP) for coding agents, enabling semantic search, planning, code review, and prompt enhancement with AI integration.
neva
Provides a blazingly fast and easily configurable Model Context Protocol (MCP) server and client SDK for Rust, primarily for integrating LLMs with external tools and resources.