{"id":"i-dot-ai-lex","name":"lex","homepage":"https://lex.lab.i.ai.gov.uk/","repo_url":"https://github.com/i-dot-ai/lex","category":"ai-ml","subcategories":[],"tags":["ai-ml","law","legaltech","semantic-search","hybrid-search","regtech","govtech","mcp","mcp-server","python","fastapi"],"what_it_does":"Lex is an (experimental) UK legal data API for AI agents and researchers, providing access to large collections of UK legislation and related materials with hybrid semantic search, and integration via Model Context Protocol (MCP) alongside an HTTP API (FastAPI) with interactive docs.","use_cases":["Legal research assistants grounded in UK legislation","Policy analysis and tracking legislative changes over time","RAG/search systems for UK legal documents using hybrid semantic search","Agent tool use via MCP for retrieving and searching legislation"],"not_for":["Production dependencies (explicitly labeled experimental)","Applications requiring case law retrieval without addressing the stated TNA licence limitation","Environments where UK legal dataset licensing/redistribution constraints cannot be satisfied"],"best_when":"You want agent- and researcher-friendly programmatic access to UK legislative corpora with semantic/hybrid search and you can run/use the service as an integration partner (or self-host).","avoid_when":"You need guaranteed reliability/SLA, strict compliance assurances beyond the documented limitations, or you cannot accommodate Azure OpenAI credential requirements for local development.","alternatives":["Run a dedicated RAG pipeline on open UK legislation sources with your own indexing (e.g., embedding + vector DB)","Use an off-the-shelf search/rag platform combined with UK legislation datasets you ingest yourself","Other legal knowledge bases and APIs (commercial or open) that offer stable production services"],"af_score":43.2,"security_score":38.0,"reliability_score":23.8,"package_type":"mcp_server","discovery_source":["github"],"priority":"high","status":"evaluated","version_evaluated":null,"last_evaluated":"2026-03-30T15:25:42.549713+00:00","interface":{"has_rest_api":true,"has_graphql":false,"has_grpc":false,"has_mcp_server":true,"mcp_server_url":null,"has_sdk":false,"sdk_languages":[],"openapi_spec_url":"https://lex.lab.i.ai.gov.uk/docs","webhooks":false},"auth":{"methods":["Azure OpenAI credentials (for local development)"],"oauth":false,"scopes":false,"notes":"The README provided does not describe end-user/API authentication (e.g., API keys/OAuth). It does describe Azure OpenAI credentials as a prerequisite for running locally."},"pricing":{"model":null,"free_tier_exists":false,"free_tier_limits":null,"paid_tiers":[],"requires_credit_card":false,"estimated_workload_costs":null,"notes":"No pricing information is provided in the supplied README/content."},"requirements":{"requires_signup":false,"requires_credit_card":false,"domain_verification":false,"data_residency":[],"compliance":[],"min_contract":null},"agent_readiness":{"af_score":43.2,"security_score":38.0,"reliability_score":23.8,"mcp_server_quality":55.0,"documentation_accuracy":70.0,"error_message_quality":0.0,"error_message_notes":null,"auth_complexity":40.0,"rate_limit_clarity":0.0,"tls_enforcement":60.0,"auth_strength":20.0,"scope_granularity":10.0,"dependency_hygiene":60.0,"secret_handling":50.0,"security_notes":"TLS/auth details are not explicit in the provided README. The project includes many dependencies (web, parsing, vector DB, caching, observability). Secret handling is not described beyond using a .env file for Azure credentials; this suggests env-based config but does not confirm logging/redaction practices.","uptime_documented":0.0,"version_stability":35.0,"breaking_changes_history":30.0,"error_recovery":30.0,"idempotency_support":"false","idempotency_notes":null,"pagination_style":"none","retry_guidance_documented":false,"known_agent_gotchas":["Service is explicitly experimental; behavior and interfaces may change.","Case law is temporarily disabled pending a TNA licence."]}}