Legal MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Legal MCP ServerSearch for documents related to breach of contract claims"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: CodeAlive MCP
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.txtEnvironment
Set the following environment variables:
COSMOS_DB_ENDPOINT: Cosmos DB endpoint URLCOSMOS_DB_KEY: Cosmos DB read keyVOYAGE_API_KEY: Voyage AI API keyAZURE_KEY_VAULT_URL: Key Vault URL
Or store them in Azure Key Vault (recommended for production).
Usage
Start the MCP server:
python legal_mcp.pyThe server exposes tools via the Model Context Protocol for use by Claude or other MCP clients.
Tools
The server provides the following tools:
semantic_search- Search documents by meaningkeyword_search- Full-text search by keywordssearch_by_bates- Find documents by Bates numbersearch_by_header- Find documents by section headerssearch_by_claim- Find documents related to specific claimsmap_documents- Cross-reference related documentssearch_citations- Find statutory and case citationsAnd 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
The Needle MCP server enables semantic search on documents stored in files like PDFs, DOCX, and XLSX by connecting AI applications to external data sources. It provides capabilities to create and manage document collections, perform natural language searches on stored content, and retrieve relevant information without requiring exact keyword matches.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables semantic search capabilities by providing tools to manage Qdrant vector database collections, process and embed documents using various embedding services, and perform semantic searches across vector embeddings.439 npm4MIT

CodeAlive MCPofficial
AlicenseNot gradedqualityAmaintenanceA Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.90MIT- AlicenseNot gradedqualityDmaintenanceA read-only Model Context Protocol server that exposes a semantic knowledge base to AI agents via 27 tools. It enables querying of documents and data integrated from sources like Notion, SharePoint, HubSpot, and Slack.MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides document analysis capabilities to LLM applications, including extraction, chunking, summarization, and semantic search for PDF, DOCX, and plaintext documents.-