Repo Knowledge Graph MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | HTTP address. | 0.0.0.0 |
| PORT | No | HTTP port. | 4000 |
| MCP_PATH | No | HTTP path of the MCP endpoint. | /mcp |
| REPO_URL | No | Git URL to clone (HTTPS or git@ SSH form; private repositories with GITHUB_TOKEN). | |
| CLONE_DIR | No | Keep the clone of --repo-url (required for diff_file_versions). | |
| ENRICHERS | No | Framework enrichers: auto, none, or a comma-separated list of build, supply_chain, spring_config, spring_beans, openapi, spring_web, web_routes, graphql, spring_data_jpa, mybatis, spring_messaging, spring_tests, spring_security, security. | auto |
| LOG_LEVEL | No | Log level (logs go to stderr). | INFO |
| REPO_PATH | No | Local directory, .zip / .tar.gz archive or single file used as the source of the graph. | |
| TRANSPORT | No | Server transport: stdio, http or sse. | stdio |
| GRAPH_FILE | No | Load a graph built beforehand; takes precedence over the other sources. | |
| INDEX_TYPE | No | Search index type: keyword-only, embedding-only or hybrid. | keyword-only |
| MODEL_NAME | No | OpenAI-compatible chat model name (used with --describe). | |
| OSV_LOOKUP | No | Opt-in OSV lookup of check_dependencies; sends dependency coordinates to osv.dev (true/false). | false |
| GIT_HISTORY | No | Add commit nodes (true/false). | false |
| INDEX_NODES | No | Whether to build the search index (true/false). | true |
| MAX_COMMITS | No | Commits read with GIT_HISTORY. | 200 |
| SERVER_NAME | No | Name announced to clients. | knowledge-graph-mcp-server |
| GITHUB_TOKEN | No | Token for private repositories; never written to logs, URLs or .git/config. | |
| LANCEDB_PATH | No | LanceDB directory. | ./local_code_index_db |
| OPENAI_TOKEN | No | OpenAI-compatible chat API token (used with --describe). | |
| EMBEDDER_TYPE | No | Embedder: sentence-transformers (local) or openai (any OpenAI-compatible API). | sentence-transformers |
| INDEX_BACKEND | No | Search backend: lancedb or weaviate. | lancedb |
| LANGFUSE_HOST | No | Langfuse host for tracing of tool calls (disabled when unset). | |
| MAX_FILE_SIZE | No | Larger files are skipped (bytes). | 1000000 |
| WEAVIATE_HOST | No | Weaviate backend host. | localhost |
| WEAVIATE_PORT | No | Weaviate backend port. | 8080 |
| DESCRIBE_NODES | No | Generate an LLM summary of every chunk (needs an OpenAI-compatible endpoint). | false |
| MAX_CALL_EDGES | No | Cap on calls / uses_type edges for very large repositories (0 means unlimited). | 0 |
| OSV_CACHE_FILE | No | Cache file for OSV lookups. | ~/.cache/repo-knowledge-graph/osv.json |
| CODE_CHUNK_SIZE | No | Chunking size (characters). | 2000 |
| LLM_CONCURRENCY | No | LLM call concurrency. | 8 |
| OPENAI_BASE_URL | No | OpenAI-compatible chat API base URL (used with --describe). | http://0.0.0.0:8000/v1 |
| REQUEST_TIMEOUT | No | LLM request timeout. | 240 |
| EMBED_MODEL_NAME | No | Embedding model name. | Salesforce/SFR-Embedding-Code-400M_R |
| EXTRACT_ENTITIES | No | Whether to extract entities (true/false). | true |
| ALPHA_SEARCH_VALUE | No | Weaviate backend alpha search value. | 0.8 |
| CODE_CHUNK_OVERLAP | No | Chunking overlap (characters). | 0 |
| GITHUB_OAUTH_TOKEN | No | Alternative token for private repositories. | |
| MASK_CONFIG_VALUES | No | Mask secret-looking configuration values in the graph, the search index and tool outputs (true/false). | true |
| OPENAI_EMBED_TOKEN | No | OpenAI-compatible embedding API token. | |
| STOP_AFTER_ATTEMPT | No | LLM retry stop-after-attempt setting. | 5 |
| WEAVIATE_GRPC_PORT | No | Weaviate backend gRPC port. | 50051 |
| LANGFUSE_PUBLIC_KEY | No | Langfuse public key for tracing of tool calls (disabled when unset). | |
| LANGFUSE_SECRET_KEY | No | Langfuse secret key for tracing of tool calls (disabled when unset). | |
| WAIT_BETWEEN_RETRIES | No | Wait between LLM retries. | 2 |
| OPENAI_EMBED_BASE_URL | No | OpenAI-compatible embedding API base URL. | http://0.0.0.0:8001/v1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues