Sinim
БесплатноНе проверенEnables querying and retrieving municipal data from Chile's SINIM system, including 480 variables across 9 areas for 345 municipalities from 2001-2025.
Описание
Enables querying and retrieving municipal data from Chile's SINIM system, including 480 variables across 9 areas for 345 municipalities from 2001-2025.
README
Pull Chilean municipal data from SINIM without memorizing variable codes or wrestling with raw exports. Search the catalog, build tidy municipal panels, and use the same package from Python or any MCP-compatible client.
What You Can Do
- Search roughly 480 SINIM variables by natural language instead of memorizing
id_datocodes. - Pull one or many municipal indicators as tidy
pandaspanels in one call. - Discover available years and municipality codes directly from the live portal.
- Use the same package in notebooks, scripts, or MCP clients.
- Work with an offline catalog snapshot plus optional metadata caching.
Installation
pip install mcp-sinim
Python Example
from mcp_sinim import SINIMClient
client = SINIMClient(corrmon=True)
# 1) Find the right variable code
hits = client.search("patentes municipales")
print(hits[["code", "name"]].head(3).to_string(index=False))
# 2) Pull a tidy municipal panel
df = client.get(
["4173", "1311"],
years=[2024],
municipios=["13101", "13114", "13119"], # Santiago, Las Condes, Providencia
)
print(df.head().to_string(index=False))
# 3) Explore metadata when needed
print(client.years()[-5:])
print(client.search_municipios("providencia"))
Main things you will use:
search(...)to find variable codesget(...)to pull municipal datamunicipios(...)andsearch_municipios(...)to work with legal municipality codesyears()to see what is currently available
MCP Server
Use mcp-sinim when you want an MCP client to search SINIM variables, inspect
their metadata, and fetch municipal data without writing a custom wrapper.
Run the server after installation:
mcp-sinim
Typical MCP configuration:
{
"mcpServers": {
"sinim": {
"command": "mcp-sinim"
}
}
}
Optional environment variable:
MCP_SINIM_CACHE_DIRfor the metadata disk cache
MCP tools
| Tool | Description |
|---|---|
search_variables |
Search the SINIM variable catalog by keyword. |
get_variable_info |
Return metadata for one SINIM variable code. |
get_data |
Retrieve tidy municipal records for one or many variables. |
list_areas |
List the 9 catalog subject areas. |
list_municipios |
List municipalities, optionally filtered by region. |
list_years |
List currently available SINIM years. |
Important Notes
cod_municipiomatches the official SUBDERE CUT codes for the 345 municipalities present in SINIM.corrmon=Truerequests SINIM's real-value series, expressed in pesos of the most recent published year.- This is an independent open-source client for the public SINIM portal. It is not affiliated with SUBDERE or the Gobierno de Chile.
Development
git clone https://github.com/MaykolMedrano/mcp_sinim
cd mcp_sinim
python -m venv .venv
.venv/Scripts/activate
pip install -e ".[dev]"
python -m ruff check .
python -m ruff format --check .
python -m pytest
License
MIT. See LICENSE.
Установить Sinim в Claude Desktop, Claude Code, Cursor
unyly install mcp-sinimСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add mcp-sinim -- uvx --from git+https://github.com/MaykolMedrano/mcp_sinim mcp-sinimFAQ
Sinim MCP бесплатный?
Да, Sinim MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Sinim?
Нет, Sinim работает без API-ключей и переменных окружения.
Sinim — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Sinim в Claude Desktop, Claude Code или Cursor?
Открой Sinim на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Sinim with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
