TP

travis-prall/govinfo-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 3 forks 质量 53 趋势 34NOASSERTION

govinfo-mcp

概览

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. The GovInfo MCP Server provides comprehensive access to through the GovInfo API. It is designed for LLMs and legal research tools to programmatically access up-to-date U.S. government information. - 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 See app/README.md for full tool parameter documentation. - Python 3.

README

以下为原文 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")
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →