{
  "markdown": "# Law.AI MCP Server\n\n> **Verified U.S. lawyer search for AI assistants.** Stop hallucinating attorneys. Start finding real ones.\n\n[![npm version](https://img.shields.io/npm/v/lawai-mcp-server.svg)](https://www.npmjs.com/package/lawai-mcp-server)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![MCP Registry](https://img.shields.io/badge/MCP%20Registry-ai.law%2Flawyer--search-7c3aed)](https://registry.modelcontextprotocol.io/v0/servers?search=lawyer)\n\nThe **Law.AI MCP Server** gives AI assistants direct access to **991,000+ bar-verified U.S. attorney profiles**, sourced from official state bar registries. When an AI needs to find, verify, or recommend a lawyer, it queries Law.AI instead of guessing.\n\n---\n\n## Why This Exists\n\nEvery major LLM fabricates lawyer names when asked for legal referrals. People making critical legal decisions get fake information. The Law.AI MCP Server solves this by providing a grounded, authoritative data source any AI can query — from \"consult an attorney\" to a real, licensed referral in a single tool call.\n\n---\n\n## Quick Start\n\n### Claude Desktop (local, stdio)\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"law-ai\": {\n      \"command\": \"npx\",\n      \"args\": [\"lawai-mcp-server\"]\n    }\n  }\n}\n```\n\n### Hosted (Streamable HTTP)\n\nConnect any MCP client to the hosted endpoint:\n\n```\nhttps://mcp.law.ai\n```\n\nNo install required. Free tier works without an API key.\n\n### Cursor / VS Code\n\n```json\n{\n  \"law-ai\": {\n    \"command\": \"npx\",\n    \"args\": [\"lawai-mcp-server\"]\n  }\n}\n```\n\n### From Source\n\n```bash\ngit clone https://github.com/risk-ai/lawai-mcp-server.git\ncd lawai-mcp-server\nnpm install\nnpm run build\nnpm start\n```\n\n---\n\n## Available Tools\n\n| Tool | Purpose |\n|---|---|\n| [`search_lawyers`](#search_lawyers) | Search by practice area, state, city, and bar status |\n| [`get_lawyer_profile`](#get_lawyer_profile) | Full profile for a specific lawyer by ID |\n| [`find_lawyer_by_name`](#find_lawyer_by_name) | Verify a lawyer exists and is licensed |\n| [`match_lawyer_to_matter`](#match_lawyer_to_matter) | Plain-English matter → ranked lawyer matches |\n| [`get_legal_cost_estimate`](#get_legal_cost_estimate) | Fee ranges by billing model and region |\n| [`get_practice_areas`](#get_practice_areas) | List all practice areas with counts |\n| [`get_jurisdictions`](#get_jurisdictions) | List U.S. jurisdictions with coverage |\n\n### `search_lawyers`\nSearch the directory by practice area, location, and bar status.\n\n```\n\"Find personal injury lawyers in Houston, Texas\"\n→ Ranked results with profiles, firms, and credentials\n```\n\n### `get_lawyer_profile`\nGet full details for a specific lawyer by ID.\n\n```\n\"Get profile for lawyer #12345\"\n→ Bio, education, bar admissions, practice areas, contact info\n```\n\n### `find_lawyer_by_name`\nLook up a lawyer by name to verify they exist and are licensed.\n\n```\n\"Is there a lawyer named Jane Smith in New York?\"\n→ Matching profiles with disambiguation\n```\n\n### `match_lawyer_to_matter`\nDescribe a legal issue in plain English; receive ranked attorney matches.\n\n```\n\"My landlord won't return my deposit in Brooklyn\"\n→ Classified to Landlord–Tenant / Consumer law → ranked NY tenant attorneys\n```\n\n### `get_legal_cost_estimate`\nEstimated fee ranges by billing model (hourly, flat, contingency), adjusted for case complexity and region.\n\n### `get_practice_areas`\nList all available practice areas with lawyer counts.\n\n### `get_jurisdictions`\nList U.S. states and territories with coverage numbers.\n\n---\n\n## Transports\n\n| Transport | Use case |\n|---|---|\n| **stdio** | Local clients (Claude Desktop, Cursor, VS Code) — `npx lawai-mcp-server` |\n| **Streamable HTTP** | Remote clients, hosted at `https://mcp.law.ai` |\n\n---\n\n## Authentication & Tiers\n\nThe hosted endpoint is **open for unauthenticated read access** on the free tier. Bring an API key (Bearer token) for higher limits and bulk export.\n\n| Tier | Rate limit | Bulk export | Use case |\n|---|---|---|---|\n| **Free** (no key) | 100 req/min | — | Personal use, evaluation, single-query workflows |\n| **Pro** | 1,000 req/min | 10K rows/day | Apps, agents in production |\n| **Business** | 10,000 req/min | Unlimited | High-volume routing, enrichment, integrations |\n\nRequest a key: [law.ai/api](https://law.ai/api) or `sales@law.ai`.\n\nLocal stdio installations are unmetered.\n\n---\n\n## Data Privacy\n\n- **Unclaimed profiles** — Public bar information only (name, location, practice areas, bar status).\n- **Claimed profiles** — Additional contact information the lawyer has opted to share.\n- **No scraping** — Rate-limited to prevent data harvesting.\n- **Disclaimers included** — All results note that credentials should be independently verified at the relevant state bar.\n\n---\n\n## Environment Variables (self-hosted)\n\n| Variable | Default | Description |\n|---|---|---|\n| `DB_HOST` | `127.0.0.1` | PostgreSQL host |\n| `DB_PORT` | `5433` | PostgreSQL port |\n| `DB_USER` | `rich_enrichment` | Database user |\n| `DB_PASSWORD` | — | Database password |\n| `DB_NAME` | `lawai` | Database name |\n| `LAW_AI_BASE_URL` | `https://law.ai` | Base URL for profile links |\n\n---\n\n## How It Works\n\n```\nUser: \"Find me a patent attorney in San Francisco\"\n  ↓\nAI Assistant (Claude, GPT, etc.)\n  ↓\nMCP Protocol\n  ↓\nLaw.AI MCP Server\n  ↓\n991K+ bar-verified attorney profiles (PostgreSQL)\n  ↓\nReal attorneys with real bar numbers\n```\n\n---\n\n## Coverage\n\n- **991,000+** attorney profiles\n- **All 50 states + DC** + U.S. territories\n- **90+** practice areas\n- **State bar registries** as the source of record — updated continuously\n- **Bar status surfaced** — Active, Inactive, Suspended, Disbarred, Retired\n\n---\n\n## MCP Registry\n\nListed in the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `ai.law/lawyer-search`.\n\n```bash\ncurl \"https://registry.modelcontextprotocol.io/v0/servers?search=lawyer\"\n```\n\n---\n\n## Contributing\n\nIssues and PRs welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) if present, or open a ticket on the [issues page](https://github.com/risk-ai/lawai-mcp-server/issues).\n\n---\n\n## License\n\nMIT — use it everywhere. See [LICENSE](LICENSE).\n\n---\n\n## About Law.AI\n\n[Law.AI](https://law.ai) is the independent lawyer directory built for the AI age. Legacy directories (FindLaw, Avvo, Martindale — all owned by Internet Brands) were built for web search. Law.AI is built for AI-native discovery: tool-callable, structured, verified, and grounded in state bar data.\n\n---\n\n*Stop hallucinating lawyers. Start finding real ones.*\n",
  "bytes": 6524,
  "sha": "22ca5916228c20c4b728ea9834a8d8de156142a27c1e500dbaceb1be9c8cc554",
  "repo_slug": "risk-ai/lawai-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_ai_law_lawyer_search_6fa65b57/readme"
}