legal_case_search_pipeline
Verified Safeby rabqatab
Overview
The MCP Server provides tools for hybrid search on Korean financial legal documents, enabling AI agent integration for advanced legal information retrieval.
Installation
uv run python -m src.mcp_server.serverEnvironment Variables
- QDRANT_URL
- QDRANT_COLLECTION
- GEMINI_API_KEY
- GOOGLE_API_KEYS
- MCP_SERVER_HOST
- MCP_SERVER_PORT
- MCP_TRANSPORT
- PYTHONUNBUFFERED
Security Notes
The server uses `os.getenv` for API keys, which is good practice. Input parameters for `search_cases` and `get_chunks` tools are validated (e.g., non-empty query, valid modes, chunk index ranges). Direct shell execution or `eval` with untrusted input is not evident in the MCP server logic. The `AttachmentHandler` (used by crawlers, not directly by MCP server tools) downloads and parses various file types (HWP, PDF, ZIP), which is an inherent attack surface for parser vulnerabilities; however, it includes file signature validation and uses temporary files for processing. One crawler (`moleg_interpret`) explicitly disables SSL verification (`session.verify = False`), posing a security risk during the crawling phase for that specific source, but this does not directly impact the security of the MCP server's query tools.
Similar Servers
yargi-mcp
Provides programmatic access to various Turkish legal databases (e.g., Yargıtay, Danıştay, Constitutional Court) as a Model Context Protocol (MCP) server for integration with Large Language Model (LLM) applications like Claude AI.
qdrant-loader
A Model Context Protocol (MCP) server that provides advanced Retrieval-Augmented Generation (RAG) capabilities to AI development tools by bridging a QDrant knowledge base for intelligent, context-aware search.
qdrant-mcp-server
This server provides semantic search capabilities using Qdrant vector database, primarily focused on code vectorization for intelligent codebase indexing and semantic code search, as well as general document search.
gemini-research-mcp
An AI-powered research server utilizing Gemini models for both quick web searches with citations and comprehensive multi-step deep research, including query clarification and follow-up capabilities.