MCP Knowledge Base
@gmogmzGithub
关于 MCP Knowledge Base
A lightweight knowledge base assistant using MCP with LLM integration. Features a streamlined server-client architecture combining custom tools with a knowledge base, all accessible via SSE transport. Ideal for building simple AI-powered knowledge assistants.
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Knowledge Base?
A simple MCP client‑server application that uses OpenAI to answer questions from a built‑in knowledge base. It is intended for learning the MCP protocol or building a custom Q&A system.
How to use MCP Knowledge Base?
Install dependencies with Poetry, set your OpenAI API key in a .env file, start the server via poetry run python server.py, and run the client with poetry run python client-sse.py. The client offers two modes: direct tool calls (uncomment the test line) or LLM‑powered interactions that interpret natural‑language queries.
Key features of MCP Knowledge Base
- MCP server exposing tools via decorators
- MCP client with LLM query interpretation
- Knowledge base stored in
data/kb.json - Direct tool‑call mode for testing
- LLM‑powered mode for natural‑language questions
Use cases of MCP Knowledge Base
- Learn the MCP client‑server architecture interactively
- Build a domain‑specific Q&A system with a custom knowledge base
- Prototype tool calls with or without an LLM orchestrator
FAQ from MCP Knowledge Base
What are the runtime requirements?
Python 3.9 or higher, Poetry for dependency management, and a valid OpenAI API key.
How do I change the knowledge base content?
Edit the data/kb.json file with the Q&A pairs you want to use.
How do I add a new server tool?
Define a new Python function decorated with @mcp.tool() inside server.py.
How do I run the client without an LLM?
Uncomment the asyncio.run(test_direct_tool_calls()) line in client-sse.py to call tools directly.
How do I change the LLM model used?
Modify the model parameter in the MCPClient initialization inside client-sse.py.
AI 与智能体 分类下的更多 MCP 服务器
🛡️ A.I.G(AI-Infra-Guard)
TencentA full-stack AI Red Teaming platform securing AI ecosystems via OpenClaw Security Scan, Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.
1Panel
1Panel-dev🔥 1Panel is a modern, open-source VPS control panel — and the only one with native AI agent support. Run Ollama models, deploy OpenClaw agents, and manage your entire server stack from one clean web interface.
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
评论