Lawmatics MCP
Connect Claude to Lawmatics: matters, contacts, pipelines, tasks, forms, custom fields…
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.0.0
- Listing updated
- 6 days ago
About Lawmatics MCP
Lawmatics MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Connect Claude to Lawmatics: matters, contacts, pipelines, tasks, forms, custom fields, invoices.
Install
Run in a terminal
claude mcp add lawmatics-mcp --env LAWMATICS_ACCESS_TOKEN='<LAWMATICS_ACCESS_TOKEN>' --env LAWMATICS_CLIENT_SECRET='<LAWMATICS_CLIENT_SECRET>' -- npx -y @oktopeak/lawmatics-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"lawmatics-mcp": {
"command": "npx",
"args": [
"-y",
"@oktopeak/lawmatics-mcp"
],
"env": {
"LAWMATICS_ACCESS_TOKEN": "<LAWMATICS_ACCESS_TOKEN>",
"LAWMATICS_CLIENT_SECRET": "<LAWMATICS_CLIENT_SECRET>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"lawmatics-mcp": {
"command": "npx",
"args": [
"-y",
"@oktopeak/lawmatics-mcp"
],
"env": {
"LAWMATICS_ACCESS_TOKEN": "<LAWMATICS_ACCESS_TOKEN>",
"LAWMATICS_CLIENT_SECRET": "<LAWMATICS_CLIENT_SECRET>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"lawmatics-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@oktopeak/lawmatics-mcp"
],
"env": {
"LAWMATICS_ACCESS_TOKEN": "<LAWMATICS_ACCESS_TOKEN>",
"LAWMATICS_CLIENT_SECRET": "<LAWMATICS_CLIENT_SECRET>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"lawmatics-mcp": {
"command": "npx",
"args": [
"-y",
"@oktopeak/lawmatics-mcp"
],
"env": {
"LAWMATICS_ACCESS_TOKEN": "<LAWMATICS_ACCESS_TOKEN>",
"LAWMATICS_CLIENT_SECRET": "<LAWMATICS_CLIENT_SECRET>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"lawmatics-mcp": {
"command": "npx",
"args": [
"-y",
"@oktopeak/lawmatics-mcp"
],
"env": {
"LAWMATICS_ACCESS_TOKEN": "<LAWMATICS_ACCESS_TOKEN>",
"LAWMATICS_CLIENT_SECRET": "<LAWMATICS_CLIENT_SECRET>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
LAWMATICS_ACCESS_TOKENLawmatics OAuth access token (never expires). Obtain once with `npx @oktopeak/lawmatics-mcp auth`.RequiredLAWMATICS_READ_ONLYSet to '1' to disable all write tools (create/update/tag/submit). Read-only mode for cautious firms.LAWMATICS_EXPERIMENTAL_TOOLSSet to '1' to enable experimental tools (set-matter-custom-fields) whose API request shape is not fully documented by Lawmatics.LAWMATICS_RATE_LIMIT_PER_MINClient-side request throttle per minute (default: 50, the conservative documented per-firm limit; newer docs say 150).LAWMATICS_AUDIT_LOGSet to '0' to disable the local JSONL audit log (default path: ~/.lawmatics-mcp/audit.log).LAWMATICS_AUDIT_LOG_PATHOverride the audit log file location (default: ~/.lawmatics-mcp/audit.log). The log contains tool arguments, which can include client data.LAWMATICS_CLIENT_IDOnly needed for the one-time `auth` command: your Lawmatics developer app client ID.LAWMATICS_CLIENT_SECRETOnly needed for the one-time `auth` command: your Lawmatics developer app client secret.LAWMATICS_REDIRECT_PORTLocal port for the one-time OAuth callback (default: 5678). Must match the app's Callback URL.LAWMATICS_API_BASEOverride the Lawmatics API base URL (default: https://api.lawmatics.com/v1).
Pricing
Open source
Lawmatics MCP FAQ
Is Lawmatics MCP free?
Yes. Lawmatics MCP is open source, so you can use and self-host it for free.
How do I add Lawmatics MCP to Claude Code?
Run this command in your terminal: claude mcp add lawmatics-mcp --env LAWMATICS_ACCESS_TOKEN='<LAWMATICS_ACCESS_TOKEN>' --env LAWMATICS_CLIENT_SECRET='<LAWMATICS_CLIENT_SECRET>' -- npx -y @oktopeak/lawmatics-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.