document-search-mcp-server

document-search-mcp-server

0

The Python MCP Server enables users to interactively search for documentation from specific libraries such as LangChain, LlamaIndex, and OpenAI using Serper API. It extracts relevant content from the web, ensuring users can quickly access necessary information.

Python MCP Server - Documentation Search

This is a simple MCP server that allows users to search for documentation from popular libraries such as LangChain, LlamaIndex, and OpenAI using the Serper API. The server fetches search results and extracts the relevant documentation using HTTP requests and BeautifulSoup.

Features

  • Supports searching documentation for LangChain, LlamaIndex, and OpenAI.
  • Uses Serper API for web searches.
  • Extracts and returns text from relevant documentation pages.
  • Interactive usage via MCP protocol.

Requirements

  • Python 3.12 or higher.
  • Serper API Key.
  • MCP library, BeautifulSoup4, httpx.

Usage

Run the server and query documentation for libraries like LangChain, LlamaIndex, and OpenAI. Example query: get_docs("Chroma DB", "langchain") to search in LangChain docs.