• DOCS
  • DATA
  • SYNTAX
  • HUMAN

How to search federal records with your AI

Connect your AI to the GPO database to pull specific legislative and regulatory documents using advanced search syntax.

Ask AI about this page

Short answer

How do I search federal records with my AI?

You give your AI a specific search query using Lucene syntax, and it queries the GPO database to find the exact documents you need. This allows you to pinpoint specific regulations or historical files without manual browsing. You'll get precise document hits and collection details.

Search outcomes

What you'll find

The results of your queries.

DOCS

Targeted documents

The AI finds specific legislative or regulatory files based on your keyword patterns. You get the direct links and content you asked for.

DATA

Collection details

The AI pulls metadata and structural info about specific GPO collections. This helps you understand the scope of the records available.

SYNTAX

Complex queries

The AI translates your natural language into Lucene syntax. This enables deep filtering that standard search bars often miss.

HUMAN

Manual verification

You must review the final document text to ensure the AI interpreted the legal context correctly. The AI finds the file, but you confirm the meaning.

The workflow

What your AI does when a search arrives.

The AI handles the heavy lifting of database querying and syntax translation.

  1. Translate intent

    Your AI takes your plain English request and converts it into a valid Lucene query string.

    search_govinfo
  2. Execute search

    The AI runs the query against the GPO database to pull relevant legislative or regulatory records.

    search_govinfo
  3. Inspect collections

    If you need to know what's inside a specific set of records, the AI pulls the collection's metadata.

    get_collection_details
  4. Filter results

    The AI uses the returned data to narrow down the exact document or historical file you requested.

    search_govinfo

Try it

Copy these to start.

Use these prompts to trigger a search immediately.

Starting points

Swap out the bracketed terms for the specific agency, year, or regulation you are looking for.

GovInfo Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_tFkBmgOqtniED0wn5R7IDpnQfdgQcGmdD6bR708I/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — GovInfo capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "govinfo-gpo-legislative-docs-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_tFkBmgOqtniED0wn5R7IDpnQfdgQcGmdD6bR708I/mcp"
    }
  }
}
Copy into chat04
  • Search GovInfo for documents containing 'environmental regulation' and 'EPA' from 2022.

  • Find all legislative documents in the GPO database that mention 'tax reform' using Lucene syntax.

  • Get the details for the collection containing recent Congressional hearings.

  • Search for specific regulatory filings related to 'maritime law' in the last five years.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect GovInfo once, then ask.

One click connects your AI to the GPO database. Your credentials stay encrypted, and you can start querying immediately.

Connect GovInfo to your AI

FAQ

How this task behaves

  • 01

    Can the AI edit federal documents?

    No. The AI can only search and retrieve existing records from the GPO database.

  • 02

    Does the AI write its own laws?

    No. It only finds historical or current regulatory text that already exists in the database.

  • 03

    Can I use standard Google search terms?

    Yes, but the AI is most effective when you ask it to use Lucene syntax for complex or narrow searches.

  • 04

    Can the AI download files directly to my computer?

    No. The AI retrieves the data and provides the information or links within your AI client.

  • 05

    Does it search all government websites?

    No. It specifically searches the GPO database via the provided tools.

  • More questions about GovInfo? The Connector page answers them. See everything the GovInfo Connector can do

Connect GovInfo to Claude, Cursor, ChatGPT & more