JurisCassation MCP Server
JurisCassation API
GraphQL + REST-Wrapper für juriscassation.cspj.ma — das Entscheidungsportal des marokkanischen Kassationshofs.
Funktionen
Live-Suche — Echtzeit-Weiterleitung an den arabischen Such-Endpunkt
Lokale Suche — SQLite FTS5 Volltextsuche über gecrawlte Entscheidungen
GraphQL API — typsichere Abfragen und Mutationen
PDF-Proxy — Zwischenspeicherung und Bereitstellung von Entscheidungs-PDFs über verschlüsselte IDs
Hintergrund-Scraper — Indizierung aller Entscheidungen in eine lokale SQLite-Datenbank
Related MCP server: Entscheidsuche MCP Server
Schnellstart
# 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-Endpunkte
Endpunkt | Beschreibung |
| GraphQL-Playground (interaktiv) |
| GraphQL API |
| Entscheidungs-PDF herunterladen (proxied + gecacht) |
| Statistiken des lokalen Index |
GraphQL-Schema
Abfragen
# 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 }
}
}Mutationen
# 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)
}Kammern
ID | Arabisch | Französisch | Englisch |
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-Scraper
# 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 100Architekturhinweise
Der arabische Endpunkt (
/Decisions/RechercheDecisionsRes) gibt verschlüsseltedata-id-Attribute zurück, die für den PDF-Download benötigt werdenDer französische Endpunkt (
/Decisions/RechercheDecisionsResFr) gibt numerischeidArretCassation-IDs zurück, jedoch keine verschlüsselten IDsPDFs werden über
/Decisions/GetArret?encryptedId=...heruntergeladen — keine Authentifizierung erforderlichEin leerer
Sujetbei der arabischen Suche liefert 0 Ergebnisse; wir verwenden ا (Alef) als Platzhalter für alle ErgebnisseDas SSL-Zertifikat auf der Upstream-Seite ist fehlerhaft;
verify=Falseist erforderlich
Umgebungsvariablen
Variable | Standard | Beschreibung |
|
| Pfad zur SQLite-Datenbank |
|
| Verzeichnis für den PDF-Cache |
|
| Maximale Anzahl gleichzeitiger Scrape-Anfragen |
|
| Verzögerung zwischen den Scrape-Seiten (Sekunden) |
MCP-Server
Ein MCP-Server (Model Context Protocol) stellt alle API-Funktionen als KI-Agenten-Tools über SSE auf Port 5098 bereit.
MCP-Endpunkt: http://localhost:5098/sse
Tools
Tool | Beschreibung |
| Live-Suche auf juriscassation.cspj.ma |
| FTS5-Suche über den lokalen SQLite-Index |
| Prüfen/Herunterladen eines Entscheidungs-PDFs per verschlüsselter ID |
| Auflistung aller 7 Kammern mit Index-Anzahlen |
| Indizierung von Entscheidungen einer Kammer |
| Statistiken des lokalen Index |
Ressourcen
URI | Beschreibung |
| Referenzliste der Kammern (AR/FR/EN) |
| Aktuelle Index-Statistiken |
MCP-Umgebungsvariablen
Variable | Standard | Beschreibung |
|
| Basis-URL der GraphQL API |
|
| SQLite-Pfad (für direkte Suche) |
|
| Port des MCP-Servers |
|
| Bind-Host des MCP-Servers |
|
| Transporttyp ( |
Test mit 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/sseBereitstellung
Die App ist containerisiert und läuft intern auf Port 8000, der auf den Host-Port 5091 gemappt ist.
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