Skip to main content
Glama

MPC Docs Server

MPC文档服务器

这是一个简单的 MCP(模型上下文协议)服务器,用于从 Langchain、Llama Index 和 OpenAI 的官方文档中检索信息。它提供了一个工具,可供兼容 MCP 的应用程序搜索和检索相关的文档片段。

特征

  • **文档检索:**从 Langchain、Llama Index 和 OpenAI 的官方文档中获取内容。
  • **MCP 兼容性:**实现 MCP 服务器,使其能够轻松地与其他 MCP 兼容应用程序集成。
  • **简单工具:**公开一个接受查询和库名的get_docs工具,返回相关的文档片段。

工作原理

入门

安装 uv 包管理器

在 MacOS/Linux 上:

curl -LsSf https://astral.sh/uv/install.sh | sh

之后请确保重新启动终端以确保uv命令被接收。

项目设置

创建并初始化项目:

# Create a new directory for our project uv init mcp-server cd mcp-server # Create virtual environment and activate it uv venv source .venv/bin/activate # On Windows use: .venv\Scripts\activate # Install dependencies uv add "mcp[cli]" httpx python-dotenv bs4

环境变量

在根目录中创建一个.env文件并添加以下内容:

SERPER_API_KEY=YOUR_SERPER_API_KEY

您需要一个 SERPER API 密钥才能使用网页搜索功能。您可以从Serper.dev获取。我们使用 Serper API 在网络上搜索相关文档。

运行服务器

启动 MCP 服务器:

uv run main.py

服务器将启动并准备接受连接。

-
security - not tested
F
license - not found
-
quality - not tested

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 官方文档中搜索和检索相关文档片段。

  1. 特征
    1. 工作原理
      1. 入门
        1. 安装 uv 包管理器
        2. 项目设置
        3. 环境变量
        4. 运行服务器

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        A flexible Model Context Protocol server that makes documentation or codebases searchable by AI assistants, allowing users to chat with code or docs by simply pointing to a git repository or folder.
        Last updated -
        1
        36
        49
        JavaScript
        MIT License
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server for ingesting, chunking and semantically searching documentation files, with support for markdown, Python, OpenAPI, HTML files and URLs.
        Last updated -
        Python
        • Apple
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that provides AI assistants and language models with access to Laravel 12 documentation, allowing them to list, read, and search through documentation files.
        Last updated -
        13
        Python
        MIT License
        • Linux
        • Apple
      • -
        security
        A
        license
        -
        quality
        A server that provides organized documentation content for various applications using the Model Context Protocol, enabling AI assistants to access quickstart guides and code examples.
        Last updated -
        Python
        MIT License

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/joaowinderfeldbussolotto/MCP-Websearch-Server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server