Skip to content
MCP server
Registry

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.

by cloudcorprecordsMITTypeScript0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "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 capabilities
  • 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. 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.

  • Markdown renderings for documents matching the same filter family. Requires iso.

  • A time-limited signed URL to a document's original source file (PDF etc.), as issued upstream. Requires the numeric documentid.

  • Recent 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.

  • Legal categories, optionally narrowed by subdomainid or categoryname, with pagination. No required arguments.

  • Documents in a jurisdiction with structured filters and pagination. Requires iso; optional filters include portal, title, sectiontitle, url, status, repealed, date fields, issuingauthority, typeofauth

  • Legal 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, iso code and type. Call this first: the other tools key off these iso codes. No arguments.
  • list_domains — Legal domains, optionally filtered by name (domain), with limit / offset pagination. No required arguments.
  • list_subdomains — Subdomains of one domain. Requires domain_id; optional subdomain name filter and pagination.
  • list_categories — Legal categories, optionally narrowed by subdomain_id or category_name, with pagination. No required arguments.
  • list_subcategories — Subcategories of one category. Requires category_id; optional subcategory_name filter and pagination.
  • list_law_types — Law types under one subcategory. Requires subcategory_id; optional law_type filter and pagination.
  • list_portals — Legal portals for a jurisdiction. Requires iso; optional name, tag and lang filters.
  • list_authority_types — Authority types for a jurisdiction. Requires iso; optional portal_name and authority_type filters and pagination.
  • list_issuing_authorities — Issuing authorities for a jurisdiction. Requires iso; optional portal_name and issuing_authority filters and pagination.
  • list_documents — Documents in a jurisdiction with structured filters and pagination. Requires iso; optional filters include portal, title, section_title, url, status, repealed, date fields, issuing_authority, type_of_authority, source identifiers, tag and lang.
  • get_document_text — Full text for documents matching the same filter family as list_documents. Requires iso.
  • get_markdown — Markdown renderings for documents matching the same filter family. Requires iso.
  • get_source_url — A time-limited signed URL to a document's original source file (PDF etc.), as issued upstream. Requires the numeric document_id.
  • get_document_with_version — One specific version of one document. Requires the numeric document_id and version.
  • horizon_scan — Recent legal documents for a jurisdiction. Requires iso; optional since freshness window (default yesterday), topic, date_field, status, authority filters, include_repealed and max_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. Requires iso and the numeric document_id; include_text, include_source_url and text_format (markdown or plain) 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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server