MoSPI MCP server

Endpoint: https://mcp.mospi.gov.in/ · Authentication: No auth

Fetches official Indian government statistics from MoSPI eSankhyiki datasets such as GDP, CPI, industrial production and labour force surveys: list datasets and indicators, read filter values and query data. No authentication.

How do I authenticate?

Add the endpoint directly in your client. The catalog records no authentication requirement; no OAuth sign-in or API key is configured in this setup. The live server may change.

Authentication and connection guide

Connection specification

Remote endpoint
https://mcp.mospi.gov.in/
Browser access
Not yet measured
Declared MCP transport
Streamable HTTP
Live-validated MCP transport
Streamable HTTP — Observed by the latest catalog validation
Declared authentication
No authentication
Detected authentication
No authentication detected or retained from publisher evidence
Protocol lifecycle
Stateful MCP · 2025-11-25
Category
Reference

Product documentation · Source repository · Official listing documentation · Claude connector directory listing

More Reference MCP servers · Browse all MCP servers · Test this endpoint in the MCP Playground

Authorization setup

No app registration needed

This catalog entry does not require authorization or provider app registration.

Connect it

Live-validated endpoint: https://mcp.mospi.gov.in/ · Streamable HTTP. No authentication is required by the catalog listing.

Agent prompt for Claude Code or Codex
Add the MoSPI MCP server to my MCP client configuration and verify that it works.

What it is: Fetches official Indian government statistics from MoSPI eSankhyiki datasets such as GDP, CPI, industrial production and labour force surveys: list datasets and indicators, read filter values and query data. No authentication.
Server URL: https://mcp.mospi.gov.in/
Transport: Streamable HTTP (remote MCP server, no local install).
Authentication: none. The server accepts connections without credentials.
Tools (4, as last observed by mcptest): get_data, get_indicators, get_metadata, list_datasets.
Reference: https://mcptest.io/servers/mospi/

Steps:
1. Work out which MCP client I use (Claude Code, Codex, Cursor, VS Code or another) and add the server under the name "mospi" in that client's MCP configuration, user scope unless I ask otherwise.
   Claude Code: claude mcp add --transport http --scope user 'mospi' 'https://mcp.mospi.gov.in/'
   Codex: codex mcp add 'mospi' --url 'https://mcp.mospi.gov.in/'
   Other clients: use the setup for that client on the reference page.
2. Never write a credential value into a file that could be committed; reference an environment variable or the client's secret store, and ask me for any value you need.
3. Verify: connect to the server and call tools/list. Confirm the tools above are listed, and report any sign-in step I still have to complete.
MCP client

Claude Code setup

Run in a terminal. This user-scoped entry is available across projects.

claude mcp add --transport http --scope user 'mospi' 'https://mcp.mospi.gov.in/'

Codex CLI setup

Run in a terminal; Codex stores the entry in ~/.codex/config.toml.

codex mcp add 'mospi' --url 'https://mcp.mospi.gov.in/'

Cursor setup

Add to .cursor/mcp.json for this project, or ~/.cursor/mcp.json for all projects.

{
  "mcpServers": {
    "mospi": {
      "url": "https://mcp.mospi.gov.in/"
    }
  }
}

VS Code setup

Add to .vscode/mcp.json, or run “MCP: Open User Configuration” for a private user-level entry.

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

Claude setup

Add the endpoint above in Claude:

  • Customize > Connectors > Add custom connector
  • Team/Enterprise: Organization settings > Connectors > Add > Custom > Web

Claude Desktop setup

Add the endpoint above in Claude Desktop:

  • Remote: Customize > Connectors (same as claude.ai)
  • Local: Settings > Developer > Edit Config, or Settings > Extensions for .mcpb files
  • ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), local servers only

ChatGPT setup

Add the endpoint above in ChatGPT:

  • ChatGPT web: Plugins > Add custom MCP server, then configure authentication and accept the risk warning

Windsurf setup

Add the endpoint above in Windsurf:

  • ~/.config/devin/mcp_config.json (%APPDATA%\devin\mcp_config.json on Windows), serverUrl or url
  • Cascade panel > ... > MCPs > Open MCP config file

Gemini CLI setup

Add the endpoint above in Gemini CLI:

  • gemini mcp add --transport http <name> <url>
  • ~/.gemini/settings.json (user) or .gemini/settings.json (project), mcpServers

MCP SDK setup

Add the endpoint above in MCP SDK:

  • Programmatic: new Client(...).connect(new StreamableHTTPClientTransport(url))

Client compatibility

ClientStatusWhy
Claude CodeSupportedClaude Code supports Streamable HTTP servers and servers without authentication.
CodexPartialCodex's documentation does not state support for servers without authentication.
CursorSupportedCursor supports Streamable HTTP servers and servers without authentication.
VS CodeSupportedVS Code supports Streamable HTTP servers and servers without authentication.
ClaudeSupportedClaude supports Streamable HTTP servers and servers without authentication.
Claude DesktopSupportedClaude Desktop supports Streamable HTTP servers and servers without authentication.
ChatGPTPartialStateful routing needs operational care: ChatGPT can preserve MCP sessions, but the deployment must route a session consistently and retain its state.
WindsurfPartialWindsurf's documentation does not state support for servers without authentication.
Gemini CLISupportedGemini CLI supports Streamable HTTP servers and servers without authentication.
MCP SDKSupportedMCP SDK supports Streamable HTTP servers and servers without authentication.

Computed from this server's validated transport, protocol and authentication against documented client support. Checks the catalog has not observed are not counted.

Similar servers

  • FlickDirect Connect: Movie MCP Server — Read-only movie MCP server for FlickDirect movie and TV facts, available country dates and ratings, site-wide news and review previews, podcasts, streaming and deals. Free access with no authentication. No authentication
  • getAbstract — Search getAbstract summaries of business books, articles and reports. OAuth 2.1
  • The Old Ways Library — Public, read-only search and cited passages from historical editions and mythology reference pages across five traditions. No account or API key required. No authentication
  • Folklore Clinical Variant Interpretation MCP — Offers 11 public tools for ACMG/AMP germline variant classification, gene profiles, disease associations and literature. An optional Folklore Bearer API key adds 18 tools for case analysis, approved source files and reports. No authentication
  • MaCalculatrice (macalc) — Calculators from macalculatriceenligne.com as MCP tools: tax, salary, real estate, maths, health and unit conversions for France and other French-speaking countries. Each result links to the related page of the site. No authentication. No authentication
  • 链小知区块链 — Eight read-only tools for Chinese-language blockchain knowledge, tool guides, recent news (seven-day search window), event timelines and daily briefs, with source links. Anonymous Streamable HTTP; no API key or authentication. No authentication

Guides for this server

Watch this server for breaking changes

Share and embed

Maintain MoSPI? Embed this badge in your README. It follows the latest catalog validation result and links to this server profile.

mcptest.io: ready

Latest validation evidence

Validation status
Online when last tested
Validation checked at
Nov 23, 2026 at 7:16 PM
Validation detail
Negotiated stateful MCP 2025-11-25 at https://mcp.mospi.gov.in/; detected transport streamable-http; authentication none

Tool inventory

What the catalog validator observed on at https://mcp.mospi.gov.in/ without credentials. The live server may have changed since; connect in the Playground for the current list.

Tools provided by MoSPI 4

Some details were sanitized for public display.

  • get_dataoutputSchema declared

    Fetches statistical data from a MoSPI dataset. This is the final step of the workflow. It requires filter values from get_metadata - filter codes are arbitrary (e.g., indicator_code=3 means "Unemployment Rate" in PLFS but something different in other datasets). All filter parameters including limit and page go inside the filters dict, not as top-level arguments. Step 4 of: list_datasets -> get_indicators -> get_metadata -> get_data

    Input dataset: string, filters: object, user_query?: any
    • dataset: stringrequired

      Dataset name (PLFS, CPI, IIP, ISP, ASI, NAS, WPI, ENERGY, AISHE, ASUSE, GENDER, NFHS, ENVSTATS, RBI, NSS77, NSS78, NSS76, NSS75E, NSS79, CPIALRL, HCES, TUS, EC, UDISE, MNRE, NSS80, NSS73, NSS74, NSS71, NSS72, NSS72T, BMW, SPPI). CPI auto-routes to Group or Item endpoint based on whether filters contain item_code. IIP uses a single endpoint; pass frequency="Annually" or frequency="Monthly" in filters.

    • filters: objectrequired

      Key-value pairs from get_metadata filter_values. PLFS requires frequency_code (1=Annual, 2=Quarterly, 3=Monthly). PLFS year: omit it for the latest year, pass year="all" for every year (trends), or a specific year ("2024" and "PLFS 2024" both work). NAS requires base_year ("2022-23" or "2011-12").

    • user_query?: anyoptional

      The user's original question, verbatim. Captured for the engagement report only; not returned. MNRE: indicator_code (1-5) is mapped to type_of_renewable_energy_code. SPPI: use sppi_code (1-10) to pick the service; financial_year (YYYY-YY) and quarter_code (1-4) are optional. Pass limit (e.g., "50") to retrieve 50 records. Change this parameter value to retrieve desired number of records.

  • get_indicatorsoutputSchema declared

    Returns the full list of available indicators for a given dataset. Datasets often have broader coverage than expected - for example, ASI covers 57 indicators (capital structure, wages, employment, GVA, fuel consumption), and GENDER covers 154 indicators across health, education, labor, and crime. For PLFS and ASUSE, indicators are grouped by frequency_code: - PLFS frequency_code=1 (Annual): all 8 indicators including wages - PLFS frequency_code=2 (Quarterly): indicators 1-4 only - PLFS frequency_code=3 (Monthly): indicators 1-3 only frequency_code selects the indicator set, not time granularit

    Input base_year?: any, classification_year?: any, dataset: string, Format?: any, frequency?: any, frequency_code?: any, level?: any, series?: any, user_query?: any
    • base_year?: anyoptional
    • classification_year?: anyoptional
    • dataset: stringrequired

      Dataset name - one of: PLFS, CPI, IIP, ISP, ASI, NAS, WPI, ENERGY, AISHE, ASUSE, GENDER, NFHS, ENVSTATS, RBI, NSS77, NSS78, NSS76, NSS75E, NSS79, CPIALRL, HCES, TUS, EC, UDISE, MNRE, NSS80, NSS73, NSS74, NSS71, NSS72, NSS72T, BMW, SPPI. For CPI, IIP, ISP, WPI: returns available base years and frequencies.

    • Format?: anyoptional
    • frequency?: anyoptional
    • frequency_code?: anyoptional
    • level?: anyoptional
    • series?: anyoptional
    • user_query?: anyoptional

      The user's original question, verbatim. Pass this on every tool call (list_datasets, get_indicators, get_metadata, get_data) so the engagement report can list questions. Not echoed back in the response.

  • get_metadataoutputSchema declared

    Returns the valid filter values (states, years, quarters, etc.) for a given dataset and indicator. Filter codes are arbitrary and dataset-specific - for example, PLFS state_code 99 means "All India", and NAS frequency_code 1 means "Annual". These values cannot be inferred or guessed from parameter names alone. The returned filter_values and api_params should be used as-is when calling get_data. Step 3 of: list_datasets -> get_indicators -> get_metadata -> get_data

    Input base_year?: any, classification_year?: any, dataset: string, Format?: any, frequency?: any, frequency_code?: any, indicator_code?: any, level?: any, module?: any, series?: any, state_code?: any, sub_indicator_code?: any, survey_code?: any, type?: any, use_of_energy_balance_code?: any, user_query?: any
    • base_year?: anyoptional

      Required for CPI ("2024"/"2012"/"2010"), IIP ("2011-12"/"2004-05"/"1993-94"), NAS ("2022-23"/"2011-12"), WPI ("2022-23"/"2011-12"/"2004-05"/"1993-94"). Not applicable for PLFS, ASI.

    • classification_year?: anyoptional

      Required for ASI ("2008"/"2004"/"1998"/"1987").

    • dataset: stringrequired

      Dataset name (same values as get_indicators).

    • Format?: anyoptional
    • frequency?: anyoptional

      Required for IIP ("Annually"/"Monthly").

    • frequency_code?: anyoptional

      Required for PLFS and ASUSE. PLFS: 1=Annual, 2=Quarterly bulletin, 3=Monthly. ASUSE: 1=Annual, 2=Quarterly.

    • indicator_code?: anyoptional

      Required for: PLFS, NAS, ENERGY, AISHE, ASUSE, GENDER, NFHS, ENVSTATS, RBI, NSS77, NSS78, NSS76, NSS75E, NSS79, CPIALRL, HCES, TUS, EC, UDISE, MNRE, NSS80, NSS73, NSS74, NSS71, NSS72, NSS72T, BMW, SPPI (service code 1-10, as sppi_code). Not applicable for: CPI, IIP, ISP, ASI, WPI. For RBI, this maps to sub_indicator_code internally.

    • level?: anyoptional

      Required for CPI ("Group"/"Item").

    • module?: anyoptional

      For NSS77 only - land_livestock (portal nss77) or aidis (portal nss77a). Required when indicator_code overlaps both modules (16-19, 24, 26, 29, 32, 34, 36). Auto-derived for codes unique to one module.

    • series?: anyoptional

      For CPI and NAS only ("Current"/"Back").

    • state_code?: anyoptional

      For NAS only - required when indicator_code is 23-34 (state-level GSDP/NSDP/GSVA family). Values 01-37, where 37 = All-India aggregate. Comma separated for multiple states. Not applicable when frequency_code=2 (Quarterly) - state-level indicators have Annual data only.

    • sub_indicator_code?: anyoptional
    • survey_code?: anyoptional

      For NSS76 (1=Disability, 2=Housing & drinking water), NSS75E (2=Education, indicators 43-55), NSS80 (1=Telecom (CMST), 2=Education (CMSE)), and NSS77 AIDIS module (always 1).

    • type?: anyoptional
    • use_of_energy_balance_code?: anyoptional

      For ENERGY only (1=Supply, 2=Consumption).

    • user_query?: anyoptional

      The user's original question, verbatim. Pass the same text on every step. Captured for the engagement report only; not returned.

  • list_datasetsoutputSchema declared

    Returns an overview of all MoSPI statistical datasets with descriptions and coverage. This is the starting point - call this first to identify the right dataset. Pass user_query on this call and on every later step. It is the user's original question, stored for the engagement report and not included in the response. The API covers 500+ indicators across employment, prices, industry, national accounts, health, education, disability, housing, environment, trade, and more. Each dataset has its own indicator codes, filter parameters, and valid values - these are not standardized and cannot be inf

    Input user_query?: any
    • user_query?: anyoptional