playing with the UK Lex API
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add lex-api-uk-legal-research -- npx -y mcp-remote@latest https://lex.lab.i.ai.gov.uk/mcp~/.codex/config.toml
[mcp_servers.lex-api-uk-legal-research]
command = "npx"
args = ["-y", "mcp-remote@latest", "https://lex.lab.i.ai.gov.uk/mcp"]
# codex mcp add lex-api-uk-legal-research -- npx -y mcp-remote@latest https://lex.lab.i.ai.gov.uk/mcp~/.cursor/mcp.json
{
"mcpServers": {
"lex-api-uk-legal-research": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://lex.lab.i.ai.gov.uk/mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"lex-api-uk-legal-research": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://lex.lab.i.ai.gov.uk/mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"lex-api-uk-legal-research": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://lex.lab.i.ai.gov.uk/mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"lex-api-uk-legal-research": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://lex.lab.i.ai.gov.uk/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"lex-api-uk-legal-research": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://lex.lab.i.ai.gov.uk/mcp"
]
}
}
}Remote
claude mcp add --transport http lex-api-uk-legal-research https://lex.lab.i.ai.gov.uk/mcp~/.codex/config.toml
[mcp_servers.lex-api-uk-legal-research]
url = "https://lex.lab.i.ai.gov.uk/mcp"
# codex mcp add lex-api-uk-legal-research --url https://lex.lab.i.ai.gov.uk/mcp~/.cursor/mcp.json
{
"mcpServers": {
"lex-api-uk-legal-research": {
"url": "https://lex.lab.i.ai.gov.uk/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"lex-api-uk-legal-research": {
"type": "http",
"url": "https://lex.lab.i.ai.gov.uk/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"lex-api-uk-legal-research": {
"httpUrl": "https://lex.lab.i.ai.gov.uk/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"lex-api-uk-legal-research": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://lex.lab.i.ai.gov.uk/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"lex-api-uk-legal-research": {
"url": "https://lex.lab.i.ai.gov.uk/mcp"
}
}
}