mcp-sinim
Enables querying and retrieving municipal data from Chile's SINIM system, including 480 variables across 9 areas for 345 municipalities from 2001-2025.
README
mcp-sinim
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.