us-legal-mcp
An MCP server that provides comprehensive US legislation.
README
🇺🇸 US Legal MCP Server
A comprehensive Model Context Protocol (MCP) server for US legal data, providing access to Congress bills, Federal Register documents, court opinions, and committee data.
✨ Features
📜 Congress.gov Integration
- Search bills and resolutions
- Get recent legislation
- Get committee information
- Real-time legislative data
📋 Federal Register Integration
- Search regulations and executive orders
- Get recent agency documents
- Full document text and metadata
⚖️ CourtListener Integration
- Search court opinions (federal and state courts)
- Get recent court decisions
- Access Supreme Court, appellate, and state court data
- Full case text and metadata
🗳️ Congress Committees
- Get committee information
- Filter by chamber (House/Senate)
- Legislative activity tracking
🚀 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 CourtListener API access (free tier available)
export COURT_LISTENER_API_KEY="your_court_listener_api_key"
Running the Server
npm start
MCP Configuration (Cursor/Claude)
To use this MCP server with Cursor or Claude Desktop, add the following configuration:
For Cursor
Create or edit ~/.cursor/mcp.json (or your Cursor MCP config location):
{
"mcpServers": {
"us-legal-mcp": {
"command": "node",
"args": ["/absolute/path/to/legal-mcp/dist/index.js"],
"env": {
"CONGRESS_API_KEY": "",
"COURT_LISTENER_API_KEY": "258021eb4dd1901f1acfdb3f521fb8a7837a9097"
}
}
}
}
Important: Replace /absolute/path/to/legal-mcp with your actual project path.
For Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"us-legal-mcp": {
"command": "node",
"args": ["/absolute/path/to/legal-mcp/dist/index.js"],
"env": {
"CONGRESS_API_KEY": "",
"COURT_LISTENER_API_KEY": "258021eb4dd1901f1acfdb3f521fb8a7837a9097"
}
}
}
}
See mcp-config-example.json in this repository for a reference configuration.
🛠️ 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-all-legal
Comprehensive search across all working sources (Congress Bills, Federal Register, Court Opinions)
- 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)
search-court-opinions
Search for court opinions and decisions
- Query: Search terms (e.g., "constitutional", "copyright")
- Court: Optional court filter (e.g., "scotus", "ca1", "ca2")
- Limit: Number of results (1-50)
get-recent-court-opinions
Get the most recently published court opinions
- Court: Optional court filter
- Limit: Number of results (1-50)
get-congress-committees
Get list of Congressional committees
- Congress: Optional Congress number (100-120)
- Chamber: Optional filter ("House" or "Senate")
📊 Data Sources
| Source | Description | API | Auth Required | Status |
|---|---|---|---|---|
| Congress.gov | Bills, resolutions, committees | https://api.congress.gov/v3 | Optional | ✅ |
| Federal Register | Regulations, executive orders | https://www.federalregister.gov/api/v1 | No | ✅ |
| CourtListener | Court opinions, decisions | https://www.courtlistener.com/api/ | Optional | ✅ |
Note: US Code and Regulations.gov integrations were removed due to persistent API reliability issues.
🔑 API Keys
Congress.gov API Key (Optional)
- Visit https://api.congress.gov/
- Sign up for a free account
- Get your API key
- Set
CONGRESS_API_KEYenvironment variable
CourtListener API Key (Optional)
- Visit https://www.courtlistener.com/api/
- Create a free account
- Get your API key from your profile
- Set
COURT_LISTENER_API_KEYenvironment variable
Note: A pre-configured API key is included in the example MCP config file for quick setup.
🎯 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-all-legal",
"arguments": {
"query": "healthcare",
"limit": 20
}
}
Search Court Opinions
{
"tool": "search-court-opinions",
"arguments": {
"query": "immigration asylum",
"court": "scotus",
"limit": 10
}
}
Get Congressional Committees
{
"tool": "get-congress-committees",
"arguments": {
"congress": 119,
"chamber": "Senate"
}
}
📝 License
MIT License - see LICENSE file for details.
🤝 Contributing
Contributions welcome! Please read the contributing guidelines and submit pull requests.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。