Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
inei_get_departmentsA

List all 25 departments (regions) of Peru with their geography IDs and ubigeo codes.

Returns id_geografia (used in other tools), ubigeo (6-digit code), ccdd (2-digit dept code), and department name.

Use this first to get the id_geografia or ccdd needed by other tools.

inei_get_provincesA

List all provinces in a Peruvian department.

Provide ccdd (2-digit department code) — e.g. '15' for Lima, '01' for Amazonas. Get ccdd from inei_get_departments.

Returns province list with id_geografia, ubigeo, nombre, ccdd, ccpp.

inei_get_districtsC

Returns all 25 Peruvian departments (province/district data not available via current API).

Note: The INEI Estadist API currently only exposes department-level geography. Use id_geografia from the results with inei_get_geography_profile for census data.

inei_search_indicatorsA

Search INEI thematic statistical indicators by keyword.

The INEI Estadist database contains indicators from the National Census 2017 and other official surveys. Search by keyword to find indicators on population, education, housing, health, employment, poverty, and more.

Returns indicator ID (id_indicador), name, and hierarchical path (ruta). Use id_indicador with inei_get_indicator_data to retrieve actual values.

Example searches: 'poblacion', 'educacion', 'vivienda', 'salud', 'empleo', 'pobreza', 'analfabetismo', 'electricidad', 'agua', 'desague'

inei_get_indicator_dataA

Get census data for a geography, referencing a specific indicator ID.

Requires both id_indicador (from inei_search_indicators) and id_geografia (from inei_get_departments). Returns the full census profile for that geography including population totals, housing, education, and economic indicators.

Note: due to API changes, returns all available census data for the geography rather than a single filtered indicator. Scan seccion1/seccion2 for your indicator.

Common indicator IDs (Census 2017):

  • 516654: Población Total

  • 262215: Población Censada

  • 262218: Población Censada Urbana

  • 262221: Población Censada Rural

inei_browse_topicsA

Browse the INEI thematic indicator tree — all categories and sub-categories.

Returns the hierarchical topic tree with ~1977 entries from the Census 2017 database. Nodes with tipo=1 are categories; tipo=2 are leaf indicators with an id_indicador.

Use id_indicador (only on tipo=2 nodes) with inei_get_indicator_data (requires id_geografia).

Top-level categories include DEMOGRAFICO, SOCIAL, ECONOMICO, VIVIENDA, HOGARES, EDUCACION, SALUD, EMPLEO.

inei_get_geography_profileA

Get the Census 2017 population profile for a specific Peruvian geography.

Returns key census indicators for a department, province or district: total population, urban/rural breakdown, gender split, working-age population, electoral population, population density, and more.

Provide id_geografia — a 7-digit ID from inei_get_departments or inei_get_provinces.

Common department IDs:

  • 2010000: Amazonas - 2020000: Ancash - 2030000: Apurimac

  • 2040000: Arequipa - 2050000: Ayacucho - 2060000: Cajamarca

  • 2070000: Callao - 2080000: Cusco - 2150000: Lima

  • 2130000: La Libertad - 2140000: Lambayeque - 2200000: Piura

inei_get_census_dashboardA

Get national Census 2017 summary dashboard — demographics or social indicators.

demografico: Population totals, age structure, gender breakdown, urban/rural split, population density, age pyramid data.

social: Education (literacy, school attendance), housing (water, electricity, sanitation), health insurance coverage, household composition.

Returns key national figures, charts data, and breakdowns by region. For specific regional data, use inei_get_geography_profile instead.

inei_get_data_sourcesA

List the official data sources available in the INEI Estadist platform.

Returns source IDs, names, and descriptions. Sources include:

  • Censos Nacionales 2017 (Census)

  • MINSA (Health Ministry)

  • RENIEC (Civil Registry)

  • MEF (Economy Ministry)

  • SEAS (Education indicators)

Prompts

Interactive templates invoked by user choice

NameDescription
demographic_analysisStructured workflow to analyze population demographics for a Peruvian department or region
regional_comparisonCompare a statistical indicator across multiple Peruvian regions
census_deep_diveComprehensive Census 2017 analysis combining demographics, social indicators, and housing

Resources

Contextual data attached and managed by the client

NameDescription
INEI API GuideComplete reference for the INEI Estadist API — endpoints, IDs, and data model
Peru Department CodesQuick reference table of all 25 Peruvian departments with ubigeo codes and IDs
INEI Thematic CategoriesTop-level thematic categories in the INEI indicator database with example indicator IDs

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/JOSETRA44/INEI-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server