lawcorpus MCP Server
Browse and read a global legal corpus: jurisdictions, authorities, documents and full texts.
lawcorpus scores 66 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 16 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 92 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cloudcorprecords-lawcorpus": { "command": "npx", "args": [ "-y", "@reneturcios/lawcorpus@0.1.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools16Tool docs quality grade B
All capabilitiesevidence_pulltoolThe full citation chain for one document in a single call: metadata with all dates and identifiers, the permanent legal link, a signed URL to the original source file where available, and the full document body. Requires
Full text for documents matching the same filter family as listdocuments. Requires iso.
One specific version of one document. Requires the numeric documentid and version.
get_markdowntoolMarkdown renderings for documents matching the same filter family. Requires iso.
get_source_urltoolA time-limited signed URL to a document's original source file (PDF etc.), as issued upstream. Requires the numeric documentid.
horizon_scantoolRecent legal documents for a jurisdiction. Requires iso; optional since freshness window (default yesterday), topic, datefield, status, authority filters, includerepealed and maxperjurisdiction.
Authority types for a jurisdiction. Requires iso; optional portalname and authoritytype filters and pagination.
list_categoriestoolLegal categories, optionally narrowed by subdomainid or categoryname, with pagination. No required arguments.
list_documentstoolDocuments in a jurisdiction with structured filters and pagination. Requires iso; optional filters include portal, title, sectiontitle, url, status, repealed, date fields, issuingauthority, typeofauth
list_domainstoolLegal domains, optionally filtered by name (domain), with limit / offset pagination. No required arguments.
Issuing authorities for a jurisdiction. Requires iso; optional portalname and issuingauthority filters and pagination.
Every jurisdiction (country or state) in the corpus, with name, iso code and type. Call this first: the other tools key off these iso codes. No arguments.
About
lawcorpus
Read a published global legal corpus without reimplementing someone else's crawl. lawcorpus is a small forwarding client for the hosted Lawstronaut MCP service: the tool list is served from your own machine using the captured definitions, and each call is sent upstream, with the service's answer returned exactly as it arrived.
All sixteen of the service's captured tools are exposed, with no omissions. Start from the jurisdiction list to learn which iso codes are valid, walk the domain, category and law-type taxonomies, find the legal portals and issuing authorities behind a jurisdiction, list documents with structured filters, and read full document texts, markdown renderings, specific versions, and one-call citation chains. A recent-changes scan covers what moved in a jurisdiction over a chosen freshness window. Every tool is a read over published legal data; nothing is submitted anywhere.
The tools
list_jurisdictions— Every jurisdiction (country or state) in the corpus, with name,isocode and type. Call this first: the other tools key off theseisocodes. No arguments.list_domains— Legal domains, optionally filtered by name (domain), withlimit/offsetpagination. No required arguments.list_subdomains— Subdomains of one domain. Requiresdomain_id; optionalsubdomainname filter and pagination.list_categories— Legal categories, optionally narrowed bysubdomain_idorcategory_name, with pagination. No required arguments.list_subcategories— Subcategories of one category. Requirescategory_id; optionalsubcategory_namefilter and pagination.list_law_types— Law types under one subcategory. Requiressubcategory_id; optionallaw_typefilter and pagination.list_portals— Legal portals for a jurisdiction. Requiresiso; optionalname,tagandlangfilters.list_authority_types— Authority types for a jurisdiction. Requiresiso; optionalportal_nameandauthority_typefilters and pagination.list_issuing_authorities— Issuing authorities for a jurisdiction. Requiresiso; optionalportal_nameandissuing_authorityfilters and pagination.list_documents— Documents in a jurisdiction with structured filters and pagination. Requiresiso; optional filters includeportal,title,section_title,url,status,repealed, date fields,issuing_authority,type_of_authority, source identifiers,tagandlang.get_document_text— Full text for documents matching the same filter family aslist_documents. Requiresiso.get_markdown— Markdown renderings for documents matching the same filter family. Requiresiso.get_source_url— A time-limited signed URL to a document's original source file (PDF etc.), as issued upstream. Requires the numericdocument_id.get_document_with_version— One specific version of one document. Requires the numericdocument_idandversion.horizon_scan— Recent legal documents for a jurisdiction. Requiresiso; optionalsincefreshness window (defaultyesterday),topic,date_field,status, authority filters,include_repealedandmax_per_jurisdiction.evidence_pull— The full citation chain for one document in a single call: metadata with all dates and identifiers, the permanent legal link, a signed URL to the original source file where available, and the full document body. Requiresisoand the numericdocument_id;include_text,include_source_urlandtext_format(markdownorplain) are optional.
Install and run
As an MCP server via npm:
npx -y @reneturcios/lawcorpus mcp
MCP client configuration:
{
"mcpServers": {
"lawcorpus": {
"command": "npx",
"args": ["-y", "@reneturcios/lawcorpus", "mcp"]
}
}
}
As a container:
docker run -i ghcr.io/cloudcorprecords/lawcorpus
docker run --rm ghcr.io/cloudcorprecords/lawcorpus list_jurisdictions '{}'
CLI
A single binary covers both the command line and the MCP server. Every tool is a subcommand whose one argument is a JSON string of that tool's inputs:
lawcorpus list_jurisdictions '{}'
lawcorpus list_documents '{"iso":"US","limit":5}'
lawcorpus get_document_text '{"iso":"NL","document_id":"123"}'
lawcorpus horizon_scan '{"iso":"IE","since":"7d"}'
lawcorpus evidence_pull '{"iso":"US","document_id":123}'
lawcorpus --version
Exit codes: 0 for a successful forwarded call, 1 when the result that comes back is an error, and 2 for usage mistakes like an unknown subcommand or a JSON argument that does not parse.
Configuration
LAWSTRONAUT_MCP_URL— Replaces the upstream endpoint. Defaults to the pinned hosted endpoint,https://mcp.lawstronaut.com. (This override variable is a reconstruction introduced by this rebuild.)
The Lawstronaut registry record lists no headers for its remote, so lawcorpus never attaches an authentication header — every call goes upstream keyless.
When the upstream cannot answer — it returns a JSON-RPC error, answers with a non-2xx status, sends a body that cannot be read, or the request itself fails — the caller receives an error result whose text begins with lawcorpus error:.
How forwarding works
The first call of a process opens a session against the upstream: an initialize request (protocol version 2025-03-26), a notifications/initialized notification, and then the tools/call. If the service issues an Mcp-Session-Id header during initialize, lawcorpus repeats it on subsequent requests and keeps reusing that one session until the process ends. Replies are understood in both plain JSON and server-sent-events framing. Successful results are passed through untouched, isError flag and any extra fields included.
Development
npm install
npm run build # tsc -> dist/ (dist/cli.js is the bin)
npm test # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev # run the CLI from source
The suite compares the served tool list against the captured surface tool for tool, walks the session handshake and its reuse, proves no Authorization header is sent under any environment, and confirms that arguments travel upstream unchanged and results return unchanged.
License
MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.
Frequently asked questions
What is lawcorpus MCP Server?
Browse and read a global legal corpus: jurisdictions, authorities, documents and full texts.
How do I install lawcorpus MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. lawcorpus MCP Server runs locally from the npm package @reneturcios/lawcorpus with the command npx -y @reneturcios/lawcorpus@0.1.0.
Is lawcorpus MCP Server free and open source?
Yes. lawcorpus MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does lawcorpus MCP Server support remote (HTTP) connections?
No remote endpoint is listed for lawcorpus MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does lawcorpus MCP Server provide?
lawcorpus MCP Server provides 16 tools, including evidence_pull, get_document_text, get_document_with_version, and get_markdown. See the full tool list for descriptions and parameters.
How is lawcorpus MCP Server's trust score calculated?
lawcorpus MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.