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.

Functions

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}}'
    Sign in to run
    Responsereturns CaBill
    interface 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;
    }