
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A demonstration project pairing an MCP knowledge base server, which exposes company-policy Q&A as a tool, with an OpenAI-powered MCP client.
MCP Knowledge Base Assistant is cataloged as an MCP server attributed to kofiadom. A demonstration project pairing an MCP knowledge base server, which exposes company-policy Q&A as a tool, with an OpenAI-powered MCP client. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Knowledge Base Assistant are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, the README states that more question-answer pairs can be added to the data/kb.json file to expand the knowledge base.
Additional tools can be added by defining functions with the @mcp.tool() decorator in server.py.
README.md · 95e78bdc8c32 · Fetched 2026-11-13 13:33:03 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A demonstration of the Model Context Protocol (MCP) that connects an OpenAI-powered client to a knowledge base server. This project showcases how to build a simple but powerful AI assistant that can answer questions about company policies by accessing a knowledge base through MCP.
This project demonstrates:
The system allows users to ask questions in natural language about company policies, and the AI will retrieve relevant information from the knowledge base to provide accurate answers.
The project follows the MCP client-host-server architecture:
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ │ │ │ │ │
│ OpenAI Model │◄────┤ MCP Client │◄────┤ MCP Server │
│ (GPT-4o) │ │ (client.py) │ │ (server.py) │
│ │ │ │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ │
│ Knowledge Base │
│ (kb.json) │
│ │
└─────────────────┘
Clone the repository:
git clone <repository-url>
cd MCP-Get-Started
Create a virtual environment and install dependencies:
python -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate
pip install -r requirements.txt
Create a .env file in the project root with your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_here
python server.py
# Build the Docker image
docker build -t mcp-server .
# Run the container
docker run -p 8050:8050 mcp-server
With the server running, open a new terminal and run:
python client.py
The client will connect to the server and ask a sample question about the company's equal opportunity policy. You can modify the query in client.py to ask different questions about company policies.
Example output:
Connected to server with tools:
- get_knowledge_base: Retrieve the entire knowledge base as a formatted string.
Query: What is the company's equal opportunity policy?
Response: The company's equal opportunity policy is as follows: The company is an equal opportunity employer and prohibits discrimination based on race, gender, age, religion, disability, or any other protected characteristic.
server.py: MCP server implementation that exposes the knowledge baseclient.py: MCP client that connects to the server and integrates with OpenAIdata/kb.json: Knowledge base containing company policy Q&A pairsDockerfile: Configuration for containerizing the serverrequirements.txt: Python dependenciesThe server exposes a single tool called get_knowledge_base that retrieves information from the knowledge base file (data/kb.json). It runs using the SSE (Server-Sent Events) transport on port 8050.
The client:
The knowledge base is a simple JSON file containing question-answer pairs about company policies. This can be extended with additional policies or information as needed.
The client implements proper lifecycle management using Python's async context managers:
async with MCPOpenAIClient() as client:
await client.connect_to_server()
response = await client.process_query("What is the policy?")
# Resources are automatically cleaned up when exiting the context
This ensures that all resources are properly initialized and cleaned up, following MCP best practices.
To expand the knowledge base, simply add more question-answer pairs to the data/kb.json file.
You can add more tools to the server by defining additional functions with the @mcp.tool() decorator in server.py.
To use a different OpenAI model, modify the model parameter in the MCPOpenAIClient class in client.py.
The Model Context Protocol (MCP) is a standardized way for LLMs to interact with external tools and services. It provides:
For more information, visit the MCP documentation.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Knowledge Base Assistant from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-get-started)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.