Thanks to visit codestin.com
Credit goes to github.com

Skip to content

JamesANZ/us-legal-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‡ΊπŸ‡Έ US Legal MCP Server

A comprehensive Model Context Protocol (MCP) server for US legal data, providing access to Congress bills, Federal Register documents, US Code sections, and public comments on regulations.

✨ Features

πŸ“œ Congress.gov Integration

  • Search bills and resolutions
  • Get recent legislation
  • Access voting records and member information
  • Real-time legislative data

πŸ“‹ Federal Register Integration

  • Search regulations and executive orders
  • Get recent agency documents
  • Access public comments
  • Full document text and metadata

βš–οΈ US Code Integration

  • Search federal statutes
  • Browse by title and section
  • Historical versions
  • Complete legal text

πŸ’¬ Regulations.gov Integration

  • Search public comments
  • Access rulemaking documents
  • Agency information
  • Public input on regulations

πŸš€ Quick Start

Installation

npm install
npm run build

Environment Variables (Optional)

# For enhanced Congress.gov access (free tier available)
export CONGRESS_API_KEY="your_congress_api_key"

# For Regulations.gov access
export REGULATIONS_GOV_API_KEY="your_regulations_gov_api_key"

Running the Server

npm start

πŸ› οΈ Available Tools

search-congress-bills

Search for bills and resolutions in Congress.gov

  • Query: Search terms (e.g., "immigration", "healthcare")
  • Congress: Optional Congress number (100-120)
  • Limit: Number of results (1-50)

search-federal-register

Search Federal Register documents (regulations, executive orders)

  • Query: Search terms
  • Limit: Number of results (1-50)

search-us-code

Search US Code sections (federal statutes)

  • Query: Search terms
  • Title: Optional title number (1-54)
  • Limit: Number of results (1-50)

search-public-comments

Search public comments on regulations

  • Query: Search terms
  • Limit: Number of results (1-50)

search-us-legal

Comprehensive search across all sources

  • Query: Search terms
  • Limit: Results per source (1-50)

get-recent-bills

Get recently introduced bills

  • Congress: Optional Congress number
  • Limit: Number of results (1-50)

get-recent-regulations

Get recently published Federal Register documents

  • Limit: Number of results (1-50)

get-legal-sources

Get information about available data sources

πŸ“Š Data Sources

Source Description API Auth Required
Congress.gov Bills, resolutions, voting records https://api.congress.gov/v3 Optional
Federal Register Regulations, executive orders https://www.federalregister.gov/api/v1 No
US Code Federal statutes https://uscode.house.gov/api No
Regulations.gov Public comments https://api.regulations.gov/v4 Yes

πŸ”‘ API Keys

Congress.gov API Key (Optional)

  1. Visit https://api.congress.gov/
  2. Sign up for a free account
  3. Get your API key
  4. Set CONGRESS_API_KEY environment variable

Regulations.gov API Key (Optional)

  1. Visit https://api.regulations.gov/
  2. Sign up for an account
  3. Get your API key
  4. Set REGULATIONS_GOV_API_KEY environment variable

🎯 Example Usage

Search for Immigration Bills

{
  "tool": "search-congress-bills",
  "arguments": {
    "query": "immigration",
    "congress": 118,
    "limit": 10
  }
}

Search Federal Regulations

{
  "tool": "search-federal-register",
  "arguments": {
    "query": "environmental protection",
    "limit": 5
  }
}

Comprehensive Legal Search

{
  "tool": "search-us-legal",
  "arguments": {
    "query": "healthcare",
    "limit": 20
  }
}

πŸ“ License

MIT License - see LICENSE file for details.

🀝 Contributing

Contributions welcome! Please read the contributing guidelines and submit pull requests.

About

An MCP server that provides comprehensive US legislation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published