MCPInstall
mcp-knowledge-base logo

mcp-knowledge-base

by hjlee94 22 stars hjlee94/mcp-knowledge-base

MCP server implementation for private knowledge base

READMEmain

MCP Knowledge Base

Introduction

This repository is for building a private LLM agent that interfaces with an MCP client and server.

The MCP server is designed to connect only to my private Obsidian knowledge base, which is organized using Markdown files.

For more details, please refer to this Medium Article (How I built a local MCP server to connect Obsidian with AI).

For the details of building sLLM agent and MCP client, please check this Medium Article (How I built a Tool-calling Llama Agent with a Custom MCP Server).

This repository includes the following components:

  • MCP Client
  • MCP Server
  • LLM Agent

Components

Arch

MCP Server (knowledge-vault)

The MCP server, named knowledge-vault, manages Markdown files that serve as topic-specific knowledge notes. It provides the following tools:

  • list_knowledges() : list the names and URIs of all knowledges written in the the vault
  • get_knowledge_by_uri(uri:str) : get contents of the knowledge resource by uri

Agent / MCP Client

This repository also contains a simple LLM agent implementation. It currently uses the Llama 3.2 model and leverages the MCP client to retrieve relevant knowledge context.

Chat Interface

The agent can be used via a chat interface built with Streamlit. Please note that it is a prototype and may contain bugs.

below screenshots are showing LLM loading and parameter settings and the interactive chat view.

More Knowledge & Memory MCP servers

Similar servers from the same category.

Supermemory

supermemoryai

Personal knowledge platform that helps collect, organize, and recall information from various sources with end-to-end encryption and optional self-hosting.

Knowledge & Memory

Provides a bridge to the Arc Memory Temporal Knowledge Graph, enabling structured access to repository history, entity relationships, and code provenance without manual navigation of complex codebases.

Knowledge & Memory

Unstructured API

unstructured-io

Integrates with the Unstructured API to enable document processing operations including managing connectors and workflows for extracting structured information from documents without switching tools.

data

Cognee

topoteretes

AI-friendly database and knowledge-management capabilities via various database schemes.

database