Back to Home
i-dot-ai icon

lex

Verified Safe

by 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

Run Command
uv run src/backend/main.py

Environment 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

Stats

Interest Score41
Security Score9
Cost ClassHigh
Avg Tokens2500
Stars23
Forks9
Last Update2026-01-13

Tags

UK LawLegal ResearchAI AgentsFastAPIQdrantAzureMCP ProtocolSemantic SearchLLM Integration