lex
Verified Safeby i-dot-ai
Overview
Provides a UK legal research API with advanced search capabilities (semantic, keyword, reference) across legislation, caselaw, amendments, and explanatory notes, optimized for AI agents via MCP integration. It processes and indexes millions of legal documents using hybrid vector search and AI-generated summaries/explanations, supporting large-scale legal data analysis.
Installation
uv run src/backend/main.pyEnvironment Variables
- QDRANT_CLOUD_URL
- QDRANT_CLOUD_API_KEY
- AZURE_OPENAI_API_KEY
- AZURE_OPENAI_ENDPOINT
- AZURE_OPENAI_EMBEDDING_DEPLOYMENT
- AZURE_OPENAI_CHAT_DEPLOYMENT
- REDIS_URL
- REDIS_PASSWORD
- APPLICATIONINSIGHTS_CONNECTION_STRING
- POSTHOG_KEY
- POSTHOG_HOST
Security Notes
The project correctly uses environment variables for sensitive credentials (e.g., OpenAI API keys, Qdrant API keys). It implements rate limiting per IP address and robust monitoring via OpenTelemetry. CORS is set to allow all origins (`*`) which is common for public APIs but broad. No direct use of `eval` or obvious obfuscation found. IP addresses are anonymized for privacy in monitoring.
Similar Servers
osmmcp
A Multi-Cloud Platform (MCP) server, likely developed in Go, designed for managing and standardizing transport across various cloud services, potentially including AI integration (Claude) and geographical data processing.
mcp-code-exec-python
A Model Context Protocol (MCP) server designed to execute arbitrary Python code and install packages, primarily for integration with Heroku and AI agents.
mcp-units
This server provides tools for converting cooking measurements (volume, weight, and temperature) between common units, designed for integration with MCP-compatible clients.
mcp_server_python
A lightweight and universal MCP server in Python for integrating web search, page fetching, Python code execution, and package installation tools with LM Studio.