Skip to main content
Glama
zkak0
by zkak0

chilean-legal-mcp

칠레 법률 조사 MCP 서버 — 15개 도구, 검증 가능한 공식 출처, 등록이나 크레딧 불필요. Trifolia보다 우수: 로컬, 무제한, 본문 FTS, 하이브리드 의미 검색, Word/PDF 내보내기.

기능 (15개 도구)

도구

출처

반환 내용

buscar_normas

BCN SPARQL 748k + 로컬 FTS + 본문

필터 fecha_desde/hasta DD-MM-AAAA, tipo, materia로 법률 검색 + 인용

citar_norma / citar_json

BCN

텍스트 및 JSON 인용 {numero, fecha DD-MM-AAAA, titulo, url}

obtener_texto_norma

leychile.cl/Consulta/obtxml?opt=7 공식 캐시 XML

전체 텍스트 14k

exportar_norma

로컬

Word .docx (python-docx) / PDF .pdf (reportlab/weasyprint)를 /tmp에 저장

buscar_semantico

하이브리드 FTS + MiniLM 임베딩 + 동의어

acoso ≈ maltrato

buscar_dictamenes

CGR Domino + BCN + FTS

URL 포함 결정문

buscar_jurisprudencia

BCN + CGR + 공개 PJUD

판례 + 링크

buscar_doctrina

BCN 논문 30k + 폴백

논문

historial_norma

BCN hasVersion/modifiesTo

유효성 및 관계

buscar_scielo / buscar_dt / buscar_diario_oficial

SciELO, DT, Diario Oficial

논문 및 분야별 규정

buscar_todo

실제 병렬 처리 ThreadPoolExecutor(4)

1회 호출로 다중 소스

ayuda_acceso_abogado

공식 링크 6개

모든 응답에는 공식 출처 인용 및 링크가 포함됩니다. 칠레 날짜는 입력 및 출력 모두 DD-MM-AAAA 형식입니다.

Related MCP server: MCP Taiwan Judgment Search

설치

git clone <repo>
cd chilean-legal-mcp
pip install -e .                    # base: httpx, mcp, python-docx, reportlab
pip install -e ".[semantic]"        # opcional: sentence-transformers para embeddings reales
pip install -e ".[pdf]"             # opcional: weasyprint (requiere libgobject)
python -m chilean_legal_mcp.ingest          # 545 normas iniciales
python -m chilean_legal_mcp.ingest --bulk   # 360k completo (~2h, 150MB)

사용법 — 모든 MCP 클라이언트 (stdio)

python -m chilean_legal_mcp.server          # stdio (default)
python -m chilean_legal_mcp.server --http   # HTTP streamable :8000

Claude Code: claude mcp add chilean-legal -- python -m chilean_legal_mcp.server Claude Desktop / OpenCode / Cursor / VS Code / Antigravity: mcpServers: {"chilean-legal": {"command":"python","args":["-m","chilean_legal_mcp.server"]}}

구조

src/chilean_legal_mcp/
  sparql_client.py  # BCN SPARQL + filtros fecha/tipo
  db.py             # SQLite FTS5 (normas, textos, dictamenes) + check_same_thread=False
  texto.py          # LeyChile obtxml XML
  contraloria.py    # CGR Domino POST
  fuentes_externas.py # SciELO, DT, Diario Oficial
  exportar.py       # docx/pdf
  ingest.py         # incremental + bulk OFFSET
  server.py         # FastMCP 15 tools, paralelo real
data/
  normas.db (545)
  jpl/README.md     # reservado Ley 18.287

출처 (100% 공개, 등록 불필요)

  • BCN datos.bcn.cl/sparql (Virtuoso)

  • LeyChile leychile.cl/Consulta/obtxml?opt=7&idNorma=...

  • CGR contraloria.cl/appinf/... + BCN Oficio

  • PJUD pjud.cl/portal-unificado-sentencias (Playwright 검증됨, api.pjud.cl 미사용)

  • SciELO, DT, Diario Oficial — 공개 검색 엔진

라이선스

MIT

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

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/zkak0/k-LegalChile'

If you have feedback or need assistance with the MCP directory API, please join our Discord server