universal-knowledge-base-mcp-server
Allows indexing and searching a local Markdown knowledge base, using embeddings to enable retrieval over the indexed content.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@universal-knowledge-base-mcp-serverSearch the knowledge base for information about MCP protocol design"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Universal knowledge base MCP server
The main idea of this project is to create universal MCP server core that can be reused with different knowledge bases. So there will be many different abstraction layers to control it.
Indexing
The Markdown knowledge base can be indexed recursively with a local
sentence-transformers model:
uv run index-knowledge-baseConfigure the knowledge base with environment variables or a .env file:
UKB_KNOWLEDGE_BASE_PATH=/path/to/knowledge-base
UKB_EMBEDDING_MODEL_NAME=sentence-transformers/all-MiniLM-L6-v2
UKB_EMBEDDING_DEVICE=cpu
UKB_NORMALIZE_EMBEDDINGS=true
UKB_VECTOR_DATABASE_FOLDER=.knowledge_base
UKB_CHUNK_SIZE=1000
UKB_CHUNK_OVERLAP=150
UKB_INDEX_BATCH_SIZE=100
UKB_RETRIEVAL_K=5
UKB_FORCE_UPDATE=false
UKB_INDEX_LOCK_TIMEOUT_SECONDS=60UKB_KNOWLEDGE_BASE_PATH is required. Indexing and retrieval read all runtime
configuration from these settings; the Python API accepts only the search
query or no arguments. Chroma data and the SQLite record manager are stored in
the configured vector database folder. Indexing is serialized with a lock, and
the two stores are reconciled after interrupted runs.
How to run
Server
uv run universal-knowledge-base-mcp-serverRelated MCP server: okf
Tests
uv run pytestThis server cannot be deployed
Maintenance
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Related MCP Servers
- AlicenseAqualityDmaintenanceLocal-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.36MIT
- AlicenseNot gradedqualityAmaintenanceBuilds a keyword-searchable index from markdown documentation bundles and serves it to LLM agents via MCP, with retrieval logging and reporting for curation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables retrieval-augmented generation over a local markdown corpus, allowing grounded, cited answers via an MCP tool or CLI.9MIT
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that enables semantic search and retrieval over a local Markdown knowledge base with heading-aware chunking and multilingual embeddings.MIT