
alhwyn/canlii-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
canlii mcp 에 사람들 에 법 에 canada
개요
CanLII (Canadian Legal Information Institute) API에 액세스 할 수있는 Model Context Protocol (MCP) 서버. 이 서버는 AI 조수가 법원 결정, 법규, 법적 인용을 포함한 캐나다 법률 정보를 검색하고 검색하고 검색 할 수 있습니다. - CanLII API 키 (CanLII API에서 포함) - Node.js 및 npm - Cloudflare Workers 계정 ( 배포용) .env 파일을 만들거나 Cloudflare Workers 환경을 구성하십시오. Cloudflare Workers 배포의 경우 환경 변수를 사용하여 설정하십시오. http://localhost:8787]에서 로컬 서버 시작 사용 가능한 법원 및 tribunals 데이터베이스 목록을 검색합니다. - 언어 (필수): "en" 또는 "fr" - 선택적인 날짜 필터: publishBefore, publishAfter, changingBefore, changingAfter, changesBefore, changesAfter, decisionDateBefore, decisionDateAfter 유효한 법률 데이터베이스를 가져옵니다 (statutes, 규칙, 등).
개요(AI 번역)
CanLII (Canadian Legal Information Institute) API에 액세스 할 수있는 Model Context Protocol (MCP) 서버. 이 서버는 AI 조수가 법원 결정, 법규, 법적 인용을 포함한 캐나다 법률 정보를 검색하고 검색하고 검색 할 수 있습니다.
필수품
- CanLII API 키 (CanLII API에서 포함)
- Node.js 및 npm
- Cloudflare Workers 계정 ( 배포용)
설치
##1. 외계인 및 종속성 설치
##2. 환경 변수 구성
.env] 파일을 만들거나 Cloudflare Workers 환경을 구성:
Cloudflare Workers 배포의 경우 환경 변수를 사용하여 설정하십시오.
##3. 현지 개발
http://localhost:8787에서 로컬 서버로 시작합니다.
##4. Cloudflare 노동자에게 배포
사용 가능한 도구
##1. get courts and tribunals의
사용 가능한 법원 및 tribunals 데이터베이스 목록을 검색합니다.
** 모수: **
language(필수): “en” 또는 “fr”- 옵션 날짜 필터 :
publishedBefore,publishedAfter,modifiedBefore,modifiedAfter],changedBefore],changedAfter],decisionDateBefore,decisionDateAfter]
##2. get legislation databases를 가져옵니다
유효한 법률 데이터베이스를 가져옵니다 (statutes, 규칙, 등).
이 페이지는 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 identifierlegislationId(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 identifieroffset(required): Starting record numberresultCount(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 identifiercaseId(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
설치
npx mcp-remote http://localhost:8787/sse설정
{
"mcpServers": {
"canlii": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8787/sse"]
}
}
}