badger-graph
by floydw1234
Overview
Visualizes, searches, and queries code graphs to enhance code understanding and assist LLMs in coding tasks.
Installation
python -m badger.main mcp-serverEnvironment Variables
- BADGER_GRAPHDB_ENDPOINT
- BADGER_WORKSPACE_PATH
- BADGER_LANGUAGE
- BADGER_VERBOSE
- BADGER_QWEN_ENDPOINT
- BADGER_GPT_OSS_ENDPOINT
- BADGER_QWEN_MODEL
- BADGER_GPT_OSS_MODEL
- BADGER_LLM_PROVIDER
- BADGER_API_KEY
- BADGER_MAX_RETRIES
- BADGER_TIMEOUT
- BADGER_REQUESTS_PER_MINUTE
- WORKSPACE_PATH
- FLASK_APP
- PORT
Security Notes
The compiled JavaScript for the VSCode extension (`vscode_ext/out/extension.js`) contains `eval(func);`, which is an inherent security risk, even if intended for legitimate dynamic loading. The `tool_edit_file` function (`cli/badger/main.py`) allows modifications to arbitrary files, though it is mitigated by a preview and user confirmation step. The system connects to a Dgraph instance (potentially remote) and external LLMs, introducing network-based risks related to data transmission and endpoint security. The `EmbeddingService` loads external models, which could be a supply chain risk if not from trusted sources.
Similar Servers
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
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.
codegraph-rust
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.