local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Powers the law office database that handles client data, case management, billable time tracking, and invoice generation with specialized legal tools for proper documentation and billing validation
Law Office SQLite MCP Server
A Model Context Protocol (MCP) server implementation for law office database management, specializing in client records, case filing, time tracking, and invoice management.
Overview
This server provides a specialized database interface for law firms to:
- Manage client and matter records
- Track case file entries (documents, communications, notes)
- Log billable time with evidentiary links to case activities
- Create and validate client invoices
- Enforce business rules for proper legal billing
Features
Core Database Operations
- Standard SQL operations (SELECT, INSERT, UPDATE, DELETE)
- Table management and schema information
- Multi-statement transactions and batch operations via
execute_script
tool
Specialized Legal Tools
record_case_entry
: Add documentation to case filesrecord_billable_time
: Log time with proper substantiationget_unbilled_time
: Track unbilled work by client or mattercreate_invoice
: Generate new client invoicesadd_billing_to_invoice
: Associate time entries with invoicescheck_invoice_validity
: Validate invoices for billing conflictssubmit_invoice
: Finalize invoices for client submission
Database Schema
- Client and matter management
- Case file documentation system
- Comprehensive billing and invoice workflow
- Automatic timestamp management
- Conflict detection for overlapping time entries
Installation
Prerequisites
- Python 3.10 or higher (Python 3.11+ recommended). Check with
python3.11 --version
(or similar). If needed, install using your system's package manager (e.g.,brew install python@3.11
on macOS). - uv: A fast Python package installer. Install from astral.sh (
curl -LsSf https://astral.sh/uv/install.sh | sh
). - SQLite3 (usually pre-installed on macOS/Linux).
- Git (for cloning).
Setup Instructions
- Clone the repository:Copy
- Create and activate a virtual environment (using your Python 3.10+ interpreter):(You should seeCopy
(.venv)
at the start of your terminal prompt) - Upgrade pip (optional but recommended):Copy
- Install dependencies using
uv
: (This installsmcp
and its extras, pluspydantic
)Copy - Install the project package in editable mode:Copy
- Initialize the database:
(This script sets up the SQLite schema)(Follow prompts to optionally add sample data)Copy
Usage
Starting the Server Manually (for testing)
Ensure your virtual environment is active (source .venv/bin/activate
) and run:
Claude Desktop Integration (Recommended)
- Find your
claude_desktop_config.json
file.- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
- Add or modify the
mcpServers
entry for this server. Replace<absolute_path_to_repo>
with the full path to where you cloned the repository (e.g.,/Users/andrewsirulnik/claude_mcp_servers/mcp-law-office-db
).Copy - Save the configuration file.
- Restart Claude Desktop. The server should now be available in the MCP integration menu.
This server cannot be installed
A Model Context Protocol server for law office database management that enables tracking clients, cases, billable time, and invoices.