ca-leginfo-mcp
MCP server for California statutes and legislation, enabling verification of current statutory text, tracking pending bills that would amend or repeal sections, and retrieving legislative history from 1993 onward using official legislative bulk data.
README
ca-leginfo-mcp
An MCP server for California statutes and legislation, built on the Legislature's official public bulk-data channel (downloads.leginfo.legislature.ca.gov).
Lets an attorney's AI tool:
- Verify statutory text from source — current text, history note, and effective date for any section of the 29 California codes or the Constitution
- Flag pending bills that would amend, repeal, or add a given section
- Retrieve legislative history — from a code section to its enacting and amending bills and their committee/floor analyses, back to 1993
Status
All four build phases complete (ingest pipeline, archives, MCP server,
deployment). The server runs on Railway with artifacts in Cloudflare R2,
rebuilt nightly (deploy/):
https://server-production-602d.up.railway.app/mcp (streamable HTTP)
ingest/builds both corpus artifacts from the pubinfo bulk zips:current.db(~40 s nightly: current law + session, FTS, parsed bill→section refs, analysis text, sanity gate) andarchive.db(4.7 GB, 18 sessions 1989–2023: 283k bill version texts, 371k text-extracted analyses, votes, vetoes, ~1M parsed section refs, per-session coverage matrix).server/serves both over MCP (mcp2.0): seven tools — section text/search, pending-bill flagging, bill lookup, analyses with full text, legislative history (initiative and constitutional-amendment aware), chapter→bill pivot. Every response carries extract dates and a source note; era gaps come back as explicit coverage statements. Run locally:ca-leginfo-server --current-db … --archive-db …(stdio;--transport httpfor streamable HTTP).deploy/is the Railway + R2 layer:boot.pysyncs the artifacts from R2 and serves (/healthreports freshness); a nightly cron (nightly.py, 10:00 UTC) rebuilds current.db from the freshest pubinfo daily zip, gates it against last night's artifact, and uploads only on PASS. Simple per-client rate limiting on HTTP.
The feasibility spike that preceded the build is preserved in
spike/ — see SPIKE_FINDINGS.md.
Data source
All data derives from the California Legislature's public "pubinfo" bulk
downloads — the sanctioned distribution channel for this data (the
capublic schema published at downloads.leginfo.legislature.ca.gov).
No scraping is involved.
This is an unofficial convenience mirror. Statute text refreshes weekly (bills daily); every response carries its extract dates. For court filings, verify against the official publication.
Disclaimer
This tool retrieves law; it does not give legal advice.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.