MCPLegal

Ristophonics/MCPLegal

3.2

If you are the rightful owner of MCPLegal and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The California Legal MCP Server provides real-time access to California legal resources through web scraping and intelligent search capabilities.

Tools
  1. search-california-codes

    Search California state codes and statutes

  2. search-case-law

    Search California court cases and decisions

  3. get-court-info

    Get information about California courts

  4. get-legal-forms

    Access California legal forms and templates

  5. lookup-legal-definitions

    Look up California legal term definitions

California Legal MCP Server

A Model Context Protocol (MCP) server providing real-time access to California legal resources through web scraping and intelligent search capabilities.

🌟 Features

  • Live Data: Real-time web scraping of California Legislative Information
  • Comprehensive Coverage: Civil Code, Penal Code, Labor Code, Family Code, and more
  • Smart Search: Intelligent keyword mapping to relevant legal sections
  • Modern UI: Responsive dashboard with search history and export capabilities
  • Robust Fallback: Graceful degradation to mock data when scraping fails
  • Framework-Free: Pure HTML, CSS, and JavaScript implementation

šŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

git clone <repository-url>
cd MCPLegal
npm install

Build

npm run build

Run MCP Server

npm start

Run with Web Dashboard

npm run webscrape

Then open: http://localhost:3001/simple-dashboard.html

šŸ“Š Web Scraping Demo

Access the interactive demo at: http://localhost:3001/web-scraping-demo.html

šŸ”§ API Usage

MCP Tools Available

  • search-california-codes - Search California state codes and statutes
  • search-case-law - Search California court cases and decisions
  • get-court-info - Get information about California courts
  • get-legal-forms - Access California legal forms and templates
  • lookup-legal-definitions - Look up California legal term definitions

HTTP API

POST http://localhost:3001/api/tools
Content-Type: application/json

{
  "tool": "search-california-codes",
  "args": {
    "query": "security deposit",
    "section": "1950.5",
    "code": "Civil Code"
  }
}

šŸŽÆ Supported Legal Areas

  • Landlord-Tenant Law: Security deposits, habitability, eviction, rent control
  • Employment Law: Wage laws, labor standards, workplace rights
  • Criminal Law: Assault, battery, theft, fraud
  • Contract Law: Agreements, breach, damages
  • Property Law: Real estate, discrimination, privacy
  • Consumer Protection: Fraud, deceptive practices

šŸ“ Project Structure

MCPLegal/
ā”œā”€ā”€ src/
│   └── index.ts                     # Main MCP server with web scraping
ā”œā”€ā”€ build/
│   └── index.js                     # Compiled MCP server
ā”œā”€ā”€ simple-dashboard.html            # Main dashboard interface
ā”œā”€ā”€ simple-http-bridge-webscraping.js # HTTP bridge with MCP integration
ā”œā”€ā”€ web-scraping-demo.html          # Interactive demo page
ā”œā”€ā”€ package.json                    # Project configuration
└── README.md                       # This file

šŸ› ļø Development

Build for Development

npm run dev

Web Scraping Server

npm run webscrape

šŸ“„ License

ISC License

šŸ”— Data Sources

āš–ļø Legal Disclaimer

This is not legal advice. This server provides general information about California law for educational purposes only. Always consult with a qualified California attorney for legal matters.


Built with ā¤ļø using the Model Context Protocol