Minimalist Knowledge Base MCP

Minimalist Knowledge Base MCP

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.

Category
Visit Server

README

Minimalist Knowledge Base MCP

CI npm version

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:

# Create or edit ~/.npmrc
echo "@cmwen:registry=https://npm.pkg.github.com" >> ~/.npmrc
# You'll need a GitHub personal access token with `read:packages` scope

Then install the package:

npm install @cmwen/min-kb-mcp

Or run directly with:

npx @cmwen/min-kb-mcp

Quick Start

  1. Start the MCP server for a new knowledge base:

    npx min-kb-mcp start --kb my-notes
    
  2. 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 file
  • articles/: 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 keywords
  • getArticle: Retrieve an article by ID
  • updateArticle: Update an existing article's content and keywords
  • deleteArticle: Delete an article
  • searchArticles: Full-text search with optional time filters
  • findLinkedArticles: Find articles sharing keywords
  • getArticlesByTimeRange: Get articles within a time range
  • listArticles: List all articles
  • getArticleStats: Get statistics about the knowledge base

Development

Prerequisites

  • Node.js 18 or higher
  • npm or yarn

Setup

  1. Clone the repository:

    git clone git@github.com:cmwen/min-kb-mcp.git
    cd min-kb-mcp
    
  2. Install dependencies:

    npm install
    
  3. Run in development mode:

    npm run start -- --kb test-kb
    

Scripts

  • npm start: Start the MCP server in standard stdio mode
  • npm run dev: Start the development server with HTTP transport on port 9876
  • npm run build: Build the TypeScript code
  • npm run lint: Run ESLint
  • npm run format: Format code with Prettier

Development Server

The project supports two transport modes:

  1. Standard Mode (stdio):

    npm start -- --kb my-kb
    

    This is the default mode, suitable for production use with LLM integrations.

  2. Development Mode (HTTP):

    npm run dev
    

    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:

MCP_TRANSPORT=http MCP_PORT=3000 npm start -- --kb my-kb

Using MCP Inspector

When running in development mode, you can use the MCP Inspector to interact with your server:

  1. Start the development server:

    npm run dev
    
  2. Open MCP Inspector and connect to:

    http://localhost:9876/mcp
    

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured