dynamic-mcp-server
A web application for creating project-specific knowledge bases accessible to Large Language Models (LLMs) via the Model Context Protocol (MCP) standard.
Dynamic Knowledge Base Platform
A web application for creating project-specific knowledge bases accessible to Large Language Models (LLMs) via the Model Context Protocol (MCP) standard.
Overview
The Dynamic Knowledge Base Platform enables users to upload documents in various formats, processes and structures the data, and hosts a custom MCP server that allows LLMs to access this information as context for generating more accurate and relevant responses.
Key Features
- Document Processing: Upload and process documents in various formats (PDFs, Word docs, text, code, etc.)
- Dynamic Context: Continuously update knowledge bases with new or modified documents
- MCP Server: Compliant with the Model Context Protocol standard for LLM access
- Security: Strong authentication, authorization, and data protection
- Responsive UI: Intuitive interface that works on both desktop and mobile devices
Technology Stack
- Backend: Go
- Frontend: React with TypeScript
- Database: PostgreSQL with pgvector extension
- Authentication: JWT tokens and API keys
- Protocol: Model Context Protocol (MCP)
Project Structure
dynamic_knowledge_base/
āāā backend/ # Go backend
ā āāā cmd/ # Application entry points
ā ā āāā server/ # Main server application
ā āāā internal/ # Internal packages
ā āāā api/ # API handlers and routing
ā āāā auth/ # Authentication and authorization
ā āāā document/ # Document processing
ā āāā knowledge/ # Knowledge base management
ā āāā mcp/ # MCP server implementation
ā āāā storage/ # Database and storage
āāā frontend/ # React frontend
ā āāā public/ # Static files
ā āāā src/ # Source code
ā āāā components/ # React components
ā āāā pages/ # Page components
ā āāā services/ # API services
ā āāā hooks/ # Custom React hooks
ā āāā utils/ # Utility functions
āāā docs/ # Documentation
ā āāā architecture_design.md # System architecture
ā āāā project_documentation.md # Technical documentation
ā āāā requirements_analysis.md # Requirements analysis
ā āāā user_guide.md # User guide
āāā README.md # Project overview
Getting Started
Prerequisites
- Go 1.18 or higher
- Node.js 16 or higher
- PostgreSQL 14 or higher with pgvector extension
Backend Setup
- Clone the repository
- Navigate to the backend directory
- Install dependencies:
go mod download
- Run the server:
go run cmd/server/main.go
Frontend Setup
- Navigate to the frontend directory
- Install dependencies:
npm install
- Start the development server:
npm start
Deployment
Backend Deployment
- Build the backend:
cd backend go build -o server cmd/server/main.go
- Run the server:
./server
Frontend Deployment
- Build the frontend:
cd frontend npm run build
- Serve the build directory with a web server of your choice
Documentation
- : System architecture and component interactions
- : Technical implementation details
- : Project requirements and specifications
- : Instructions for using the platform
MCP Integration
To connect an LLM to your knowledge base:
- Create an MCP connection in the platform UI
- Configure your LLM to use the WebSocket endpoint:
ws://your-server-address/ws?api_key=YOUR_API_KEY
- The LLM will now have access to your project's documents and can use them as context for generating responses
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- The MCP standard specification
- Go and React communities for their excellent documentation and tools
Related MCP Servers
View all knowledge_and_memory servers āgit-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Knowledge Graph Memory Server
by modelcontextprotocol
A basic implementation of persistent memory using a local knowledge graph, allowing Claude to remember information about the user across chats.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.
rust-docs-mcp-server
by Govcraft
The Rust Docs MCP Server provides an up-to-date knowledge source for specific Rust crates, enhancing the accuracy of AI coding assistants by allowing them to query current documentation.
mindmap-mcp-server
by YuChenSSR
A Model Context Protocol (MCP) server for converting Markdown content to interactive mindmaps.
algorand-mcp
by GoPlausible
This is a Model Context Protocol (MCP) implementation for Algorand blockchain interactions, providing a server package for blockchain interactions and a client package for wallet management and transaction signing.
basic-memory
by basicmachines-co
Basic Memory is a tool that allows users to build a persistent knowledge base through natural conversations with LLMs, storing information in Markdown files.