Skip to main content
Glama
Personal Knowledge MCP Server

Personal Knowledge MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KB_TEAMNoTeam name attached to entries alongside the contributor.
KB_DB_PATHNoSQLite database file path; ignored when KB_DATABASE_URL is set.~/.local/share/personal_kb/knowledge.db
KB_MANAGERNoSet to TRUE to enable administrative and ingestion tools such as kb_maintain and kb_ingest.
KB_AUTH_MODENokb-service authentication mode. The auto-spawned local daemon uses none; jwt enables sign-in for the hosted service.
KB_LOG_LEVELNoLogging level: DEBUG, INFO, WARNING, or ERROR.WARNING
KB_PG_REGIONNoAWS region used for RDS IAM token signing.us-east-1
KB_OLLAMA_URLNoOllama API base URL.http://localhost:11434
KB_AWS_PROFILENoNamed AWS profile used for Bedrock authentication instead of a bearer token or explicit access keys.
KB_CONTRIBUTORNoContributor name attached to entries, versions, search events, and audit records.
KB_PG_IAM_AUTHNoSet to TRUE to use RDS or Aurora IAM authentication for PostgreSQL.
KB_PG_POOL_MAXNoMaximum PostgreSQL connection pool size.5
KB_PG_POOL_MINNoMinimum PostgreSQL connection pool size.1
KB_SKIP_SAFETYNoSet to TRUE to bypass secret scanning when storing entries.
KB_DATABASE_URLNoPostgreSQL connection URL passed through to kb-service. When set, PostgreSQL is used instead of SQLite.
KB_OLLAMA_MODELNoOllama model used for generation tasks.qwen3:4b
PERSONAL_KB_URLNoThe kb-service URL. Unset or empty enables local mode, where the MCP server auto-spawns a daemon. Set this for a hosted KB; a loopback URL with a real API key is also treated as hosted.http://127.0.0.1:8765
KB_AGENTIC_QUERYNoEnables the ReAct agent loop for the kb_ask auto strategy. Set to FALSE for single-shot query planning.TRUE
KB_BEDROCK_MODELNoBedrock model ID or cross-region inference profile used for extraction and query tasks.us.anthropic.claude-haiku-5-5
KB_EMBEDDING_DIMNoEmbedding vector dimensions. This must remain equal to the vector table's dimension.1024
KB_INSTANCE_ROLENoInstance role: personal or team. Controls role-specific instructions and tool-name prefixes; leave unset for unprefixed tool names.
ANTHROPIC_API_KEYNoAnthropic API key, required when using the Anthropic LLM provider.
AWS_ACCESS_KEY_IDNoAWS access key ID for legacy SigV4 Bedrock authentication, used together with AWS_SECRET_ACCESS_KEY.
KB_BEDROCK_REGIONNoAWS region for Bedrock.us-east-1
KB_OLLAMA_TIMEOUTNoOllama embedding timeout in seconds.10.0
KB_QUERY_PROVIDERNoLLM provider for query planning and synthesis: anthropic, bedrock, or ollama. Also selects the surprise-capture provider when KB_SURPRISE_PROVIDER is unset.anthropic
KB_ANTHROPIC_MODELNoAnthropic model used for graph enrichment and query planning.claude-haiku-5-5
KB_BEDROCK_TIMEOUTNoBedrock request timeout in seconds.60.0
KB_EMBEDDING_MODELNoEmbedding model. Defaults to qwen3-embedding:0.6b for Ollama and amazon.titan-embed-text-v2:0 for Bedrock.
KB_LLM_DIAGNOSTICSNoControls whether kb-service sends the Claude API cache-diagnostics object. Set to 0, false, off, or no to disable it.1
KB_SYNTHESIS_MODELNoAnthropic model used for cited answers, web chat, and other synthesis-role tasks.claude-sonnet-5-5
KB_SURPRISE_CAPTURENoSurprise-capture mode: off, shadow, or on. Shadow stores candidates only; on also distills them and may write autonomous lesson_learned entries.off
KB_SYNTHESIS_EFFORTNoReasoning effort for synthesis: low, medium, high, xhigh, max, or default to omit the effort field.low
PERSONAL_KB_API_KEYNoBearer token for kb-service. Loopback URLs default to the non-secret local-no-auth sentinel; a real per-machine API key is required for a remote or otherwise hosted KB.
KB_AGENTIC_MAX_CALLSNoMaximum number of tool calls in the agentic query loop.4
KB_ANTHROPIC_TIMEOUTNoAnthropic request timeout in seconds.30.0
KB_OLLAMA_KEEP_ALIVENoPer-request Ollama keep_alive value sent with embedding calls.30m
KB_SURPRISE_PROVIDERNoOverrides the provider used by surprise capture instead of following KB_QUERY_PROVIDER; supports anthropic or bedrock.
AWS_SECRET_ACCESS_KEYNoAWS secret access key for legacy SigV4 Bedrock authentication, used together with AWS_ACCESS_KEY_ID.
HEADLESS_BUILD_ENGINENoWhen set, the stdio client sends this engine string as X-KB-Engine and identifies the harness as claude-code.
KB_ANTHROPIC_THINKINGNoAnthropic thinking setting. Set to default for a non-Claude Bedrock model so no thinking setting is sent.
KB_EMBEDDING_PROVIDERNoEmbedding provider: ollama or bedrock for Amazon Titan Text Embeddings V2.ollama
KB_OLLAMA_LLM_TIMEOUTNoOllama generation timeout in seconds.120.0
KB_EXTRACTION_PROVIDERNoLLM provider for graph enrichment: anthropic, bedrock, or ollama.anthropic
KB_INGEST_MAX_FILE_SIZENoMaximum file size in bytes for ingestion.10485760
KB_NEAR_DUPLICATE_FLOORNoCosine-similarity threshold at which hosted-service entry creation is rejected as a near duplicate.0.88
AWS_BEARER_TOKEN_BEDROCKNoBearer token for AWS Bedrock authentication; the preferred Bedrock authentication method.
KB_SURPRISE_DISTILL_MODELNoModel used by the surprise-capture distiller; Bedrock configurations use Bedrock model IDs.
KB_BEDROCK_SYNTHESIS_MODELNoBedrock model ID or cross-region inference profile used for synthesis.us.anthropic.claude-sonnet-5-5
KB_SURPRISE_LESSON_TTL_DAYSNoExpiration period in days for lessons written through the surprise-capture write policy.30
PERSONAL_KB_DAEMON_STATE_DIRNoDirectory containing local daemon state, including kb-daemon.pid.
KB_WRITE_POLICY_DEFAULT_SURFACENoDefault write-policy surface for API keys without one and for no-auth callers: interactive, headless, or autonomous. Unknown values are treated as headless.interactive

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