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
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).
An MCP (Model Context Protocol) server that brings authoritative US legal information into AI coding environments like Cursor and Claude Desktop.
Ready to explore US legal data? Install in seconds:
Install in Cursor (Recommended):
Or install manually:
npm install -g us-legal-mcp
# Or from source:
git clone https://github.com/JamesANZ/legal-mcp.git
cd legal-mcp && npm install && npm run build
search-congress-bills β Search bills and resolutionsget-recent-bills β Get recently introduced legislationget-congress-committees β List Congressional committeessearch-federal-register β Search regulations and executive ordersget-recent-regulations β Get recently published documentssearch-court-opinions β Search court opinions (federal and state)get-recent-court-opinions β Get recent court decisionssearch-all-legal β Comprehensive search across all sourcesClick the install link above or use:
cursor://anysphere.cursor-deeplink/mcp/install?name=legal-mcp&config=eyJsZWdhbC1tY3AiOnsiY29tbWFuZCI6Im5weCIsImFyZ3MiOlsiLXkiLCJ1cy1sZWdhbC1tY3AiXX19
Requirements: Node.js 18+ and npm
# Clone and build
git clone https://github.com/JamesANZ/legal-mcp.git
cd legal-mcp
npm install
npm run build
# Run server
npm start
Add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"us-legal-mcp": {
"command": "node",
"args": ["/absolute/path/to/legal-mcp/dist/index.js"],
"env": {
"CONGRESS_API_KEY": "",
"COURT_LISTENER_API_KEY": ""
}
}
}
}
Restart Claude Desktop after configuration.
Find bills related to a specific topic:
{
"tool": "search-congress-bills",
"arguments": {
"query": "immigration",
"congress": 118,
"limit": 10
}
}
Find regulations on a topic:
{
"tool": "search-federal-register",
"arguments": {
"query": "environmental protection",
"limit": 5
}
}
Search across all sources simultaneously:
{
"tool": "search-all-legal",
"arguments": {
"query": "healthcare",
"limit": 20
}
}
Find court decisions:
{
"tool": "search-court-opinions",
"arguments": {
"query": "immigration asylum",
"court": "scotus",
"limit": 10
}
}
| Source | Description | API | Auth Required |
|---|---|---|---|
| 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 |
CONGRESS_API_KEY environment variableCOURT_LISTENER_API_KEY environment variableBuilt with: Node.js, TypeScript, MCP SDK
Dependencies: @modelcontextprotocol/sdk, superagent, zod
Platforms: macOS, Windows, Linux
β If this project helps you, please star it on GitHub! β
Contributions welcome! Please open an issue or submit a pull request.
MIT License β see LICENSE file for details.
If you find this project useful, consider supporting it:
β‘ Lightning Network
lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqa
βΏ Bitcoin: bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp
Ξ Ethereum/EVM: 0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f
Install via CLI
npx mdskills install JamesANZ/us-legal-mcpUS Legal MCP Server is a free, open-source AI agent skill. 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
Install US Legal MCP Server with a single command:
npx mdskills install JamesANZ/us-legal-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
US Legal MCP Server works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.