An MCP (Model Context Protocol) server that brings authoritative US legal information into AI coding environments like Cursor and Claude Desktop. - π No API Keys Required β Works out of the box (optional keys for enhanced access) - π Comprehensive Sources β Congress, Federal Register, CourtListener - β‘ Easy Setup β One-click install in Cursor or simple manual setup - π Multi-Source Search β Sea
Add this skill
npx mdskills install JamesANZ/us-legal-mcpWell-documented MCP server providing useful legal data tools with clear setup and examples
1# πΊπΈ US Legal MCP Server23> **Comprehensive US legal data in your AI workflow.** Search Congress bills, Federal Register documents, court opinions, and committees. No API keys required (optional for enhanced access).45An [MCP (Model Context Protocol)](https://modelcontextprotocol.io) server that brings authoritative US legal information into AI coding environments like Cursor and Claude Desktop.67## Why Use US Legal MCP?89- π **No API Keys Required** β Works out of the box (optional keys for enhanced access)10- π **Comprehensive Sources** β Congress, Federal Register, CourtListener11- β‘ **Easy Setup** β One-click install in Cursor or simple manual setup12- π **Multi-Source Search** β Search across all legal sources simultaneously13- π **Real-time Data** β Recent bills, regulations, and court opinions1415## Quick Start1617Ready to explore US legal data? Install in seconds:1819**Install in Cursor (Recommended):**2021[π Install in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=legal-mcp&config=eyJsZWdhbC1tY3AiOnsiY29tbWFuZCI6Im5weCIsImFyZ3MiOlsiLXkiLCJ1cy1sZWdhbC1tY3AiXX19)2223**Or install manually:**2425```bash26npm install -g us-legal-mcp27# Or from source:28git clone https://github.com/JamesANZ/legal-mcp.git29cd legal-mcp && npm install && npm run build30```3132## Features3334### π Congress.gov35- **`search-congress-bills`** β Search bills and resolutions36- **`get-recent-bills`** β Get recently introduced legislation37- **`get-congress-committees`** β List Congressional committees3839### π Federal Register40- **`search-federal-register`** β Search regulations and executive orders41- **`get-recent-regulations`** β Get recently published documents4243### βοΈ CourtListener44- **`search-court-opinions`** β Search court opinions (federal and state)45- **`get-recent-court-opinions`** β Get recent court decisions4647### π Multi-Source48- **`search-all-legal`** β Comprehensive search across all sources4950## Installation5152### Cursor (One-Click)5354Click the install link above or use:5556```57cursor://anysphere.cursor-deeplink/mcp/install?name=legal-mcp&config=eyJsZWdhbC1tY3AiOnsiY29tbWFuZCI6Im5weCIsImFyZ3MiOlsiLXkiLCJ1cy1sZWdhbC1tY3AiXX1958```5960### Manual Installation6162**Requirements:** Node.js 18+ and npm6364```bash65# Clone and build66git clone https://github.com/JamesANZ/legal-mcp.git67cd legal-mcp68npm install69npm run build7071# Run server72npm start73```7475### Claude Desktop7677Add to `claude_desktop_config.json`:7879**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`80**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`8182```json83{84 "mcpServers": {85 "us-legal-mcp": {86 "command": "node",87 "args": ["/absolute/path/to/legal-mcp/dist/index.js"],88 "env": {89 "CONGRESS_API_KEY": "",90 "COURT_LISTENER_API_KEY": ""91 }92 }93 }94}95```9697Restart Claude Desktop after configuration.9899## Usage Examples100101### Search Congress Bills102Find bills related to a specific topic:103104```json105{106 "tool": "search-congress-bills",107 "arguments": {108 "query": "immigration",109 "congress": 118,110 "limit": 10111 }112}113```114115### Search Federal Regulations116Find regulations on a topic:117118```json119{120 "tool": "search-federal-register",121 "arguments": {122 "query": "environmental protection",123 "limit": 5124 }125}126```127128### Comprehensive Legal Search129Search across all sources simultaneously:130131```json132{133 "tool": "search-all-legal",134 "arguments": {135 "query": "healthcare",136 "limit": 20137 }138}139```140141### Search Court Opinions142Find court decisions:143144```json145{146 "tool": "search-court-opinions",147 "arguments": {148 "query": "immigration asylum",149 "court": "scotus",150 "limit": 10151 }152}153```154155## Data Sources156157| Source | Description | API | Auth Required |158|--------|-------------|-----|---------------|159| **Congress.gov** | Bills, resolutions, committees | https://api.congress.gov/v3 | Optional |160| **Federal Register** | Regulations, executive orders | https://www.federalregister.gov/api/v1 | No |161| **CourtListener** | Court opinions, decisions | https://www.courtlistener.com/api/ | Optional |162163## API Keys (Optional)164165### Congress.gov API Key1661. Visit [https://api.congress.gov/](https://api.congress.gov/)1672. Sign up for a free account1683. Get your API key1694. Set `CONGRESS_API_KEY` environment variable170171### CourtListener API Key1721. Visit [https://www.courtlistener.com/api/](https://www.courtlistener.com/api/)1732. Create a free account1743. Get your API key from your profile1754. Set `COURT_LISTENER_API_KEY` environment variable176177## Use Cases178179- **Legal Researchers** β Quick access to bills, regulations, and court opinions180- **Policy Analysts** β Track legislation and regulatory changes181- **Lawyers** β Reference tool for case law and regulations182- **Developers** β Build apps with authoritative legal data183184## Technical Details185186**Built with:** Node.js, TypeScript, MCP SDK187**Dependencies:** `@modelcontextprotocol/sdk`, `superagent`, `zod`188**Platforms:** macOS, Windows, Linux189190## Contributing191192β **If this project helps you, please star it on GitHub!** β193194Contributions welcome! Please open an issue or submit a pull request.195196## License197198MIT License β see LICENSE file for details.199200## Support201202If you find this project useful, consider supporting it:203204**β‘ Lightning Network**205```206lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqa207```208209**βΏ Bitcoin**: [bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp](https://mempool.space/address/bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp)210211**Ξ Ethereum/EVM**: [0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f](https://etherscan.io/address/0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f)212
Full transparency β inspect the skill content before installing.