lex
Verified Safeby i-dot-ai
Overview
Provides a UK legal research API for AI agents, offering capabilities to search legislation, caselaw, amendments, and explanatory notes using semantic and keyword search, and includes a Micro-Copilot (MCP) server for integration with AI assistants.
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
- LANGFUSE_PUBLIC_KEY
- LANGFUSE_SECRET_KEY
- LANGFUSE_HOST
Security Notes
The server uses `uvicorn` with `reload=True` in its local run command, which is not suitable for production. CORS is configured with `allow_origins=["*"]`, typical for a public API but note-worthy. Secret management for `QDRANT_CLOUD_API_KEY`, `AZURE_OPENAI_API_KEY`, and `REDIS_PASSWORD` relies on environment variables, which is good practice. The system interacts with external AI services for embeddings, summaries, explanations, and PDF OCR, involving potentially large prompts and outputs. While these interactions are handled by client libraries with retry/timeout mechanisms, the experimental `FASTMCP_EXPERIMENTAL_ENABLE_NEW_OPENAPI_PARSER` feature is used, which might have unknown implications.
Similar Servers
osmmcp
Enables LLMs to interact with OpenStreetMap data through a rich set of geospatial tools, including geocoding, routing, and points of interest search.
mcp-code-exec-python
Provides a Model Context Protocol (MCP) server for executing arbitrary Python code with optional package installations, supporting HTTP, SSE, and STDIO transports.
mcp-units
Converts cooking measurements (volume, weight, temperature) between common units, designed for integration with MCP-compatible tools and VSCode extensions.
mcp_server_python
An MCP server for LM Studio to extend LLM capabilities with web search, page fetching, arbitrary Python code execution, and package installation.