
GovInfo MCP Server
A Model Context Protocol server that provides LLM-friendly access to the official GovInfo API for searching and retrieving U.S. government documents including bills, laws, regulations, and other official publications.
README
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.
📦 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 |
---|---|---|
get_collections |
List all available GovInfo collections | get_collections(page_size=10) |
get_collection_details |
Get details for a specific collection | get_collection_details(collection_code="CFR") |
search_packages |
Search packages by query and filters | search_packages(query="discovery procedures", collection="CFR", page_size=5) |
advanced_search |
Advanced search with Lucene syntax and filters | advanced_search(query="title:discovery AND collection:CFR", sort_by="relevance") |
get_packages_by_collection |
List packages from a collection | get_packages_by_collection(collection="BILLS", congress=118, page_size=5) |
get_package_summary |
Get metadata for a specific package | get_package_summary(package_id="CFR-2023-title5-vol3") |
get_package_content |
Download package content in various formats | get_package_content(package_id="CFR-2023-title5-vol3", content_type="html") |
get_published_packages |
Get packages published on a specific date | get_published_packages(date_issued="2024-01-15", collection="CFR") |
get_published_range |
Get packages published within a date range | get_published_range(start_date="2024-01-01", end_date="2024-01-31", collection="PLAW") |
get_related_packages |
Find packages related to a specific package | get_related_packages(package_id="BILLS-118hr1234-ih") |
get_granule_related |
Find items related to a specific granule | get_granule_related(package_id="CFR-2023-title5-vol3", granule_id="CFR-2023-title5-vol3-sec1201-72") |
search_statutes |
Search US statutes across statute collections | search_statutes(query="civil rights", collection="USCODE", page_size=5) |
get_public_laws_by_congress |
List public laws from a specific Congress | get_public_laws_by_congress(congress=117, page_size=5) |
get_statutes_at_large |
Search Statutes at Large by volume | get_statutes_at_large(volume="137", page_size=5) |
get_uscode_title |
Search US Code sections within a title | get_uscode_title(title_number="42", page_size=5) |
list_statute_collections |
List all statute-related collections | list_statute_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_KEY
in 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 GovInfo
-
Install 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.example
to.env
and edit as needed.
Running the Server
Start the MCP server:
uv run python -m app.server
Or use the VS Code task "Run MCP Server".
Running Tests
See tests/README.md for details. Typical usage:
uv run pytest
API 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 run
where needed. - For Ubuntu/Linux. For Windows, adapt commands as needed.
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。