Legal MCP Server

Legal MCP Server

A Model Context Protocol server for legal document search and retrieval, powered by Azure Cosmos DB and Voyage AI embeddings, exposing 12 tools for semantic search, keyword search, Bates number lookup, claim-specific queries, and statutory citation search over a corpus of vectorized legal documents.

Category
Visit Server

README

Legal MCP Server

A Model Context Protocol (MCP) server for legal document search and retrieval, powered by Azure Cosmos DB and Voyage AI embeddings.

Overview

This MCP server exposes 12 search and retrieval tools for legal documents, providing semantic search, keyword search, and metadata-based queries over a corpus of vectorized legal documents.

Features

  • Semantic Search: Vector search over 3,275+ document chunks using Voyage AI voyage-law-2 embeddings
  • Keyword Search: BM25-based full-text search for precise term matching
  • Bates Number Lookup: Direct document retrieval by filing number
  • Claim-Specific Queries: Filter documents by claim status and party
  • Document Mapping: Cross-reference documents across the corpus
  • Statutory Citation Search: Find legal precedents and statutory references
  • Compression Support: Retrieve facts (compressed) or raw text for efficiency

Architecture

Azure Integration

  • Cosmos DB: Stores 3,275 document chunks and 2,772 embeddings
  • Azure Key Vault: Manages API keys and secrets (Voyage AI, etc.)
  • Azure Container Apps: Hosts the MCP server

Data Model

Documents are chunked and vectorized using Voyage AI's legal-specialized model (1024 dimensions).

See SCHEMA.md for complete database schema documentation.

Setup

Requirements

  • Python 3.10+
  • Azure credentials (for Cosmos DB and Key Vault access)
  • Voyage AI API key

Installation

pip install -r requirements.txt

Environment

Set the following environment variables:

  • COSMOS_DB_ENDPOINT: Cosmos DB endpoint URL
  • COSMOS_DB_KEY: Cosmos DB read key
  • VOYAGE_API_KEY: Voyage AI API key
  • AZURE_KEY_VAULT_URL: Key Vault URL

Or store them in Azure Key Vault (recommended for production).

Usage

Start the MCP server:

python legal_mcp.py

The server exposes tools via the Model Context Protocol for use by Claude or other MCP clients.

Tools

The server provides the following tools:

  1. semantic_search - Search documents by meaning
  2. keyword_search - Full-text search by keywords
  3. search_by_bates - Find documents by Bates number
  4. search_by_header - Find documents by section headers
  5. search_by_claim - Find documents related to specific claims
  6. map_documents - Cross-reference related documents
  7. search_citations - Find statutory and case citations
  8. And more...

Deployment

The server is deployed as an Azure Container App in the personal Azure account.

Status: Active
Image: legalmcpacr.azurecr.io/legal-mcp:joinfix
Endpoint: legal-mcp-server.purplesky-9ea73a76.eastus.azurecontainerapps.io

License

Private repository for legal case support.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured