Skip to main content
Glama
Repo Knowledge Graph MCP Server

Repo Knowledge Graph MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoHTTP address.0.0.0.0
PORTNoHTTP port.4000
MCP_PATHNoHTTP path of the MCP endpoint./mcp
REPO_URLNoGit URL to clone (HTTPS or git@ SSH form; private repositories with GITHUB_TOKEN).
CLONE_DIRNoKeep the clone of --repo-url (required for diff_file_versions).
ENRICHERSNoFramework 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_LEVELNoLog level (logs go to stderr).INFO
REPO_PATHNoLocal directory, .zip / .tar.gz archive or single file used as the source of the graph.
TRANSPORTNoServer transport: stdio, http or sse.stdio
GRAPH_FILENoLoad a graph built beforehand; takes precedence over the other sources.
INDEX_TYPENoSearch index type: keyword-only, embedding-only or hybrid.keyword-only
MODEL_NAMENoOpenAI-compatible chat model name (used with --describe).
OSV_LOOKUPNoOpt-in OSV lookup of check_dependencies; sends dependency coordinates to osv.dev (true/false).false
GIT_HISTORYNoAdd commit nodes (true/false).false
INDEX_NODESNoWhether to build the search index (true/false).true
MAX_COMMITSNoCommits read with GIT_HISTORY.200
SERVER_NAMENoName announced to clients.knowledge-graph-mcp-server
GITHUB_TOKENNoToken for private repositories; never written to logs, URLs or .git/config.
LANCEDB_PATHNoLanceDB directory../local_code_index_db
OPENAI_TOKENNoOpenAI-compatible chat API token (used with --describe).
EMBEDDER_TYPENoEmbedder: sentence-transformers (local) or openai (any OpenAI-compatible API).sentence-transformers
INDEX_BACKENDNoSearch backend: lancedb or weaviate.lancedb
LANGFUSE_HOSTNoLangfuse host for tracing of tool calls (disabled when unset).
MAX_FILE_SIZENoLarger files are skipped (bytes).1000000
WEAVIATE_HOSTNoWeaviate backend host.localhost
WEAVIATE_PORTNoWeaviate backend port.8080
DESCRIBE_NODESNoGenerate an LLM summary of every chunk (needs an OpenAI-compatible endpoint).false
MAX_CALL_EDGESNoCap on calls / uses_type edges for very large repositories (0 means unlimited).0
OSV_CACHE_FILENoCache file for OSV lookups.~/.cache/repo-knowledge-graph/osv.json
CODE_CHUNK_SIZENoChunking size (characters).2000
LLM_CONCURRENCYNoLLM call concurrency.8
OPENAI_BASE_URLNoOpenAI-compatible chat API base URL (used with --describe).http://0.0.0.0:8000/v1
REQUEST_TIMEOUTNoLLM request timeout.240
EMBED_MODEL_NAMENoEmbedding model name.Salesforce/SFR-Embedding-Code-400M_R
EXTRACT_ENTITIESNoWhether to extract entities (true/false).true
ALPHA_SEARCH_VALUENoWeaviate backend alpha search value.0.8
CODE_CHUNK_OVERLAPNoChunking overlap (characters).0
GITHUB_OAUTH_TOKENNoAlternative token for private repositories.
MASK_CONFIG_VALUESNoMask secret-looking configuration values in the graph, the search index and tool outputs (true/false).true
OPENAI_EMBED_TOKENNoOpenAI-compatible embedding API token.
STOP_AFTER_ATTEMPTNoLLM retry stop-after-attempt setting.5
WEAVIATE_GRPC_PORTNoWeaviate backend gRPC port.50051
LANGFUSE_PUBLIC_KEYNoLangfuse public key for tracing of tool calls (disabled when unset).
LANGFUSE_SECRET_KEYNoLangfuse secret key for tracing of tool calls (disabled when unset).
WAIT_BETWEEN_RETRIESNoWait between LLM retries.2
OPENAI_EMBED_BASE_URLNoOpenAI-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

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources