Minimalist Knowledge Base MCP
A minimalist, file-based knowledge base server designed to be operated programmatically by Large Language Models (LLMs) and developers. It functions as a headless MCP (Model Context Protocol) server, exposing a suite of tools for managing knowledge.
Features
- Multi-Knowledge Base Support: Manage multiple independent knowledge bases
- Dual Storage System:
- Markdown files as the source of truth
- SQLite database for efficient indexing and searching
- Full-Text Search: Using SQLite FTS5
- Cross-Platform: Works on Windows, macOS, and Linux
- LLM-First Design: Built specifically for LLM interaction via MCP
Installation
First, authenticate with GitHub Packages:
Then install the package:
Or run directly with:
Quick Start
- Start the MCP server for a new knowledge base:
- The server will create:
- A directory for your knowledge base in the standard application support location
- A SQLite database for indexing
- An articles directory for markdown files
Storage Structure
Files are stored in your system's standard application support directory:
- macOS:
~/Library/Application Support/min-kb-mcp/<kb-name>/
- Linux:
~/.local/share/min-kb-mcp/<kb-name>/
- Windows:
%APPDATA%\\min-kb-mcp\\<kb-name>\\
Each knowledge base contains:
<kb-name>.sqlite
: The SQLite database filearticles/
: Directory containing markdown files
MCP Tools
The following tools are available to LLMs through the MCP server:
createArticle
: Create a new article with content and optional keywordsgetArticle
: Retrieve an article by IDupdateArticle
: Update an existing article's content and keywordsdeleteArticle
: Delete an articlesearchArticles
: Full-text search with optional time filtersfindLinkedArticles
: Find articles sharing keywordsgetArticlesByTimeRange
: Get articles within a time rangelistArticles
: List all articlesgetArticleStats
: Get statistics about the knowledge base
Development
Prerequisites
- Node.js 18 or higher
- npm or yarn
Setup
- Clone the repository:
- Install dependencies:
- Run in development mode:
Scripts
npm start
: Start the MCP server in standard stdio modenpm run dev
: Start the development server with HTTP transport on port 9876npm run build
: Build the TypeScript codenpm run lint
: Run ESLintnpm run format
: Format code with Prettier
Development Server
The project supports two transport modes:
- Standard Mode (stdio):This is the default mode, suitable for production use with LLM integrations.
- Development Mode (HTTP):This starts a development server that:
- Uses HTTP transport instead of stdio
- Runs on port 9876
- Creates a 'dev-kb' knowledge base
- Enables CORS for browser clients
- Supports multiple concurrent connections
- Provides better debugging capabilities
You can also customize the transport mode and port using environment variables:
Using MCP Inspector
When running in development mode, you can use the MCP Inspector to interact with your server:
- Start the development server:
- Open MCP Inspector and connect to:
The inspector allows you to:
- Browse available tools and resources
- Execute tools with different parameters
- View server responses and error messages
- Test server functionality interactively
This is particularly useful for:
- Development and debugging
- Testing new features
- Understanding tool behavior
- Verifying error handling
Contributing
Contributions are welcome! Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables LLMs to manage file-based knowledge bases with dual storage (Markdown + SQLite). Supports creating, searching, and organizing articles across multiple knowledge bases with full-text search capabilities.
Related MCP Servers
- -securityFlicense-qualityEnables LLMs to perform semantic search and document management using ChromaDB, supporting natural language queries with intuitive similarity metrics for retrieval augmented generation applications.Last updated -Python
- AsecurityAlicenseAqualityProvides tools for listing and retrieving content from different knowledge bases using semantic search capabilities.Last updated -2120TypeScriptThe Unlicense
- -securityFlicense-qualityA document knowledge base system that enables users to upload PDFs and query them semantically through a web interface or via the Model Context Protocol, allowing integration with AI tools like Cursor.Last updated -14Python
- -securityFlicense-qualityIntelligent knowledge base management tool that enables searching, browsing, and analyzing documents across multiple datasets with smart document analysis capabilities.Last updated -14Python