JurisCassation MCP Server
JurisCassation API
모로코 파기원 판결 포털인 juriscassation.cspj.ma를 위한 GraphQL + REST 래퍼입니다.
주요 기능
실시간 검색 — 아랍어 검색 엔드포인트로의 실시간 패스스루
로컬 검색 — 스크랩된 판결문에 대한 SQLite FTS5 전문 검색
GraphQL API — 타입 안전 쿼리 및 뮤테이션
PDF 프록시 — 암호화된 ID를 통한 판결문 PDF 캐싱 및 제공
백그라운드 스크래퍼 — 모든 판결문을 로컬 SQLite로 색인
Related MCP server: Entscheidsuche MCP Server
빠른 시작
# Docker (GraphQL API on port 5091)
docker compose up -d
# Or direct
pip install -r requirements.txt
python app.py serve --port 8000
# MCP Server (port 5098, SSE transport)
# Via systemd:
sudo systemctl start juriscassation-mcp
# Or direct:
JURIS_API_BASE=http://localhost:5091 python mcp_server.pyAPI 엔드포인트
엔드포인트 | 설명 |
| GraphQL 플레이그라운드 (대화형) |
| GraphQL API |
| 판결문 PDF 다운로드 (프록시 + 캐시됨) |
| 로컬 색인 통계 |
GraphQL 스키마
쿼리
# Live search against the Moroccan portal (real-time)
query {
searchLive(chamberId: 1, sujet: "طلاق", lang: "ar", page: 1) {
total
page
perPage
items {
encryptedId
dossierNumber
decisionNumber
decisionDate
keywordsAr
pdfUrl
}
}
}
# Search the local SQLite index
query {
searchLocal(query: "طلاق", chamberId: 1, page: 1, perPage: 20) {
total
page
perPage
items {
id
encryptedId
dossierNumber
decisionNumber
decisionDate
keywordsAr
pdfUrl
}
}
}
# List chambers with decision counts
query {
chambers {
id
nameAr
nameFr
nameEn
decisionCount
}
}
# Scraper/indexer status
query {
scraperStatus {
totalDecisions
lastScrape
chambers { id nameFr decisionCount }
}
}뮤테이션
# Scrape decisions from a chamber (Arabic endpoint with alef wildcard)
mutation {
scrapeChamber(chamberId: 1, maxPages: 5)
}
# Scrape all pages
mutation {
scrapeChamber(chamberId: 1, maxPages: 0)
}재판부
ID | 아랍어 | 프랑스어 | 영어 |
1 | الغرفة المدنية | Chambre Civile | Civil |
2 | غرفة الأحوال الشخصية و الميراث | Statut Personnel & Successions | Personal Status & Inheritance |
3 | الغرفة التجارية | Chambre Commerciale | Commercial |
4 | الغرفة الإدارية | Chambre Administrative | Administrative |
5 | الغرفة الاجتماعية | Chambre Sociale | Social |
6 | الغرفة الجنائية | Chambre Pénale | Criminal |
7 | الغرفة العقارية | Chambre Immobilière | Real Estate |
CLI 스크래퍼
# Scrape chamber 1 (all pages)
python app.py scrape --chamber 1
# Scrape all chambers, max 50 pages each
python app.py scrape --chamber 0 --max-pages 50
# Scrape from page 100 onwards
python app.py scrape --chamber 6 --since-page 100아키텍처 참고 사항
아랍어 엔드포인트(
/Decisions/RechercheDecisionsRes)는 PDF 다운로드에 필요한 암호화된data-id속성을 반환합니다.프랑스어 엔드포인트(
/Decisions/RechercheDecisionsResFr)는 숫자형idArretCassationID를 반환하지만 암호화된 ID는 반환하지 않습니다.PDF는
/Decisions/GetArret?encryptedId=...를 통해 다운로드되며, 인증이 필요하지 않습니다.아랍어 검색에서
Sujet가 비어 있으면 결과가 0개 반환되므로, 와일드카드 역할을 하는 ا (alef)를 사용합니다.업스트림 사이트의 SSL 인증서가 손상되어 있어
verify=False설정이 필요합니다.
환경 변수
변수 | 기본값 | 설명 |
|
| SQLite 데이터베이스 경로 |
|
| PDF 캐시 디렉토리 |
|
| 최대 동시 스크랩 요청 수 |
|
| 스크랩 페이지 간 지연 시간 (초) |
MCP 서버
MCP(Model Context Protocol) 서버는 모든 API 기능을 포트 5098에서 SSE를 통해 AI 에이전트 도구로 노출합니다.
MCP 엔드포인트: http://localhost:5098/sse
도구
도구 | 설명 |
| juriscassation.cspj.ma에 대한 실시간 검색 |
| 로컬 SQLite 색인에 대한 FTS5 검색 |
| 암호화된 ID로 판결문 PDF 확인/다운로드 |
| 색인 개수가 포함된 7개 재판부 목록 |
| 재판부 판결문 색인 |
| 로컬 색인 통계 |
리소스
URI | 설명 |
| 재판부 참조 목록 (AR/FR/EN) |
| 현재 색인 통계 |
MCP 환경 변수
변수 | 기본값 | 설명 |
|
| GraphQL API 기본 URL |
|
| SQLite 경로 (직접 검색용) |
|
| MCP 서버 포트 |
|
| MCP 서버 바인딩 호스트 |
|
| 전송 유형 ( |
mcporter로 테스트
# List tools
npx mcporter list --http-url http://localhost:5098/sse --allow-http --schema
# Search
npx mcporter call search_decisions sujet=طلاق chamber_id=1 --allow-http --http-url http://localhost:5098/sse배포
이 앱은 컨테이너화되어 내부적으로 포트 8000에서 실행되며, 호스트 포트 5091에 매핑됩니다.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides access to official French legal databases (Légifrance and JudiLibre) to search and retrieve French legislation, legal codes, case law, and judicial decisions through authenticated APIs.28MIT
- AlicenseNot gradedqualityNot gradedmaintenanceProvides access to Swiss court decisions through the entscheidsuche.ch API, enabling search, retrieval, and analysis of legal documents across different cantons and courts using natural language queries.
- AlicenseNot gradedqualityBmaintenanceEnables searching and downloading Spanish court rulings from the CENDOJ database, with automatic captcha resolution via Claude's vision, returning PDFs, full text, ECLI, and metadata.4MIT
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with up-to-date legal documents from official sources, enabling accurate legal information retrieval and analysis.16
Related MCP Connectors
Real-time Amazon, WIPO & PACER data for AI agents — 19 tools via the MCP protocol.
The best web search for your AI Agent
Web search, page extraction and structured commerce, social and business data for AI agents
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/slapash/juriscassation-api'
If you have feedback or need assistance with the MCP directory API, please join our Discord server