BharatVitals logo

BharatVitals

India's health and demographic data for AI assistants, over MCP

BharatVitals is an MCP server that gives Claude and other AI assistants access to India's official health and demographic statistics: health-service indicators, causes of death, life tables, registered births and deaths, and Census data.

Quick setup

Add this URL to your AI assistant:

https://bharatvitals.in/mcp

The server needs no API key. Ask your assistant to add it, or use the configuration for your client below. The .mcp.json file in this repository adds the server to Claude Code sessions in the repository.

Claude

In Claude.ai or Claude Desktop:

  1. Open Settings from the profile menu.
  2. Select Connectors in the settings sidebar.
  3. Choose Add custom connector.
  4. Name the connector BharatVitals and paste the MCP server URL.
  5. Approve the tools you want Claude to use.

Then ask a question, for example "What was Kerala's infant mortality rate in 2020?"

Other assistants

Claude Code

Run:

claude mcp add --transport http bharatvitals https://bharatvitals.in/mcp

Or add it to ~/.claude.json by hand:

"mcpServers": {
  "bharatvitals": {
    "type": "http",
    "url": "https://bharatvitals.in/mcp"
  }
}

Restart Claude Code. For other settings, see the Claude Code MCP documentation.

Codex

Run:

codex mcp add bharatvitals --url https://bharatvitals.in/mcp

Or add it to ~/.codex/config.toml by hand:

[mcp_servers.bharatvitals]
url = "https://bharatvitals.in/mcp"

Restart Codex. For other settings, see the Codex MCP documentation.

Hermes

Run:

hermes mcp add bharatvitals --url "https://bharatvitals.in/mcp"

Or add it to ~/.hermes/config.yaml by hand:

mcp_servers:
  bharatvitals:
    url: "https://bharatvitals.in/mcp"

Restart Hermes. For other settings, see the Hermes MCP documentation.

Goose

Run:

goose configure   # Add Extension → Remote Extension (Streamable HTTP)

Or add it to ~/.config/goose/config.yaml by hand:

extensions:
  bharatvitals:
    enabled: true
    type: streamable_http
    name: bharatvitals
    uri: https://bharatvitals.in/mcp
    timeout: 300

Restart Goose. For other settings, see the Goose MCP documentation.

OpenClaw

Run:

openclaw mcp add bharatvitals --url https://bharatvitals.in/mcp --transport streamable-http

Or add it to ~/.openclaw/openclaw.json by hand:

{
  "mcp": {
    "servers": {
      "bharatvitals": {
        "url": "https://bharatvitals.in/mcp",
        "transport": "streamable-http"
      }
    }
  }
}

Restart OpenClaw. For other settings, see the OpenClaw MCP documentation.

Cursor

Add it to .cursor/mcp.json:

{
  "mcpServers": {
    "bharatvitals": { "url": "https://bharatvitals.in/mcp" }
  }
}

Restart Cursor. For other settings, see the Cursor MCP documentation.

VS Code

Add it to .vscode/mcp.json:

{
  "servers": {
    "bharatvitals": { "type": "http", "url": "https://bharatvitals.in/mcp" }
  }
}

Restart VS Code. For other settings, see the VS Code MCP documentation.

Gemini CLI

Run:

gemini mcp add --transport http bharatvitals https://bharatvitals.in/mcp

Or add it to ~/.gemini/settings.json by hand:

{
  "mcpServers": {
    "bharatvitals": { "httpUrl": "https://bharatvitals.in/mcp" }
  }
}

Restart Gemini CLI. For other settings, see the Gemini CLI MCP documentation.

Other LLMs

llms.txt gives the server URL, the usage notes and the parameters of each tool as plain text.

Data

Source What it covers Coverage
HMIS, Health Management Information System 840+ state-level and 845 district-level health-service indicators: immunisation, maternal care, disease cases 36 states, 700+ districts, monthly from April 2008
MCCD, Medical Certification of Cause of Death ICD-10 coded causes of medically certified deaths by age and sex 36 states, 2008-2024
SRS, Sample Registration System Life tables, causes of death, birth, death, infant and maternal mortality rates, fertility, rates by NSSO region 36 states. Bulletins 1997-2024, life tables and causes of death 2007-2024
CRS, Civil Registration System Registered births, deaths, infant deaths and still births, registration completeness States and 700+ districts, 2009-2023
Census of India Population, literacy, workers, households by state, district and subdistrict, population projections 1901-2011. Projections to 2036 (states) and 2031 (districts)

The data comes from published government tables. These open R packages clean the tables: hmisindia, srsindia, censusindia, mccdindia, crsindia.

Example questions

63 tools:

Census of India

census_datasetOne whole census table by name from census_list_datasets. Counts are persons.
census_languagesCensus 2011 speakers per language, one row per language per area.
census_list_datasetsWhole census tables (e.g. 1931 castes, 2011 tribes) for census_dataset.
census_list_geographiesCensus year x geography combinations available, with the dataset behind each.
census_list_statesStates/UTs with census code, two-letter abbreviation, region and harmonised name.
census_list_variablesCensus variables with label, years, geographies and category.
census_populationPopulation projections: males, females and total population.
census_queryCensus of India counts by year and geography (1901-2011).
census_sc_stCensus 2011 Scheduled Caste and Scheduled Tribe populations by district.
census_search_variablesFind census variables whose name or label matches a keyword or regex.

CRS

crs_adjusted_eventsBirths/deaths adjusted for registration completeness.
crs_available_yearsAvailable years per CRS table.
crs_birthsState-level registered births by sex and residence (Table 1, 2009-2023).
crs_deathsState-level registered deaths by sex and residence (Table 2, 2009-2023).
crs_deaths_by_ageDeaths by age group and sex (Table 6).
crs_district_birthsDistrict-level registered births (Table 7, 700+ districts, 2009-2023).
crs_district_deathsDistrict-level registered deaths (Table 8, 700+ districts, 2009-2023).
crs_district_infant_deathsDistrict-level registered infant deaths (Table 9, 700+ districts, 2009-2023).
crs_district_still_birthsDistrict-level registered still births (Table 10, 700+ districts, 2010-2023).
crs_infant_deathsState-level registered infant deaths by sex and residence (Table 3, 2009-2023).
crs_list_statesCRS states/UTs with two-letter codes (state_name, state_abbr). No India row.
crs_list_tablesList the 10 CRS tables: births, deaths, infant deaths, still births,
crs_population_districtDistrict-level population projections.
crs_population_stateState-level MOHFW population projections (2011-2036).
crs_registrationBirth and death registration completeness percentages (Table 5).
crs_still_birthsState-level registered still births by sex and residence (Table 4, 2009-2023).
crs_vital_ratesVital rates from CRS counts and MOHFW population projections.

HMIS

hmis_decompose_seriesSTL decomposition of one monthly HMIS series: date, observed, trend, seasonal, remainder.
hmis_detect_periodicityTest one monthly HMIS series for seasonality; one row with dominant_period.
hmis_list_districtsState-district pairs with LGD codes in district-level HMIS data.
hmis_list_indicatorsSearch HMIS indicators; returns canonical_name and month coverage.
hmis_list_statesHMIS states/UTs with two-letter codes (state_name, state_abbr).
hmis_queryMonthly HMIS values, one row per indicator x state x month x sector x category.

MCCD

mccd_categorizeLike mccd_query, plus category (Communicable/NCD/External/Ill-defined/Other) and subcategory.
mccd_list_causesSearch MCCD causes of death; returns Cause_Of_Death and ICD10_Code.
mccd_list_chaptersICD-10 chapters with ICD range, category and subcategory.
mccd_list_statesMCCD states/UTs with two-letter codes (state_name, state_abbr).
mccd_list_tablesMCCD tables: what each holds, has_state, has_age_group, first_year and last_year.
mccd_queryMedically certified deaths by table, ICD-10 coded; years per table in mccd_list_tables.

SRS

srs_arriaga_decomposeArriaga (1984) decomposition of e0 change by age group.
srs_available_periodsTemporal coverage for all SRS data types (life tables, CoD, bulletin).
srs_epi_transitionShare of all deaths by broad cause group per period (person_pct, male_pct, female_pct).
srs_life_expectancy_trendNational life expectancy at birth, 1970-75 to present (SRS Statement 1).
srs_list_bulletin_indicatorsBulletin indicator codes for srs_query_bulletin: cbr, cdr, ngr, imr.
srs_list_bulletin_yearsYears with SRS Bulletin vital statistics (1997-2024, 2002 missing).
srs_list_cod_periodsCause-of-death periods (2-3 year windows).
srs_list_cod_tablesCause-of-death table slugs with metadata.
srs_list_life_table_periodsLife table periods (5-year rolling windows).
srs_list_mmr_periodsThree-year periods with maternal mortality ratio data, e.g. "2018-2020".
srs_list_nsso_districtsDistricts in each NSSO natural division, to link districts to srs_query_nsso_regions.
srs_list_nsso_divisionsNSSO natural division names, the sub-state regions SRS reports.
srs_list_nsso_yearsYears with SRS vital rates by NSSO natural division (sub-state regions).
srs_list_stat_report_indicatorsIndicator codes for srs_query_stat_report, e.g. tfr, nmr, u5mr, sbr.
srs_list_stat_report_yearsYears with SRS Statistical Report data (2011 onward).
srs_list_statesSRS states/UTs with two-letter codes (state_name, state_abbr).
srs_query_bulletinSRS Bulletin vital statistics: CBR, CDR, NGR, IMR (1997-2024).
srs_query_codSRS cause-of-death tables by slug. See srs_list_cod_tables() for slugs.
srs_query_life_tableSRS abridged life tables (nqx, lx, nlx, ex by age, sex).
srs_query_mmrMaternal mortality ratio: maternal deaths per 100,000 live births, with CIs.
srs_query_nsso_regionsCBR, CDR, IMR and U5MR by NSSO natural division (below state level).
srs_query_stat_reportSRS Statistical Report indicators (2011-2024).
srs_summary_indicatorsMortality indicators from life tables.

Diagnostics

bharatvitals_healthProbe /health of every data API that is configured or has been called; one entry per source.

llms.txt lists every tool with its parameters.

Issues

To report an incorrect value or to ask for a new dataset, open an issue on GitHub.