# search-mcp — MCP-Server für Websuche über Startpage
#
# Installation:
#   python -m venv .venv && source .venv/bin/activate
#   pip install -r requirements.txt
#
# Start (Dev, kein Auth):
#   python server.py
#
# Start (Production, mit Auth):
#   MCP_API_KEYS=key1,key2 python server.py

# MCP SDK 2.0 (Server: MCPServer-API, stdio- & Streamable-HTTP-Transport)
mcp>=2.0.0

# ASGI-Server + Mounting
starlette>=0.40.0
uvicorn>=0.30.0

# HTTP-Clients (Startpage-Suche, Scraping)
httpx>=0.27.0
# requests für die Startpage-Suche: httpx wird von Startpage per
# TLS-Fingerprint als Bot erkannt und captcha-gebockt, requests nicht.
requests>=2.31.0

# HTML-Parsing (Scraping, optional schneller mit lxml)
beautifulsoup4>=4.12.0
lxml>=5.0.0

# Haupttext-Extraktion aus HTML (Boilerplate-Entfernung, Publikationsdatum);
# BeautifulSoup bleibt als Fallback und für das Startpage-Ergebnis-Parsing
trafilatura>=2.0.0

# Textextraktion aus PDF-Treffern
pypdf>=5.0.0
