Installation¶
legal-peripherals-mcp is a standard Python package and a prebuilt container image.
Pick the path that matches how you want to run it.
Requirements¶
- Python 3.11 – 3.14.
- Playwright browser binaries for the live
Secretary of State crawlers (installed with
playwright install); the fallback paths operate without them.
From PyPI (recommended)¶
Optional extras¶
The base install is intentionally minimal. Install the extra for what you need:
| Extra | Install | Pulls in |
|---|---|---|
mcp |
pip install "legal-peripherals-mcp[mcp]" |
FastMCP MCP-server runtime (agent-utilities[mcp]) |
agent |
pip install "legal-peripherals-mcp[agent]" |
Pydantic-AI agent server + Logfire tracing |
all |
pip install "legal-peripherals-mcp[all]" |
Everything above |
test |
pip install "legal-peripherals-mcp[test]" |
pytest, pytest-asyncio, pytest-cov, pytest-xdist |
# Typical: run the MCP server and the agent server
pip install "legal-peripherals-mcp[all]"
playwright install chromium
From source¶
git clone https://github.com/Knuckles-Team/legal-peripherals-mcp.git
cd legal-peripherals-mcp
pip install -e ".[all]" # editable install with every extra
With uv:
Prebuilt Docker image¶
A multi-stage, slim image is published on every release (entrypoint
legal-peripherals-mcp):
docker pull knucklessg1/legal-peripherals-mcp:latest
docker run --rm -i \
-e SOSTOOL=True \
-e EINTOOL=True \
-e STATUTETOOL=True \
knucklessg1/legal-peripherals-mcp:latest # stdio transport (default)
For an HTTP server with a published port, see Deployment.
Verify the install¶
legal-peripherals-mcp --help
python -c "import legal_peripherals_mcp; print(legal_peripherals_mcp.__version__)"
Next steps¶
- Deployment — run it as a long-lived MCP server behind Caddy + DNS.
- Usage — call the tools, the API, and example prompts.
- Configuration — every environment variable.