MPC文档服务器
这是一个简单的 MCP(模型上下文协议)服务器,用于从 Langchain、Llama Index 和 OpenAI 的官方文档中检索信息。它提供了一个工具,可供兼容 MCP 的应用程序搜索和检索相关的文档片段。
特征
- **文档检索:**从 Langchain、Llama Index 和 OpenAI 的官方文档中获取内容。
- **MCP 兼容性:**实现 MCP 服务器,使其能够轻松地与其他 MCP 兼容应用程序集成。
- **简单工具:**公开一个接受查询和库名的
get_docs
工具,返回相关的文档片段。
工作原理
入门
安装 uv 包管理器
在 MacOS/Linux 上:
之后请确保重新启动终端以确保uv
命令被接收。
项目设置
创建并初始化项目:
环境变量
在根目录中创建一个.env
文件并添加以下内容:
您需要一个 SERPER API 密钥才能使用网页搜索功能。您可以从Serper.dev获取。我们使用 Serper API 在网络上搜索相关文档。
运行服务器
启动 MCP 服务器:
服务器将启动并准备接受连接。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
一个简单的模型上下文协议服务器,可以从 Langchain、Llama Index 和 OpenAI 官方文档中搜索和检索相关文档片段。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server utilizing Claude AI for generating intelligent queries and offering documentation assistance based on API documentation analysis.Last updated -32TypeScript
- -securityAlicense-qualityA server that enables Large Language Models to discover and interact with REST APIs defined by OpenAPI specifications through the Model Context Protocol.Last updated -377128TypeScriptMIT License
- -securityFlicense-qualityA customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.Last updated -1Python
- -securityAlicense-qualityA Model Context Protocol (MCP) server that scrapes, indexes, and searches documentation for third-party software libraries and packages, supporting versioning and hybrid search.Last updated -231129TypeScriptMIT License