# GovInfo MCP for AI Agents AI Agent Connect

> GovInfo lets your AI agent pull official US government documents, including congressional bills, federal regulations, and court opinions, directly from the federal database. It cuts through the noise of complex government websites to find specific legislative and regulatory records using natural language.

## Overview
- **Category:** the-unthinkable
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_gXhi6Pna9o8QOwcsEa3Es5VB8EcKSL3unzppK2f5/ai-agent-connect
- **Tags:** public-records, federal-documents, legislation, regulatory-data, document-discovery

## Description

GovInfo lets your agent pull official US government documents, including congressional bills, federal regulations, and court opinions, directly from the federal database. It cuts through the noise of complex government websites to find specific legislative and regulatory records using natural language. Instead of clicking through dozens of pages or dealing with clunky search filters, you can just ask for what you need. Whether you're tracking a specific bill through Congress or looking for the latest Federal Register notice, your agent handles the heavy lifting of navigating the federal database. It can pull metadata, find related documents to show you the history of a rule, and grab daily updates so you don't have to check the site every morning. It's a major time saver for anyone who needs to stay on top of federal law or public records without the headache of manual searching. By adding this to your stack on Vinkius, you turn your agent into a high-level research assistant that knows exactly where to look for the truth in a sea of government publications.

## Tools

### get_collection
Get packages within a collection by date range. Use this to pull a specific batch of documents like all bills from a certain year.

### search_documents
Search documents via the GovInfo Search API. Use this for broad, natural language queries across the entire federal database.

### get_granule_summary
Get summary metadata for a specific granule. This helps you see the core details of a single sub-document quickly.

### get_package_summary
Get summary metadata for a specific package. Use this to get an overview of a large collection of documents at once.

### get_published
Get documents published on a specific date. This is perfect for checking what was officially released on a particular day.

### get_related_documents
Get documents related to a specific package. Use this to find the legislative history or connected rules of a bill.

### list_collections
List available document collections. This shows you all the different types of government records you can access.

### list_package_granules
List granules (sub-documents) for a package. This lets you see every individual file contained within a larger government package.

## Prompt Examples

**Prompt:** 
```
What types of government documents can I find using GovInfo?
```

**Response:** 
```
GovInfo provides access to several major federal collections. Here is what you can find:

| Collection | Description |
| :--- | :--- |
| **BILLS** | Congressional Bills |
| **FR** | Federal Register |
| **CFR** | Code of Federal Regulations |
| **USCOURTS** | United States Courts Opinions |

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

**Prompt:** 
```
Can you find the Federal Register issues from January 10, 2023?
```

**Response:** 
```
I've retrieved the documents published on January 10, 2023. 

**Federal Register Issue: January 10, 2023**
*   **Total Documents:** 124 granules
*   **Status:** Officially Published

Would you like me to list the specific documents inside this issue or provide a summary of the package?
```

**Prompt:** 
```
How do I find the legislative history of a specific bill?
```

**Response:** 
```
I can help with that. To find the history of a specific bill, I can look for all related documents associated with it. This will show you the legislative path, including previous versions and connected rules. Just let me know which bill you are interested in, and I will pull that history for you.
```

## Capabilities

### Search federal records
Query the entire government database for specific bills, regulations, or court opinions.

### List document collections
View all available categories of government records in one place.

### Get daily publications
Retrieve every document officially released on a specific date.

### Extract package metadata
Get summary details for large sets of documents without downloading them.

### Track legislative history
Find related documents to see how a specific rule or bill evolved.

### Filter by date range
Pull specific document packages from a designated timeframe.

## Use Cases

### Compliance Check
A legal team needs to see every Federal Register notice from last month. The agent uses get_collection to pull the list.

### Policy Tracking
A policy analyst wants to know the history of a specific rule. The agent uses get_related_documents to find the backstory.

### Fact Checking
A journalist needs to verify a court opinion. The agent uses search_documents to find the official text.

### Daily Briefing
A researcher wants a list of everything published today. The agent uses get_published to create a summary.

## Benefits

- Stop wasting time on government websites. Use search_documents to find what you need in seconds instead of clicking through multiple portals.
- Track legislative history easily. Use get_related_documents to see how a bill evolved over time without manual cross-referencing.
- Get daily updates automatically. Use get_published to stay on top of new federal regulations the moment they hit the public record.
- Pull precise metadata instantly. Use get_package_summary to get the facts on a document without having to download and read the whole file.
- Navigate complex collections. Use list_collections to see everything available, from court opinions to the Federal Register, in one list.
- Drill down into specific dates. Use get_collection to grab exactly the documents you need from a specific timeframe.

## How It Works

The bottom line is you get instant access to the entire federal document database without ever visiting a government website.

1. Subscribe to the GovInfo MCP and get your free API key from api.data.gov.
2. Add your API key to your AI client's configuration settings.
3. Ask your agent to find specific bills, regulations, or court opinions.

## Frequently Asked Questions

**What kind of government documents does the GovInfo MCP access?**
It provides access to official publications from all three branches of the US Federal Government, including congressional bills, federal regulations, court opinions, and presidential documents.

**Can I use GovInfo MCP to find specific congressional bills?**
Yes. You can search for specific bills using natural language and then pull the metadata or related documents to see their legislative history.

**How does GovInfo MCP help with legal compliance?**
It allows legal teams to quickly locate Federal Register notices and track the progress of bills to ensure they stay up to date with new federal requirements.

**Can my AI agent find court opinions using GovInfo MCP?**
Yes, the Connector includes the USCOURTS collection, which lets your agent retrieve official court opinions directly.

**Does GovInfo MCP provide daily updates on federal regulations?**
It can. You can ask your agent to retrieve all documents published on a specific date to see the latest federal updates.

**Is the data from GovInfo MCP official?**
Yes, this Connector connects directly to the official GovInfo API, which is the source of truth for official federal government publications.

**What kind of documents can I find on GovInfo?**
GovInfo provides access to a vast array of federal documents, including Congressional Bills (BILLS), the Federal Register (FR), Code of Federal Regulations (CFR), United States Courts Opinions (USCOURTS), and Presidential Documents (CPD). Use the `list_collections` tool to see all available categories.

**How do I find the actual text or PDF of a document?**
The `get_package_summary` tool returns metadata which includes download links (URLs) for various formats like PDF, XML, or Text. You can then use those links to access the full document.