
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

An example project providing an MCP server that exposes a knowledge base tool, along with a client that connects OpenAI to the server so it can call tools when answering queries.
Knowledge base MCP server with OpenAI integration demo is cataloged as an MCP server attributed to aashishpalsingh. An example project providing an MCP server that exposes a knowledge base tool, along with a client that connects OpenAI to the server so it can call tools when answering queries. It is categorized under file systems-docs. 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: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Knowledge base MCP server with OpenAI integration demo 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.
The server exposes a get_knowledge_base tool that retrieves Q&A pairs from a JSON file.
README.md · 00a914db2f08 · 采集于 2026-11-13 12:19:19 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
This section demonstrates how to integrate the Model Context Protocol (MCP) with OpenAI's API to create a system where OpenAI can access and use tools provided by your MCP server.
This example shows how to:
This example uses the sse transport for communication between the client and server, which means:
OpenAI's function calling mechanism works with MCP tools through these steps:
MCP serves as a standardized bridge between AI models and your backend systems:
server.py)The MCP server exposes a get_knowledge_base tool that retrieves Q&A pairs from a JSON file.
client.py)The client:
data/kb.json)Contains Q&A pairs about company policies that can be queried through the MCP server.
docker build -t ashujss11/mcp-server .
docker run -p 8050:8050 -d --name mcp-server ashujss11/mcp-server
.env filepython client.pyNote: With the stdio transport used in this example, you don't need to run the server separately as the client will automatically start it.
Initialized SSE client...
Listing tools...
Connected to server with tools: ['get_knowledge_base']
Query: What is our company's vacation policy?
-------START AI Message-------
[
{
'role': 'user',
'content': "What is our company's vacation policy?"
},
ChatCompletionMessage(content=None,
refusal=None,
role='assistant',
annotations=[
],
audio=None,
function_call=None,
tool_calls=[
ChatCompletionMessageToolCall(id='call_OrCTQBx5Xhsubq2eXge662aU',
function=Function(arguments='{}',
name='get_knowledge_base'),
type='function')
]),
{
'role': 'tool',
'tool_call_id': 'call_OrCTQBx5Xhsubq2eXge662aU',
'content': "Here is the retrieved knowledge base:\n\nQ1: What is our company's vacation policy?\nA1: Full-time employees are entitled to 20 paid vacation days per year. Vacation days can be taken after completing 6 months of employment. Unused vacation days can be carried over to the next year up to a maximum of 5 days. Vacation requests should be submitted at least 2 weeks in advance through the HR portal.\n\nQ2: How do I request a new software license?\nA2: To request a new software license, please submit a ticket through the IT Service Desk portal. Include the software name, version, and business justification. Standard software licenses are typically approved within 2 business days. For specialized software, approval may take up to 5 business days and may require department head approval.\n\nQ3: What is our remote work policy?\nA3: Our company follows a hybrid work model. Employees can work remotely up to 3 days per week. Remote work days must be coordinated with your team and approved by your direct manager. All remote work requires a stable internet connection and a dedicated workspace. Core collaboration hours are 10:00 AM to 3:00 PM EST.\n\nQ4: How do I submit an expense report?\nA4: Expense reports should be submitted through the company's expense management system. Include all receipts, categorize expenses appropriately, and add a brief description for each entry. Reports must be submitted within 30 days of the expense. For expenses over $100, additional documentation may be required. All reports require manager approval.\n\nQ5: What is our process for reporting a security incident?\nA5: If you discover a security incident, immediately contact the Security Team at security@company.com or call the 24/7 security hotline. Do not attempt to investigate or resolve the incident yourself. Document what you observed, including timestamps and affected systems. The Security Team will guide you through the incident response process and may need your assistance for investigation.\n\n"
}
]
-------END AI Message-------
Response: Our company's vacation policy is as follows:
- Full-time employees are entitled to 20 paid vacation days per year.
- Vacation days can be taken after completing 6 months of employment.
- Unused vacation days can be carried over to the next year, with a maximum carryover of 5 days.
- Vacation requests should be submitted at least 2 weeks in advance through the HR portal.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Knowledge base MCP server with OpenAI integration demo from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-kb)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.