GovInfo MCP Server
Supports environment variable configuration through .env files for setting API keys and other configuration options
Provides test suite integration for validating the functionality of GovInfo API connections and tool operations
Built with Python 3.12+ as the runtime environment for the MCP server implementation
Optimized for deployment on Ubuntu/Linux environments with bash command support
Enables retrieval of U.S. government documents in XML format, allowing for structured access to official publications like regulations, statutes, and bills
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GovInfo MCP Serversearch for recent bills about artificial intelligence"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GovInfo MCP Server
A Model Context Protocol (MCP) server that provides LLM-friendly access to the official GovInfo API v4. This server enables searching and retrieving U.S. government documents, including bills, laws, regulations, and other official publications, for precise legal research and citation verification.
🎯 Purpose
The GovInfo MCP Server provides comprehensive access to federal regulations, statutes, and government documents through the GovInfo API. It is designed for LLMs and legal research tools to programmatically access up-to-date U.S. government information.
Related MCP server: Unstructured Document Processor MCP
📦 Key Features
Access to bills, statutes, regulations (CFR), and more
Real-time updates from the official GovInfo API
Retrieve full document text and metadata in HTML, XML, PDF, or plain text
Search by keyword, collection, date, and more
Explore related documents and cross-references
🛠️ Available MCP Tools
Tool Name | Description | Example Call |
| List all available GovInfo collections |
|
| Get details for a specific collection |
|
| Search packages by query and filters |
|
| Advanced search with Lucene syntax and filters |
|
| List packages from a collection |
|
| Get metadata for a specific package |
|
| Download package content in various formats |
|
| Get packages published on a specific date |
|
| Get packages published within a date range |
|
| Find packages related to a specific package |
|
| Find items related to a specific granule |
|
| Search US statutes across statute collections |
|
| List public laws from a specific Congress |
|
| Search Statutes at Large by volume |
|
| Search US Code sections within a title |
|
| List all statute-related collections |
|
See app/README.md for full tool parameter documentation.
🚀 Setup
Prerequisites
Python 3.12+
uv for dependency management (Poetry is NOT used)
Internet connection for GovInfo API access
GovInfo API key (set
GOVINFO_API_KEYin your environment)Ubuntu/Linux recommended (all commands below are for bash)
Installation
Clone the repository and navigate to the GovInfo project directory:
git clone <repository-url> cd GovInfoInstall dependencies using uv:
uv pip install -r requirements.txt # or, if using pyproject.toml: uv pip install -r <(uv pip compile pyproject.toml)Set your GovInfo API key:
export GOVINFO_API_KEY=your_api_key_here(Optional) Copy
.env.exampleto.envand edit as needed.
Running the Server
Start the MCP server:
uv run python -m app.serverOr use the VS Code task "Run MCP Server".
Running Tests
See tests/README.md for details. Typical usage:
uv run pytestAPI Usage
See app/README.md for detailed tool documentation and usage examples.
🔗 Links
📝 Notes
All code examples are tested and working.
File paths use relative references from the project root.
All commands use
uv runwhere needed.For Ubuntu/Linux. For Windows, adapt commands as needed.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides LLMs with access to Valyu's knowledge retrieval and feedback APIs for searching proprietary/web sources and submitting transaction feedback.2MIT
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.111
- FlicenseDquality-maintenanceA Model Context Protocol server implementation that provides structured, AI-friendly access to eRegulations data, making it easier for AI models to answer user questions about administrative procedures.416
- Alicense-qualityFmaintenanceAn MCP server for the Congress.gov API that consolidates 91 operations into 6 comprehensive legislative tools that can be used by any MCP client (i.e. Claude Desktop), or MCP-compatible AI agent, to query and reason about congressional data.101JavaScriptMIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Agentic search over your Dewey document collections from any MCP-compatible client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Travis-Prall/govinfo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server