Lawstronaut — Claude Code MCP server: laws and court cases
Wires an AI agent into a corpus of laws and court cases over MCP. A paid subscription plus a token or OAuth pair is required.
claude mcp add --transport http lawstronaut-mcp https://mcp.lawstronaut.comWhat Lawstronaut does
Lawstronaut runs an MCP server at https://mcp.lawstronaut.com, giving agents access to legal documents from 150+ jurisdictions. It speaks MCP over Streamable HTTP, so calls go out as POST /. The tool listing is public — read it at https://mcp.lawstronaut.com/.well-known/mcp/server-card.json without authenticating.
Two auth paths exist: a bearer token, or OAuth 2.0 with client_id and client_secret. Both come from the developer portal once a subscription is bought. Tool calls fail without an active subscription, and the bearer token belongs in the LAWSTRONAUT_MCP_BEARER_TOKEN environment variable.
The tools are lookup-oriented. list_jurisdictions returns countries and states, while list_domains, list_subdomains and list_categories break the corpus down by domain, subdomain and category, with name filters and pagination. Call list_jurisdictions first: the other tools expect ISO codes from it. Clients that handle MCP OAuth discovery need only the server URL; everyone else passes the bearer token in a header.
What it helps with
- pull current statutes for one jurisdiction
- fetch ISO codes for countries and states
- map a legal question onto domains and subdomains
- filter legal categories by name
- bring court cases into an agent answer
Example prompts for the agent
- List the jurisdictions available in Lawstronaut
- Find legal domains with tax in the name
- Show the subdomains and categories under that domain
How to install Lawstronaut
Platform CLI: remote server
claude mcp add --transport http lawstronaut-mcp https://mcp.lawstronaut.comPlatform CLI: remote server
codex mcp add lawstronaut --url https://mcp.lawstronaut.comConfig file
{
"mcpServers": {
"lawstronaut": {
"url": "https://mcp.lawstronaut.com"
}
}
}Config file
{
"servers": {
"lawstronaut": {
"type": "http",
"url": "https://mcp.lawstronaut.com"
}
}
}Platform CLI: remote server
gemini mcp add -t http lawstronaut https://mcp.lawstronaut.comStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Lawstronaut
How do I install Lawstronaut in Claude Code?
Run claude mcp add --transport http lawstronaut-mcp https://mcp.lawstronaut.com, then finish the OAuth sign-in in your browser the first time the agent calls a tool.
What does Lawstronaut do?
It gives an AI agent MCP access to laws and court cases across 150+ jurisdictions, exposing jurisdictions, domains, subdomains and categories as tools.
Do I need a subscription to use the server?
Yes — tool calls require a paid subscription. Create the bearer token or the client_id and client_secret pair in the developer portal after purchasing.