MCP Knowledgebase Llm
A simple MCP client-server project implemented in Python, supporting direct tool invocation and LLM interaction based on OpenAI.
rating : 2 points
downloads : 13
What is MCP Knowledge Base Server?
The MCP (Model Context Protocol) knowledge base server is an intelligent question-answering system that combines the capabilities of a local knowledge base and AI models. It can answer questions in specific domains and perform various tool functions.How to use MCP Knowledge Base Server?
Through a simple client program, you can ask questions in natural language or directly invoke various tool functions provided by the server. The system will automatically understand your questions and provide the best answers.Applicable scenarios
Suitable for scenarios that require quick access to specific domain knowledge, execution of automated tasks, or interaction with AI models, such as technical support, knowledge query, and automated processes.Main features
Knowledge base queryProvide accurate domain-specific answers based on the local knowledge base
Tool invocationSupport the invocation of various functional tools registered on the server side
AI integrationIntegrate with AI models such as OpenAI to provide intelligent question-answering capabilities
Dual-mode interactionSupport two modes: direct tool invocation and LLM-driven intelligent interaction
Advantages and limitations
Advantages
Simple and easy-to-use client-server architecture
Combine the advantages of local knowledge base and AI models
Support multiple interaction methods
Easy to expand new functions
Limitations
An OpenAI API key is required to use AI functions
The local knowledge base needs to be manually maintained and updated
The current functions are relatively basic
How to use
Install dependencies
Use Poetry to install all dependencies required by the project
Configure API key
Create a.env file in the project root directory or parent directory and add your OpenAI API key
Start the server
Start the MCP server in a terminal
Run the client
Run the client program in another terminal
Usage examples
Query the definition of MCPGet basic information about the Model Context Protocol
Compare transport protocolsUnderstand the differences between different transport protocols
Direct tool invocationBypass the AI and directly invoke specific tool functions
Frequently Asked Questions
What Python version do I need?
How to add new tool functions?
How to update the knowledge base?
Can I change the AI model?
Related resources
Python official website
The official website of the Python programming language
Poetry documentation
The official documentation of the Python dependency management tool Poetry
OpenAI API documentation
The official reference documentation of the OpenAI API
Featured MCP Services

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
823
4.3 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
79
4.3 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
130
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
554
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.6K
4.5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
745
4.8 points