Skip to main content
Glama
admin0330

KnowledgeBase MCP

by admin0330

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KB_VOLUMEYesPath to the knowledge base Database directory on external storage, e.g. /Volumes/KnowledgeBase/Database.
KB_ENABLE_SEMANTICNoSet to "1" to enable optional FastEmbed local vector semantic retrieval.0

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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
kb_statusA

Report whether the drive is mounted and basic index statistics.

kb_searchA

Search the knowledge base and return the most relevant text chunks.

:param query: Natural-language question or keywords (Chinese/English). :param top_k: Number of chunks to return (1-30). :param mode: "keyword" (BM25/substring), "semantic" (embeddings), or "hybrid" (both, rank-fused). "hybrid" is recommended.

kb_reindexA

Scan the volume and update the search index incrementally.

:param full: When true, re-extract every file instead of only changed ones.

kb_read_documentA

Return the extracted plain text of one document (for quoting/summarising).

:param relpath: Path relative to the volume root, e.g. _Inbox/foo.pdf. :param max_chars: Maximum characters to return (1-50000).

kb_list_treeC

List the directory tree under subdir (depth-limited).

kb_scan_inboxA

List files in _Inbox with a short content preview for triage.

Use the previews to decide a target category and a new name, then call :func:kb_move_file.

kb_create_directoryB

Create a directory (and parents) under the volume root.

kb_move_fileB

Move (and optionally rename) a file into a category directory.

The search index is updated in place — no reindex needed afterwards.

:param src_rel: Current path, e.g. _Inbox/report.pdf. :param dest_dir_rel: Target directory, e.g. 01_Documents. :param new_name: Optional new filename; keeps the original when empty.

kb_rename_fileA

Rename a file in place (same directory). Index is kept in sync.

kb_logB

Append a line to the organize log (.mcp_meta/organize.log).

kb_update_index_mdA

Regenerate the root INDEX.md from the current directory contents.

Writes atomically (temp file + rename) so an interrupted run never leaves a truncated index.

kb_health_checkA

Audit the knowledge base for common problems.

Reports: files still in _Inbox (backlog), files on disk that are not referenced in INDEX.md (orphans), INDEX.md links that point to missing files (dead links), and files not yet in the search index.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 12 tools

Disambiguation4/5

Most tools target a clearly distinct operation (search, read, move, rename, status, health check). Minor overlap exists between kb_move_file and kb_rename_file (move also renames), and the three 'index' concepts (kb_reindex, kb_update_index_md, kb_status) could be momentarily confused, but descriptions draw the boundaries well.

Naming Consistency4/5

All tools share a consistent kb_ prefix with mostly verb_noun snake_case names (kb_search, kb_read_document, kb_create_directory, kb_move_file). A couple of names are noun-only (kb_status, kb_log) but they remain readable and predictable.

Tool Count5/5

Twelve tools is well within the healthy range and each earns its place: search, read, browse, organize, index maintenance, and auditing. Nothing feels padded or redundant at the set level.

Completeness3/5

The lifecycle is covered for browsing, reading, moving, renaming, and index upkeep, plus a health audit. However there is no delete/archive operation and no way to create or write a document/file (only directories), which are noticeable gaps for a file-organizing knowledge base workflow.

Maintenance

ActivityMaintained
ResponsivenessNo issues