Skip to content

hjlee94/mcp-knowledge-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

MCP agent/client/server implementation for private knowledge base

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors