Back to Home
rabqatab icon

legal_case_search_pipeline

Verified Safe

by 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

Run Command
uv run python -m src.mcp_server.server

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2026-01-19

Tags

Korean legalfinancial documentshybrid searchAI agent integrationQdrantGemini embeddingsTF-IDF