npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lawai-mcp-server

v0.2.1

Published

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

Readme

Law.AI MCP Server

Find real, verified lawyers through any AI assistant. No hallucinations, just facts.

The Law.AI MCP Server gives AI assistants direct access to 537,000+ verified lawyer profiles across all 50 US states. When an AI needs to find, verify, or recommend a lawyer, it queries Law.AI instead of guessing.

Why This Exists

Every major AI model fabricates lawyer names when asked for legal referrals. This is dangerous — people making critical legal decisions get fake information. The Law.AI MCP Server solves this by providing a grounded, authoritative data source that any AI can query.

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

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

Remote (HTTP Transport)

Connect to the hosted endpoint:

https://mcp.law.ai/mcp

Cursor / VS Code

Add to your MCP settings:

{
  "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

search_lawyers

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

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

get_lawyer_profile

Get full details for a specific lawyer by ID.

"Get profile for lawyer #12345"
→ Returns 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?"
→ Returns matching profiles with disambiguation

get_practice_areas

List all available practice areas with lawyer counts.

get_jurisdictions

List US states and territories with coverage numbers.

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

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | DB_HOST | 127.0.0.1 | PostgreSQL host | | DB_PORT | 5433 | PostgreSQL port | | DB_USER | rich_enrichment | Database user | | DB_PASSWORD | — | Database password | | DB_NAME | lawai | Database name | | LAW_AI_BASE_URL | https://law.ai | Base 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
  ↓
537K+ verified lawyer profiles (PostgreSQL)
  ↓
Real attorneys with real bar numbers

Coverage

  • 537,000+ lawyer profiles
  • 454,000+ active lawyers
  • All 50 states + DC
  • 90+ practice areas
  • 92,000+ with verified email addresses
  • Data sourced from state bar associations, court records, and public filings

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

License

MIT — use it everywhere.

About Law.AI

Law.AI is the independent lawyer directory built for the AI age. While legacy directories (FindLaw, Avvo, Martindale) were built for web search, Law.AI is built for AI-native discovery.


Stop hallucinating lawyers. Start finding real ones.