Law.AI — Lawyer Search

ai.law.mcp由 mcp.law.ai 發布官方發布者v0.2.3更新於 Oct 24, 2026

Verified lawyer and attorney search, discovery, and matching for AI — 991K+ US profiles.

已驗證Streamable HTTP可網頁執行位置與生活知識與記憶

概覽

AI 產生的概覽

一個遠端 MCP 伺服器,讓助理搜尋並核實來自州律師公會登記處的 99.1 萬多份美國律師檔案。

可以做什麼
依執業領域、州、城市和律師執照狀態搜尋律師檔案,依姓名查詢以核實律師是否存在及是否持照,或依 Law.AI ID 取得完整檔案,包括簡介、律師資格和律師選擇公開的聯絡方式。列出參考資料:執業領域及各州律師數量。README 還提到案件媒合和費用區間工具,但不在所列工具中。
適用情境
當助理需要為使用者指向真實、持照的美國律師而不是編造姓名時適用,例如法律轉介、核實某位具名律師是否存在,或依執業領域和州瀏覽涵蓋情況。
執行需求
遠端 MCP 端點;免費層無需安裝或 API 金鑰。選用的 Bearer API 金鑰可提高速率限制並啟用批次匯出。從原始碼自行架設需要 Node.js 和 PostgreSQL 資料庫,透過 DB_HOST、DB_PORT、DB_USER、DB_PASSWORD 和 DB_NAME 設定。
安裝前請注意
託管端點開放未驗證的唯讀存取;付費金鑰僅用於更高限額。結果是名錄資料而非法律建議,README 說明應在相關州律師公會獨立核實資格。自行架設需要在 DB_PASSWORD 中提供資料庫密碼。

AI 概覽如何產生和驗證

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Law.AI — Lawyer Search,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/ai.law.mcp%2Flawyer-search/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "law-ai-lawyer-search": {
      "type": "http",
      "url": "https://mcp.law.ai/"
    }
  }
}

README

Law.AI MCP Server

Verified U.S. lawyer search for AI assistants. Stop hallucinating attorneys. Start finding real ones.

[npm version] [License: MIT] [MCP Registry]

The 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.


Why This Exists

Every 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.


Quick Start

Claude Desktop (local, stdio)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "law-ai": {
      "command": "npx",
      "args": ["lawai-mcp-server"]
    }
  }
}

Hosted (Streamable HTTP)

Connect any MCP client to the hosted endpoint:

https://mcp.law.ai

No install required. Free tier works without an API key.

Cursor / VS Code

{
  "law-ai": {
    "command": "npx",
    "args": ["lawai-mcp-server"]
  }
}

From Source

git clone https://github.com/risk-ai/lawai-mcp-server.git
cd lawai-mcp-server
npm install
npm run build
npm start

Available Tools

ToolPurpose
search_lawyersSearch by practice area, state, city, and bar status
get_lawyer_profileFull profile for a specific lawyer by ID
find_lawyer_by_nameVerify a lawyer exists and is licensed
match_lawyer_to_matterPlain-English matter → ranked lawyer matches
get_legal_cost_estimateFee ranges by billing model and region
get_practice_areasList all practice areas with counts
get_jurisdictionsList U.S. jurisdictions with coverage

search_lawyers

Search the directory by practice area, location, and bar status.

"Find personal injury lawyers in Houston, Texas"
→ Ranked results with profiles, firms, and credentials

get_lawyer_profile

Get full details for a specific lawyer by ID.

"Get profile for lawyer #12345"
→ Bio, education, bar admissions, practice areas, contact info

find_lawyer_by_name

Look up a lawyer by name to verify they exist and are licensed.

"Is there a lawyer named Jane Smith in New York?"
→ Matching profiles with disambiguation

match_lawyer_to_matter

Describe a legal issue in plain English; receive ranked attorney matches.

"My landlord won't return my deposit in Brooklyn"
→ Classified to Landlord–Tenant / Consumer law → ranked NY tenant attorneys

get_legal_cost_estimate

Estimated fee ranges by billing model (hourly, flat, contingency), adjusted for case complexity and region.

get_practice_areas

List all available practice areas with lawyer counts.

get_jurisdictions

List U.S. states and territories with coverage numbers.


Transports

TransportUse case
stdioLocal clients (Claude Desktop, Cursor, VS Code) — npx lawai-mcp-server
Streamable HTTPRemote clients, hosted at https://mcp.law.ai

Authentication & Tiers

The hosted endpoint is open for unauthenticated read access on the free tier. Bring an API key (Bearer token) for higher limits and bulk export.

TierRate limitBulk exportUse case
Free (no key)100 req/min—Personal use, evaluation, single-query workflows
Pro1,000 req/min10K rows/dayApps, agents in production
Business10,000 req/minUnlimitedHigh-volume routing, enrichment, integrations

Request a key: law.ai/api or [email protected].

Local stdio installations are unmetered.


Data Privacy

  • Unclaimed profiles — Public bar information only (name, location, practice areas, bar status).
  • Claimed profiles — Additional contact information the lawyer has opted to share.
  • No scraping — Rate-limited to prevent data harvesting.
  • Disclaimers included — All results note that credentials should be independently verified at the relevant state bar.

Environment Variables (self-hosted)

VariableDefaultDescription
DB_HOST127.0.0.1PostgreSQL host
DB_PORT5433PostgreSQL port
DB_USERrich_enrichmentDatabase user
DB_PASSWORD—Database password
DB_NAMElawaiDatabase name
LAW_AI_BASE_URLhttps://law.aiBase URL for profile links

How It Works

User: "Find me a patent attorney in San Francisco"
  ↓
AI Assistant (Claude, GPT, etc.)
  ↓
MCP Protocol
  ↓
Law.AI MCP Server
  ↓
991K+ bar-verified attorney profiles (PostgreSQL)
  ↓
Real attorneys with real bar numbers

Coverage

  • 991,000+ attorney profiles
  • All 50 states + DC + U.S. territories
  • 90+ practice areas
  • State bar registries as the source of record — updated continuously
  • Bar status surfaced — Active, Inactive, Suspended, Disbarred, Retired

MCP Registry

Listed in the official MCP Registry as ai.law/lawyer-search.

curl "https://registry.modelcontextprotocol.io/v0/servers?search=lawyer"

Contributing

Issues and PRs welcome. See CONTRIBUTING.md if present, or open a ticket on the issues page.


License

MIT — use it everywhere. See LICENSE.


About Law.AI

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.


Stop hallucinating lawyers. Start finding real ones.

來源:README.md,提交 6267b2f

工具

5

search_lawyers

Search verified lawyer profiles by practice area, state, city, and bar status.

輸入參數citylimitstateoffsetbar_statuspractice_area

get_lawyer_profile

Get full profile for a specific lawyer by their Law.AI ID.

輸入參數id必填

find_lawyer_by_name

Look up a lawyer by name to verify they exist and are licensed.

輸入參數name必填state

get_practice_areas

List all practice areas with lawyer counts.

無需輸入參數。

get_jurisdictions

List US states with lawyer counts.

無需輸入參數。

版本歷史

1
  1. v0.2.3最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

這個評分如何計算