codegraph-rust
Verified Safeby Jakedismo
Overview
Transforms codebases into a semantically searchable knowledge graph, enabling AI agents to reason about code relationships, architecture, and impact rather than just performing text-based searches.
Installation
codegraph start stdioEnvironment Variables
- CODEGRAPH_SURREALDB_URL
- CODEGRAPH_SURREALDB_NAMESPACE
- CODEGRAPH_SURREALDB_DATABASE
- CODEGRAPH_SURREALDB_USERNAME
- CODEGRAPH_SURREALDB_PASSWORD
- CODEGRAPH_EMBEDDING_PROVIDER
- CODEGRAPH_EMBEDDING_MODEL
- CODEGRAPH_LLM_PROVIDER
- CODEGRAPH_MODEL
- OPENAI_API_KEY
- ANTHROPIC_API_KEY
- JINA_API_KEY
- XAI_API_KEY
- CODEGRAPH_CONTEXT_WINDOW
- CODEGRAPH_DEBUG
- CODEGRAPH_AGENT_ARCHITECTURE
Security Notes
The project extensively uses environment variables and configuration files for API keys, avoiding hardcoded secrets. It integrates with various trusted LSP servers and LLM/embedding providers, relying on their security. The use of 'unsafe' for SIMD and memory-mapped files is noted, but this is a common practice for performance in Rust. Debug logging, when enabled via `CODEGRAPH_DEBUG=1`, can write sensitive query and result data to local files; users should be aware of this for security. Default SurrealDB credentials (`root`/`root`) are used in local development setups and should be changed for production deployments.
Similar Servers
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
code-index-mcp
Intelligent code indexing and analysis for Large Language Models, enabling tasks such as code review, refactoring, documentation generation, debugging assistance, and architectural analysis.
CodeGraphContext
An AI pair programmer that provides real-time, accurate, context-aware assistance by indexing and analyzing codebases (local projects and dependencies) using a graph database, facilitating code understanding, writing, and refactoring across multiple programming languages.
CodeGraphContext
This MCP Server acts as an expert AI pair programmer's backend, providing real-time, accurate code analysis, indexing, and relationship information from a local codebase to assist with understanding, writing, and refactoring code.