California Legislative Information (leginfo) API and MCP server for AI agents
Let Claude, ChatGPT or your own agent read California Legislative Information (leginfo). No California Legislative Information (leginfo) API key needed.
Add to your agent
Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.
Read https://bowmark.ai/sites/leginfo_legislature_ca_gov.md and add Bowmark's California Legislative Information (leginfo) MCP server to my agent.Run this in a terminal, then sign in when the browser opens. Claude Code keeps its own sign-in (a claude.ai sign-in does not carry over), so add only this one server. Adding the Bowmark plugin as well lists every tool twice.
claude mcp add --transport http bowmark-leginfo-legislature-ca-gov https://api.bowmark.ai/mcp/site/leginfo_legislature_ca_govPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-leginfo-legislature-ca-gov": {
"url": "https://api.bowmark.ai/mcp/site/leginfo_legislature_ca_gov"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-leginfo-legislature-ca-gov","type":"http","url":"https://api.bowmark.ai/mcp/site/leginfo_legislature_ca_gov"}'Run this in a terminal.
codex mcp add bowmark-leginfo-legislature-ca-gov --url https://api.bowmark.ai/mcp/site/leginfo_legislature_ca_govIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/leginfo_legislature_ca_govIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/leginfo_legislature_ca_govAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/leginfo_legislature_ca_govFunctions
Open a function to see its parameters and run it with your own API key.
getBillReads one California bill from leginfo.legislature.ca.gov by its number (AB 1, SB 79): authors, topic, status, version list, full action history…POST /v1/sites/leginfo_legislature_ca_gov/getBill
Parameters
The bill number as people write it: "AB 1", "SB-79", "ACR 12", "AB1".
Either year of the two-year session.
Cap on the returned bill text (default 20000, max 200000). 0 leaves the text out.
curl -X POST https://api.bowmark.ai/v1/sites/leginfo_legislature_ca_gov/getBill \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{"bill":"AB 1","session":2025,"maxTextChars":0}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.leginfo_legislature_ca_gov.getBill({ bill: "AB 1", session: 2025, maxTextChars: 0 });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.leginfo_legislature_ca_gov.getBill({"bill": "AB 1", "session": 2025, "maxTextChars": 0}))Responsereturns CaBillinterface CaBillVote { date: string; // MM/DD/YY. result: string; // e.g. "PASS", "FAIL". location: string; // e.g. "Assembly Floor", "Asm Appropriations". motion: string; ayes: number; noes: number; nvr: number; // No votes recorded. } interface CaBillAction { date: string; // MM/DD/YY. action: string; } interface CaBill { billId: string; // The site's id, e.g. "202520260AB1". measure: string; // e.g. "AB-1". session: string; // e.g. "2025-2026". url: string; topic: string | null; title: string | null; // The long title: "An act to add …". leadAuthors: string | null; coauthors: string | null; houseLocation: string | null; // e.g. "Secretary of State", "Senate". measureType: string[]; // e.g. "Inactive Bill - Chaptered", "Majority Vote Required". versions: string[]; // e.g. "10/09/25 - Chaptered". history: CaBillAction[]; // Every action, newest first. votes: CaBillVote[]; text: string | null; // Latest version's text, cut at maxTextChars. textTruncated: boolean; }