lex

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.

Evaluated Mar 30, 2026 (22d ago)
Homepage ↗ Repo ↗ Ai Ml ai-ml law legaltech semantic-search hybrid-search regtech govtech mcp mcp-server python fastapi
⚙ Agent Friendliness
43
/ 100
Can an agent use this?
🔒 Security
38
/ 100
Is it safe for agents?
⚡ Reliability
24
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
55
Documentation
70
Error Messages
0
Auth Simplicity
40
Rate Limits
0

🔒 Security

TLS Enforcement
60
Auth Strength
20
Scope Granularity
10
Dep. Hygiene
60
Secret Handling
50

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.

⚡ Reliability

Uptime/SLA
0
Version Stability
35
Breaking Changes
30
Error Recovery
30
AF Security Reliability

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.

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

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: Azure OpenAI credentials (for local development)
OAuth: No Scopes: No

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

Free tier: No
Requires CC: No

No pricing information is provided in the supplied README/content.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • Service is explicitly experimental; behavior and interfaces may change.
  • Case law is temporarily disabled pending a TNA licence.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for lex.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-30.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered