Personal Knowledge MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| KB_TEAM | No | Team name attached to entries alongside the contributor. | |
| KB_DB_PATH | No | SQLite database file path; ignored when KB_DATABASE_URL is set. | ~/.local/share/personal_kb/knowledge.db |
| KB_MANAGER | No | Set to TRUE to enable administrative and ingestion tools such as kb_maintain and kb_ingest. | |
| KB_AUTH_MODE | No | kb-service authentication mode. The auto-spawned local daemon uses none; jwt enables sign-in for the hosted service. | |
| KB_LOG_LEVEL | No | Logging level: DEBUG, INFO, WARNING, or ERROR. | WARNING |
| KB_PG_REGION | No | AWS region used for RDS IAM token signing. | us-east-1 |
| KB_OLLAMA_URL | No | Ollama API base URL. | http://localhost:11434 |
| KB_AWS_PROFILE | No | Named AWS profile used for Bedrock authentication instead of a bearer token or explicit access keys. | |
| KB_CONTRIBUTOR | No | Contributor name attached to entries, versions, search events, and audit records. | |
| KB_PG_IAM_AUTH | No | Set to TRUE to use RDS or Aurora IAM authentication for PostgreSQL. | |
| KB_PG_POOL_MAX | No | Maximum PostgreSQL connection pool size. | 5 |
| KB_PG_POOL_MIN | No | Minimum PostgreSQL connection pool size. | 1 |
| KB_SKIP_SAFETY | No | Set to TRUE to bypass secret scanning when storing entries. | |
| KB_DATABASE_URL | No | PostgreSQL connection URL passed through to kb-service. When set, PostgreSQL is used instead of SQLite. | |
| KB_OLLAMA_MODEL | No | Ollama model used for generation tasks. | qwen3:4b |
| PERSONAL_KB_URL | No | The 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_QUERY | No | Enables the ReAct agent loop for the kb_ask auto strategy. Set to FALSE for single-shot query planning. | TRUE |
| KB_BEDROCK_MODEL | No | Bedrock model ID or cross-region inference profile used for extraction and query tasks. | us.anthropic.claude-haiku-5-5 |
| KB_EMBEDDING_DIM | No | Embedding vector dimensions. This must remain equal to the vector table's dimension. | 1024 |
| KB_INSTANCE_ROLE | No | Instance role: personal or team. Controls role-specific instructions and tool-name prefixes; leave unset for unprefixed tool names. | |
| ANTHROPIC_API_KEY | No | Anthropic API key, required when using the Anthropic LLM provider. | |
| AWS_ACCESS_KEY_ID | No | AWS access key ID for legacy SigV4 Bedrock authentication, used together with AWS_SECRET_ACCESS_KEY. | |
| KB_BEDROCK_REGION | No | AWS region for Bedrock. | us-east-1 |
| KB_OLLAMA_TIMEOUT | No | Ollama embedding timeout in seconds. | 10.0 |
| KB_QUERY_PROVIDER | No | LLM 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_MODEL | No | Anthropic model used for graph enrichment and query planning. | claude-haiku-5-5 |
| KB_BEDROCK_TIMEOUT | No | Bedrock request timeout in seconds. | 60.0 |
| KB_EMBEDDING_MODEL | No | Embedding model. Defaults to qwen3-embedding:0.6b for Ollama and amazon.titan-embed-text-v2:0 for Bedrock. | |
| KB_LLM_DIAGNOSTICS | No | Controls whether kb-service sends the Claude API cache-diagnostics object. Set to 0, false, off, or no to disable it. | 1 |
| KB_SYNTHESIS_MODEL | No | Anthropic model used for cited answers, web chat, and other synthesis-role tasks. | claude-sonnet-5-5 |
| KB_SURPRISE_CAPTURE | No | Surprise-capture mode: off, shadow, or on. Shadow stores candidates only; on also distills them and may write autonomous lesson_learned entries. | off |
| KB_SYNTHESIS_EFFORT | No | Reasoning effort for synthesis: low, medium, high, xhigh, max, or default to omit the effort field. | low |
| PERSONAL_KB_API_KEY | No | Bearer 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_CALLS | No | Maximum number of tool calls in the agentic query loop. | 4 |
| KB_ANTHROPIC_TIMEOUT | No | Anthropic request timeout in seconds. | 30.0 |
| KB_OLLAMA_KEEP_ALIVE | No | Per-request Ollama keep_alive value sent with embedding calls. | 30m |
| KB_SURPRISE_PROVIDER | No | Overrides the provider used by surprise capture instead of following KB_QUERY_PROVIDER; supports anthropic or bedrock. | |
| AWS_SECRET_ACCESS_KEY | No | AWS secret access key for legacy SigV4 Bedrock authentication, used together with AWS_ACCESS_KEY_ID. | |
| HEADLESS_BUILD_ENGINE | No | When set, the stdio client sends this engine string as X-KB-Engine and identifies the harness as claude-code. | |
| KB_ANTHROPIC_THINKING | No | Anthropic thinking setting. Set to default for a non-Claude Bedrock model so no thinking setting is sent. | |
| KB_EMBEDDING_PROVIDER | No | Embedding provider: ollama or bedrock for Amazon Titan Text Embeddings V2. | ollama |
| KB_OLLAMA_LLM_TIMEOUT | No | Ollama generation timeout in seconds. | 120.0 |
| KB_EXTRACTION_PROVIDER | No | LLM provider for graph enrichment: anthropic, bedrock, or ollama. | anthropic |
| KB_INGEST_MAX_FILE_SIZE | No | Maximum file size in bytes for ingestion. | 10485760 |
| KB_NEAR_DUPLICATE_FLOOR | No | Cosine-similarity threshold at which hosted-service entry creation is rejected as a near duplicate. | 0.88 |
| AWS_BEARER_TOKEN_BEDROCK | No | Bearer token for AWS Bedrock authentication; the preferred Bedrock authentication method. | |
| KB_SURPRISE_DISTILL_MODEL | No | Model used by the surprise-capture distiller; Bedrock configurations use Bedrock model IDs. | |
| KB_BEDROCK_SYNTHESIS_MODEL | No | Bedrock model ID or cross-region inference profile used for synthesis. | us.anthropic.claude-sonnet-5-5 |
| KB_SURPRISE_LESSON_TTL_DAYS | No | Expiration period in days for lessons written through the surprise-capture write policy. | 30 |
| PERSONAL_KB_DAEMON_STATE_DIR | No | Directory containing local daemon state, including kb-daemon.pid. | |
| KB_WRITE_POLICY_DEFAULT_SURFACE | No | Default 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
| 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