Ristophonics/MCPLegal
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.
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
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 statutessearch-case-law
- Search California court cases and decisionsget-court-info
- Get information about California courtsget-legal-forms
- Access California legal forms and templateslookup-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
- California Legislative Information: https://leginfo.legislature.ca.gov
- California Courts: https://www.courts.ca.gov
- Fallback to curated mock data when scraping fails
āļø 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