LocalKB
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
LocalKB
An MCP (Model Context Protocol) server for local knowledge base operations. LocalKB allows agents to create, manage, and search personal knowledge bases using semantic search and document chunking.
Before using LocalKB, download the required models to avoid startup delays:
pip install huggingface-hub
huggingface-cli download Qwen/Qwen3-Embedding-0.6B
huggingface-cli download Qwen/Qwen3-Reranker-0.6BExpected timings, based on my M1 Max MacBook Pro:
The first use of
add_text_to_kborsearch_kbin a session will load the models into memory, taking roughly 10 extra seconds.Searches take roughly 10 seconds (results are retrieved in about 0.5 seconds, then the reranker model spends about 1.5-2 seconds to score each result.)
Available Tools
Knowledge Base Management
list_kbs - List all available knowledge bases
No arguments
create_kb - Create a new knowledge base
kb_name(string): Name for the knowledge basedescription(string): Description of the knowledge base
Content Management
add_text_to_kb - Add text content directly to a knowledge base
kb_name(string): Name of the knowledge base to add content tosource(string): Unique identifier for the text content (e.g., filename, document title)text(string): The text content to add to the knowledge basemetadata(object, optional): Optional metadata dict to attach to all content
search_kb - Search for relevant content using semantic search
kb_name(string): Name of the knowledge base to searchquery(string): Search query stringfilters(object, optional): Optional ChromaDB metadata filters to narrow search
Related MCP server: qs-rag
Add to Claude
Add to your Claude Code MCP configuration:
claude mcp add-json -s user LocalKB '{"command": "uvx", "args": ["--from", "git+https://github.com/RoryMB/LocalKB@main", "localkb"]}'Add to your Claude Desktop MCP configuration:
{
"mcpServers": {
"LocalKB": {
"command": "uvx",
"args": ["--from", "git+https://github.com/RoryMB/LocalKB@main", "localkb"]
}
}
}Manual Use
Command Line
Run this command to open an interactive menu with options to use the various tools:
uvx --from git+https://github.com/RoryMB/LocalKB@main localkb --cliPython Import
Run Python files with this command if you do not want to clone the repo:
uv run --with git+https://github.com/RoryMB/LocalKB@main file.pyExample Python file:
from localkb.tools import (
create_kb,
add_text_to_kb,
search_kb,
list_kbs
)
def main():
# Create a knowledge base
result = create_kb("my-docs", "Project documentation")
print(result)
# Add content
result = add_text_to_kb(
"my-docs",
"installation-guide",
"To install this project, run: pip install -e ."
)
print(result)
# Search for content
results = search_kb("my-docs", "how to install")
for result in results:
print(f"Content: {result['content']}")
print(f"Source: {result['metadata']['source']}")
# Run the function
main()Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Private, multimodal knowledge store for agents: hybrid search with cited, provenance-backed results.
Universal persistent memory and knowledge retrieval layer for AI agents and LLMs.
Related MCP Servers
- FlicenseAqualityNot gradedmaintenanceA local-first knowledge base server that enables AI clients to store, retrieve, and manage documents using semantic search. Provides privacy-focused, offline-capable memory for AI assistants with tools for ingesting, querying, updating, and deleting knowledge.721 npm-
- AlicenseNot gradedqualityDmaintenanceEnables natural-language semantic search over a fully local knowledge base, keeping embeddings, storage, and retrieval on the machine.MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to search and retrieve relevant Markdown knowledge-base chunks through local hybrid retrieval, with tools for reindexing and viewing index statistics, without external services or LLM tokens.MIT
- AlicenseNot gradedqualityDmaintenanceProvides persistent memory and local retrieval-augmented generation for AI coding agents, enabling semantic code and documentation search, lesson recording and recall, GitHub issue and PR import, and cross-project knowledge sharing.8MIT