AC

alhwyn/canlii-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

28 stars 9 forks 品質 77 トレンド 4MIT

canlii mcp のために 法律 に canada

概要

CanLII(Canadian Legal Information Institute) APIへのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバー。 このサーバーは、AIアシスタントが裁判所の決定、法律、および法的引用を含むカナダの法的情報を検索し、取得することができます。 - CanLII API キー (CanLII API から取得) - Node.js と npm - Cloudflare Workers アカウント (デプロイ用) .env ファイルを作成するか、Cloudflare Workers 環境を以下のように設定します。 Cloudflare Workers のデプロイでは、環境変数を以下のように設定します。 [http://localhost:8787 でサーバーをローカルで起動します。 利用可能な裁判所と部族データベースのリストを取得します。 - 言語(必須): "en" または "fr" - オプションの日付フィルタ:publishBefore、publishAfter、修正Before、変更後の変更前、変更後の、決定後 利用可能な法律データベース(法令等)を取得します.

概要(AI 翻訳)

CanLII(Canadian Legal Information Institute) APIへのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバー。 このサーバーは、AIアシスタントが裁判所の決定、法律、および法的引用を含むカナダの法的情報を検索し、取得することができます。

前提条件

  • CanLII API キー(CanLII API から取得)
  • Node.jsとnpm
  • Cloudflareワーカーアカウント(デプロイ用)

セットアップ

##1. 依存関係のクローンとインストール

##2. 環境変数の設定

[.env]ファイルを作成するか、Cloudflareワーカー環境を以下のように設定します。

Cloudflare Workers のデプロイでは、環境変数を以下のように設定します。

##3. ローカル開発

[http://localhost:8787 でサーバーをローカルで起動します。

##4. Cloudflareワーカーへの展開

利用可能なツール

##1。 get courts and tribunals

利用可能な裁判所と部族データベースのリストを取得します。

パラメーター:

  • [language (必須): “en” または “fr” publishedBefore, publishedAfter, modifiedBefore], [modifiedAfter], [changedBefore], [changedAfter], [[decisionDateBefore], [[decisionDateAfter]]

##2。 get legislation databases

利用可能な法律データベース(法令等)を取得します.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

CanLII MCP Server

A Model Context Protocol (MCP) server that provides access to the CanLII (Canadian Legal Information Institute) API. This server allows AI assistants to search and retrieve Canadian legal information including court decisions, legislation, and legal citations.

Prerequisites

  • A CanLII API key (obtain from CanLII API)
  • Node.js and npm
  • Cloudflare Workers account (for deployment)

Setup

1. Clone and Install Dependencies

git clone 
cd canlii-mcp
npm install

2. Configure Environment Variables

Create a .env file or configure your Cloudflare Workers environment with:

CANLII_API=your_canlii_api_key_here

For Cloudflare Workers deployment, set the environment variable using:

wrangler secret put CANLII_API

3. Local Development

npm run dev

This will start the server locally at http://localhost:8787

4. Deploy to Cloudflare Workers

npm run deploy

Available Tools

1. get_courts_and_tribunals

Retrieves a list of available courts and tribunals databases.

Parameters:

  • language (required): “en” or “fr”
  • Optional date filters: publishedBefore, publishedAfter, modifiedBefore, modifiedAfter, changedBefore, changedAfter, decisionDateBefore, decisionDateAfter

2. get_legislation_databases

Gets available legislation databases (statutes, regulations, etc.).

Parameters:

  • language (required): “en” or “fr”
  • Optional date filters (same as above)

3. browse_legislation

Browse legislation within a specific database.

Parameters:

  • language (required): “en” or “fr”
  • databaseId (required): Database code (e.g., “cas” for Canada Statutes, “car” for Canada Regulations)
  • Optional date filters

4. get_legislation_regulation_metadata

Get detailed metadata for a specific piece of legislation.

Parameters:

  • language (required): “en” or “fr”
  • databaseId (required): Database identifier
  • legislationId (required): Specific legislation ID

5. get_case_law_decisions

Retrieve case law decisions from a specific database.

Parameters:

  • language (required): “en” or “fr”
  • databaseId (required): Database identifier
  • offset (required): Starting record number
  • resultCount (required): Number of results (max 10,000)
  • Optional date filters

6. get_case_metadata

Get detailed metadata for a specific court case.

Parameters:

  • language (required): “en” or “fr”
  • databaseId (required): Database identifier
  • caseId (required): Case identifier
  • Optional date filters

7. get_case_citator

Get citation information for cases (what cases cite this case, what this case cites, etc.).

Parameters:

  • language (required): “en” or “fr”
  • databaseId (required): Database identifier
GitHub で README 全文を見る

インストール

npx mcp-remote http://localhost:8787/sse
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "canlii": { "command": "npx", "args": ["mcp-remote", "http://localhost:8787/sse"] } } }