chilean-legal-mcp
chilean-legal-mcp
Сервер MCP для исследования чилийского законодательства — 15 инструментов, проверяемые официальные источники, без регистрации и кредитов. Лучше, чем Trifolia: локальный, безлимитный, с полнотекстовым поиском по телу (FTS), гибридной семантикой и экспортом Word/PDF.
Что делает (15 инструментов)
Инструмент | Источник | Возвращает |
| BCN SPARQL 748k + локальный FTS + тело | Законы с фильтрами |
| BCN | Цитата текста и JSON |
|
| Полный текст 14k |
| локально | Word |
| Гибридный FTS + эмбеддинги MiniLM + синонимы |
|
| CGR Domino + BCN + FTS | Заключения с URL |
| BCN + CGR + публичный PJUD | Судебная практика + ссылки |
| BCN 30k статей + запасной вариант | Статьи |
| BCN | Действие и связи |
| SciELO, DT, Diario Oficial | Доктрина и отраслевое регулирование |
| Реальный параллелизм | Мультиисточник за 1 вызов |
| — | 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 :8000Claude 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 OficioPJUD
pjud.cl/portal-unificado-sentencias(Playwright проверен, без api.pjud.cl)SciELO, DT, Diario Oficial — публичные поисковики
Лицензия
MIT
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 Connectors
Taiwan legal research MCP: 判決書、全國法規、釋字/憲判與立法歷程查詢,12 個工具,回應均附官方出處 URL。
LawOracle — 20 legal AI tools: case law search, contracts, EU regulations, citation graph.
Brazilian legal stack in one MCP: lawsuits, court publications, case law, tenders, certificates.
Resolve, search and verify legal citations against the official sources, with provenance.
Related MCP Servers
- AlicenseCqualityCmaintenanceEnables searching, comparing, and analyzing Korean laws and public institution regulations through natural language, integrating 110 MCP tools covering statutes, precedents, and internal rules.1002015MIT
- AlicenseAqualityDmaintenanceEnables searching and retrieving Taiwan judicial judgments, including full-text search, document details, PDF download, and legal term lookup via MCP tools.4MIT
- AlicenseAqualityCmaintenanceMCP server that connects AI to the Chilean legislation system (Ley Chile) for retrieving legal norms, citations, and intertemporal analysis.282MIT
- AlicenseBqualityFmaintenanceConnects AI assistants to Chilean legal sources, enabling citation of official legal texts, search of doctrine, jurisprudence, and rulings.18MIT
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/zkak0/k-LegalChile'
If you have feedback or need assistance with the MCP directory API, please join our Discord server