Back to Home
Hanzlazafar1 icon

MCP-Server-Documentation-Retrieval-Web-Scraping-uv-FastMCP-

by Hanzlazafar1

Overview

An AI assistant for answering technical questions by searching documentation for specific Python libraries and summarizing content using a Large Language Model.

Installation

Run Command
uv run mcp_server.py

Environment Variables

  • GROQ_API_KEY
  • SERPER_API_KEY

Security Notes

A Groq API key is hardcoded directly in `utils.py`, despite a comment indicating it should use an environment variable. This makes the key visible in source control and is a critical security vulnerability. It must be replaced with `os.getenv('GROQ_API_KEY')` for safe operation. The application also performs web scraping (fetching content from arbitrary URLs via Serper search results), which introduces a potential attack surface if malicious content is retrieved, although `trafilatura` is used for content extraction to mitigate some risks.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens2300
Stars0
Forks0
Last Update2025-11-28

Tags

AIDocumentationWeb ScrapingLLMStreamlit