mcp-sinim
This server provides a standardized interface to search, explore, and retrieve Chilean municipal data from the public SINIM portal.
search_variables: Fuzzy-search ~480 SINIM variables by keyword (e.g. "patentes municipales", "ingresos propios"), with optional filtering by subject area. Matching is accent- and case-insensitive.get_variable_info: Retrieve full metadata for a specific SINIM variable by its code (e.g."4173").get_data: Fetch tidy municipal records for one or more variables, with optional filters for years, municipalities (by CUT codes), region, and monetary correction (real vs. nominal pesos).list_areas: List all SINIM catalog subject areas (e.g. finance, education, health).list_municipios: Browse ~345 municipalities, optionally filtered by official Chilean region codes.list_years: Discover which years have data published in SINIM, dynamically fetched so newly published years appear automatically.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-sinimsearch variables about education spending"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-sinim
Pull Chilean municipal data from SINIM with a searchable catalog, tidy municipal panels, and the same package from Python or any MCP-compatible client.
An open-source project by Maykol Medrano.
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.
Related MCP server: Kolada MCP Server
Installation
pip install mcp-sinimPython 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))
# 4173 = Ingresos por Patentes Municipales de Beneficio Municipal
# 1311 = Monto Patentes Municipales Pagadas
# 13101 = Santiago, 13114 = Las Condes, 13123 = Providencia
# 2) Pull a tidy panel for several years and municipalities
df = client.get(
["4173", "1311"],
years=[2022, 2023, 2024],
municipios=["13101", "13114", "13123"], # Santiago, Las Condes, Providencia
)
print(df.head(12).to_string(index=False))
# 3) Explore metadata when needed
print(client.years()[-5:])
print(client.search_municipios("providencia"))
print(client.municipios(region="13")) # official region code: MetropolitanaMain 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-sinimTypical MCP configuration:
{
"mcpServers": {
"sinim": {
"command": "mcp-sinim"
}
}
}Optional environment variable:
MCP_SINIM_CACHE_DIRfor the metadata disk cache
MCP tools
Tool | Description |
| Search the SINIM variable catalog by keyword. |
| Return metadata for one SINIM variable code. |
| Retrieve tidy municipal records for one or many variables. |
| Preview up to 100 records to check a query before exporting. |
| Write a full municipal panel to Parquet or CSV on disk. |
| List the 9 catalog subject areas. |
| List municipalities, optionally filtered by region. |
| Search municipalities by name, optionally filtered by region. |
| List currently available SINIM years. |
Important Notes
cod_municipiomatches the official SUBDERE CUT codes for the 345 municipalities present in SINIM.Pass those legal CUT codes to
municipios=. The client translates them to SINIM's internal identifiers automatically.Region filters accept official Chilean region codes (
"1"through"16"), as well as SINIM's portal identifiers for compatibility.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 pytestLicense
MIT. See LICENSE.
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
- AlicenseAqualityDmaintenanceProvides access to 5,000+ Key Performance Indicators across 264 operating areas for all Swedish municipalities and regions, enabling statistical analysis, comparisons, and trend tracking of Swedish public sector data.Last updated213312MIT
- Alicense-qualityCmaintenanceProvides access to Sweden's comprehensive municipal and regional statistics database with semantic search capabilities. Enables natural language queries against thousands of Key Performance Indicators covering various aspects of Swedish public sector data.Last updated16Apache 2.0
- Alicense-qualityCmaintenanceEnables AI assistants to search, read, and explore thousands of public datasets from Chile's open government data portal (datos.gob.cl) without requiring an API key.Last updated61MIT
- Alicense-qualityAmaintenanceExposes Brazilian education data (IDEB) by municipality for consultation via Claude. Covers 10 cycles (2005-2023) with observed IDEB, targets, math/Portuguese scores, and flow indicator.Last updated1MIT
Related MCP Connectors
Chile Government Procurement MCP — Mercado Público / ChileCompra (keyless-ish).
INEGI MCP — Mexico's national statistics office (INEGI) Indicators API.
Query 29,500+ World Bank development indicators for 200+ countries across 60+ years.
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/MaykolMedrano/mcp_sinim'
If you have feedback or need assistance with the MCP directory API, please join our Discord server