Back to MCP directory
publicPublicdnsLocal runtime

library-docs-mcp-server

一个基于MCP协议的文档搜索服务器,可实时获取Langchain等流行库的最新文档,解决LLM模型知识陈旧问题。

article

README

🚀 图书馆文档 MCP 服务器

本项目是一个 MCP(模型上下文协议)服务器,可借助 Serper API 搜索并获取流行库的文档,如 LangChain、Llama-Index、MCP 和 OpenAI 等,有效解决了部分 LLM 模型无法访问最新库文档的问题。

✨ 主要特性

  • 自然语言搜索:支持使用自然语言查询搜索图书馆文档。
  • 多库支持:支持 Langchain、Llama-Index、MCP 和 OpenAI,可通过更新代码添加其他库。
  • 特定站点搜索:使用 Serper API 执行特定站点的搜索。
  • 文档解析:使用 BeautifulSoup 解析并返回文档。
  • 实时文档提供:提供更新的文档,对具有知识截止日期的 LLM 模型非常有用。

📚 详细文档

为何与 LLM 结合使用此服务器

许多 LLM 模型,包括在 Claude Desktop 和类似平台中使用的模型,存在知识截止日期,可能无法访问最新的库文档。此 MCP 服务器能有效解决该问题:

  • 实时文档获取:从官方来源获取实时文档
  • 最新信息提供:提供最新信息用于开发和故障排除。
  • 响应准确性提升:提高与新库更新结合时响应的准确性和相关性。

在 Claude Desktop 上设置

要将此服务器与 Claude Desktop 结合使用,请更新 claude_desktop_config.json 文件,示例如下:

{
  "mcpServers": {
    "docs-mcp-server": {
      "command": "C:\\Users\\Vikram\\.local\\bin\\uv.exe",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "F:\\My Projects\\AI\\docs-mcp-server\\server.py"
      ]
    }
  }
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client