MPC Docs Server
MPC文档服务器
这是一个简单的 MCP(模型上下文协议)服务器,用于从 Langchain、Llama Index 和 OpenAI 的官方文档中检索信息。它提供了一个工具,可供兼容 MCP 的应用程序搜索和检索相关的文档片段。
Related MCP server: doc-lib-mcp
特征
**文档检索:**从 Langchain、Llama Index 和 OpenAI 的官方文档中获取内容。
**MCP 兼容性:**实现 MCP 服务器,使其能够轻松地与其他 MCP 兼容应用程序集成。
**简单工具:**公开一个接受查询和库名的
get_docs工具,返回相关的文档片段。
工作原理
graph LR
Client[MCP Client] -->|Calls tools| Server[MCP Server]
Server -->|Searches web for docs| Serper[Serper API]
Serper -->|Returns search results| Server
Server -->|Returns documentation| Client入门
安装 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服务器将启动并准备接受连接。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for langchain documentation, generated by doc2mcp.
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables semantic search and retrieval of documentation using a vector database (Qdrant). This server allows you to add documentation from URLs or local files and then search through them using natural language queries.136Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for ingesting, chunking and semantically searching documentation files, with support for markdown, Python, OpenAPI, HTML files and URLs.-
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that provides documentation access capabilities. This server enables LLMs to search and retrieve content from documentation websites by scraping them with crawl4ai. Built with FastMCP v2.18MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables intelligent document search and retrieval from PDF collections, providing semantic search capabilities powered by OpenAI embeddings and ChromaDB vector storage.20 PyPI13MIT