# GovInfo (GPO Legislative Docs) MCP for AI Agents AI Agent Connect

> GovInfo (GPO Legislative Docs) lets you pull official US government documents, like Congressional bills and the Federal Register, directly into your AI workflow. It gives your agent the ability to query the GPO database for specific legislative packages, summaries, and content without you having to manually browse through government portals.

## Overview
- **Category:** document-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_tFkBmgOqtniED0wn5R7IDpnQfdgQcGmdD6bR708I/ai-agent-connect
- **Tags:** legislative-data, congressional-bills, federal-register, gpo, government-documents

## Description

GovInfo (GPO Legislative Docs) connects your AI agent to the official U.S. Government Publishing Office (GPO) API to research and retrieve official federal documents through natural conversation. Instead of hunting through labyrinthine government websites and clicking through endless pages of PDF links, you can just ask your AI agent to find specific legislative data. It gives you the ability to query the GPO database for specific legislative packages, summaries, and content without having to manually browse through government portals. You can pull real-time information on federal regulations, presidential papers, and active bills. If you're trying to keep up with how a specific policy is moving through Congress or need to see the exact wording of a new federal notice, you can get those details instantly. It's a huge shift from manual searching to direct retrieval. You'll find it's much easier to stay on top of regulatory changes when your AI can do the heavy lifting of navigating the GPO database for you. It is designed for professionals who need to stay on top of the moving parts of federal policy without getting bogged down in the bureaucracy of manual navigation. Whether you are looking for a specific regulation or a broad overview of a legislative category, this connection provides a direct path to the source material. You can find this and thousands of other tools in the Vinkius catalog, where everything is set up so you can start querying government data as soon as you've entered your API key.

## Tools

### list_collections
List all available GovInfo document collections. Use this to see the full range of categories like Congressional Bills or the Federal Register.

### get_collection_details
Get metadata for a specific GovInfo collection. This helps you understand what types of documents are in a category.

### get_package_content
Download or retrieve the actual content of a GovInfo package. It returns the data as raw text or binary strings.

### get_package_summary
Get a detailed summary and metadata for a specific GovInfo package. This is great for quickly scanning the contents of a bill.

### list_packages
List packages within a specific GovInfo collection by date. This helps you find the most recent publications in a category.

### search_govinfo
Search GovInfo collections for specific keywords or topics. This allows for complex queries across the entire GPO database.

## Prompt Examples

**Prompt:** 
```
List all available GovInfo document collections.
```

**Response:** 
```
I've accessed the GovInfo database. Here are the main collections available:

* **BILLS**: Congressional Bills
* **FR**: Federal Register
* **DCPD**: Daily Compilation of Presidential Documents
* **MODS**: Metadata and other records

Which of these categories would you like to explore first?
```

**Prompt:** 
```
Search for recent Congressional Bills related to 'artificial intelligence'.
```

**Response:** 
```
I'm searching the GPO database for 'artificial intelligence' within the Congressional Bills collection. 

I found several recent results, including:
* **H.R. 3849** 
* **S. 1624** 

Would you like me to pull the summary for one of these, or should I look for something else?
```

**Prompt:** 
```
Get the summary and metadata for package ID BILLS-117hr3076ih.
```

**Response:** 
```
I've retrieved the details for package **BILLS-117hr3076ih** (Postal Service Reform Act of 2022). 

**Summary:** This bill was introduced in the 117th Congress and focuses on the financial stability of the USPS. 

**Metadata:** 
- **Status:** Active
- **Links:** I have the MODS and XML metadata links ready if you need to see the technical specifics.
```

## Capabilities

### List all document categories
See every available collection like Congressional Bills and the Federal Register in one view.

### Search the GPO database
Perform complex queries across the entire government database using specific keywords.

### Fetch legislative summaries
Get detailed metadata and summaries for specific legislative packages instantly.

### Retrieve document content
Pull content in multiple formats including PDF and XML for deep analysis.

### Filter by date
Track new publications and legislative changes by listing packages within specific timeframes.

## Use Cases

### Tracking AI legislation
A policy analyst needs to find all bills related to artificial intelligence from the last six months. They ask their agent to search the GPO database and list the relevant results.

### Quick bill summaries
A legal professional wants to know the status of a specific bill. They ask the agent to pull the summary for a specific ID to get the current status and metadata.

### Historical record research
A journalist is researching historical federal records. They ask the agent to find the correct category and then query for specific dates to find old records.

### Regulatory notice retrieval
A compliance officer needs to see the full text of a new federal notice. They ask the agent to pull the raw data from the GPO archives.

## Benefits

- Stop manual browsing of government portals by using list_collections to see every available category instantly.
- Get precise summaries of complex bills using get_package_summary to save hours of reading time.
- Perform complex queries across the entire GPO database with search_govinfo instead of basic keyword searches.
- Access historical context and metadata for legislative packages to see how policies have evolved over time.
- Retrieve document content in multiple formats like PDF and XML using get_package_content for deep analysis.
- Track legislative changes in real-time by using list_packages to filter results by specific dates.

## How It Works

The bottom line is you get direct, programmatic access to official federal records through a simple chat interface.

1. Subscribe to the GovInfo MCP on Vinkius
2. Enter your GovInfo (Data.gov) API Key in the configuration
3. Ask your AI client to search for specific bills or federal registers

## Frequently Asked Questions

**Can the GovInfo MCP find specific Congressional bills?**
Yes, it can search the entire GPO database for specific bills using keywords. You can ask your agent to find bills related to any topic, and it will pull the summaries and metadata for you.

**Does GovInfo MCP include the Federal Register?**
Yes, it includes the Federal Register as one of the primary collections. You can use it to find federal regulations and notices quickly without navigating the GPO website.

**Can I use the GovInfo MCP to download actual documents?**
Yes, you can retrieve the content of packages. While binary formats like PDFs are returned as raw strings, it allows your agent to pull the actual text and data from the documents.

**Is the GovInfo MCP good for tracking new government publications?**
It's perfect for that. You can ask your agent to list packages within a specific collection sorted by date, which helps you see the most recent legislative changes or notices.

**Do I need a special account to use GovInfo MCP?**
You just need a GovInfo (Data.gov) API Key. Once you provide that to the Connector, your AI client can start querying the official government records immediately.

**Can the GovInfo MCP help with legal research?**
It's a powerful tool for legal research. It allows you to quickly find specific bill versions, federal regulations, and historical records that would otherwise take a lot of manual searching to locate.

**Can I search for specific keywords across all government documents?**
Yes! Use the `search_govinfo` tool with Lucene syntax to perform complex queries. You can filter by date, collection, or specific fields to find exactly what you need.

**How do I get the actual text or PDF of a bill?**
Use the `get_package_content` tool with the specific `packageId` and choose your preferred format (pdf, xml, mods, etc.) to retrieve the document content.

**What types of document collections are available?**
Run the `list_collections` tool to see all available sources. Common codes include 'BILLS' for Congressional Bills, 'FR' for the Federal Register, and 'CPD' for Compilation of Presidential Documents.