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-AAAAtipomateria + 引用

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

本地

/tmp 中导出 Word .docx(python-docx)/ PDF .pdf(reportlab/weasyprint)

buscar_semantico

混合 FTS + MiniLM 嵌入 + 同义词

acoso ≈ maltrato

buscar_dictamenes

CGR Domino + BCN + FTS

含 URL 的裁定

buscar_jurisprudencia

BCN + CGR + PJUD 公开

判例 + 链接

buscar_doctrina

BCN Articulo 30k + 回退

文章

historial_norma

BCN hasVersion/modifiesTo

生效状态与关系

buscar_scielo / buscar_dt / buscar_diario_oficial

SciELO、DT、Diario Oficial

法学理论与行业法规

buscar_todo

真正的并行 ThreadPoolExecutor(4)

一次调用获取多来源结果

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)

  • SciELODTDiario 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