# How to connect MoSPI MCP to Claude

```json
{
  "title": "How to connect MoSPI MCP to Claude",
  "toolkit": "MoSPI MCP",
  "toolkit_slug": "mospi_mcp",
  "framework": "Claude Cowork",
  "framework_slug": "claude-cowork",
  "url": "https://composio.dev/toolkits/mospi_mcp/framework/claude-cowork",
  "markdown_url": "https://composio.dev/toolkits/mospi_mcp/framework/claude-cowork.md",
  "updated_at": "2026-10-04T17:43:40.153Z"
}
```

## Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.
This guide walks you through the easiest and most secure way to connect your MoSPI account to Claude via Composio Connect, enabling it to summarize latest Indian CPI inflation trends, compare recent IIP growth by sector, find unemployment statistics from MoSPI reports, and more such actions on your behalf without compromising your account security.
Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

## Also integrate MoSPI MCP with

- [ChatGPT](https://composio.dev/toolkits/mospi_mcp/framework/chatgpt)
- [Grok Bot](https://composio.dev/toolkits/mospi_mcp/framework/grok-bot)

## Connect MoSPI MCP to Claude Cowork

### Connecting MoSPI to Claude Web, Desktop, and Cowork
Two ways to add the Composio connector. Pick whichever you prefer.
### 1. Add with one click
Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.
[Add to Claude](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Composio&connectorUrl=https%3A%2F%2Fconnect.composio.dev%2Fmcp)
### Add manually
In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.
Click Add custom connector and paste in the Composio MCP server URL:

```bash
https://connect.composio.dev/mcp
```

## What is the MoSPI MCP server, and what's possible with it?

The MoSPI MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to MoSPI. It provides structured and secure access to India's official statistical datasets, so your agent can discover datasets, explore indicators, identify valid filters, and fetch statistical data on your behalf.
- Dataset discovery: Have your agent list available MoSPI datasets and review their descriptions and coverage.
- Indicator exploration: Let the agent find all available indicators within a selected statistical dataset.
- Filter identification: Direct your agent to check valid states, years, quarters, and other filters for a dataset and indicator.
- Statistical data retrieval: Instruct your agent to fetch official statistics from a chosen dataset using the relevant indicators and filters.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `MOSPI_MCP_GET_DATA` | Get data | 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 |
| `MOSPI_MCP_GET_INDICATORS` | Get indicators | 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 147 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-3 only - PLFS frequency_code=3 (Monthly): indicators 1-3 only frequency_code selects the indicator set, not time granularity. Step 2 of: list_datasets ΓåÆ get_indicators ΓåÆ get_metadata ΓåÆ get_data |
| `MOSPI_MCP_GET_METADATA` | Get metadata | 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 |
| `MOSPI_MCP_LIST_DATASETS` | List datasets | 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. 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 inferred or guessed from parameter names alone. Four-step workflow (each step depends on the previous): 1. list_datasets() ΓÇö identify the dataset 2. get_indicators(dataset) ΓÇö list available indicators 3. get_metadata(dataset, indicator_code) ΓÇö retrieve valid filter values 4. get_data(dataset, filters) ΓÇö fetch the data Returns: dict with 'datasets' (name, description, use_for for each dataset) and 'workflow' (the four-step sequence). |

## Supported Triggers

None listed.

## Troubleshooting

### 1. Why does Claude not use the Composio connector for MoSPI?

The connector can show as connected, but Claude must use it in each MoSPI conversation.
- Click + at the lower left of the chat, or type /.
- Hover Connectors.
- Turn on Composio.
- Ask Claude to connect to MoSPI again.

### 2. Why does Claude show an MCP server error before MoSPI connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for MoSPI.
- Check that the connector URL is https://connect.composio.dev/mcp.
- Connectors run from Anthropic's cloud, so your device network is usually not the problem.
- Add the connector again from Customize > Connectors, then ask Claude to connect MoSPI.
- If it fails again, send the error and the ofid_ reference id to support@composio.dev.

### 3. Why does the MoSPI authorization link not work?

The Composio connector is one server. Your MoSPI account connects separately when Claude asks for it.
- If the browser does not open, or the link expires, ask Claude to retry the MoSPI connection.
- Composio creates a fresh MoSPI authorization link.
- Open that link in your browser and finish the MoSPI sign-in.

### 4. Why do MoSPI actions fail after they worked before?

The MoSPI connection can expire or lose permission.
- Ask Claude to inspect the MoSPI connection.
- If the connection is unhealthy, disconnect it when Claude prompts you.
- Reconnect the MoSPI account and retry the action.
- If Claude shows a permission prompt, approve it before Claude changes data in MoSPI.
- If the action still fails with a permission error, check that the connected account has that permission in MoSPI itself.

### 5. How do I switch to a different MoSPI account?

Claude can manage the MoSPI connection for you.
- Ask Claude to disconnect or delete the current MoSPI account.
- Ask Claude to connect MoSPI again.
- Open the new Composio authorization link for MoSPI.
- Sign in with the other MoSPI account in the browser.
- After the account connects, ask Claude to retry the MoSPI task.

### 6. Why is my MoSPI connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your MoSPI connection works in Claude Web, Desktop, and Cowork.
- In Claude Desktop, open Customize > Connectors.
- Next to Composio, click ⋮ and click Clear cache.
- If MoSPI tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
- On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect MoSPI.

## Creating MCP Server - Stand-alone vs Composio SDK

The MoSPI MCP server connects Claude Web, Desktop, and Cowork to your MoSPI account through Composio. Once connected, Claude can use the available MoSPI tools and triggers to complete tasks on your behalf.

## Complete Code

None listed.

## How to build MoSPI MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/mospi_mcp/framework/chatgpt)
- [Grok Bot](https://composio.dev/toolkits/mospi_mcp/framework/grok-bot)

## Related Toolkits

- [Excel](https://composio.dev/toolkits/excel) - Microsoft Excel is a robust spreadsheet application for organizing, analyzing, and visualizing data. It's the go-to tool for calculations, reporting, and flexible data management.
- [21risk](https://composio.dev/toolkits/_21risk) - 21RISK is a web app built for easy checklist, audit, and compliance management. It streamlines risk processes so teams can focus on what matters.
- [Abstract](https://composio.dev/toolkits/abstract) - Abstract provides a suite of APIs for automating data validation and enrichment tasks. It helps developers streamline workflows and ensure data quality with minimal effort.
- [AccuWeather](https://composio.dev/toolkits/accu_weather) - AccuWeather is a global weather service providing current conditions, forecasts, MinuteCast precipitation, alerts, and lightning data. Use it for fast, localized forecasts and real-time weather alerts.
- [Adafruit IO](https://composio.dev/toolkits/adafruit_io) - Adafruit IO is Adafruit's cloud platform for connected device and IoT project data. It helps you store, visualize, and act on sensor feeds without running your own backend.
- [Addressfinder](https://composio.dev/toolkits/addressfinder) - Addressfinder is a data quality platform for verifying addresses, emails, and phone numbers. It helps you ensure accurate customer and contact data every time.
- [Agentql](https://composio.dev/toolkits/agentql) - Agentql is a toolkit that connects AI agents to the web using a specialized query language. It enables structured web interaction and data extraction for smarter automations.
- [Agenty](https://composio.dev/toolkits/agenty) - Agenty is a web scraping and automation platform for extracting data and automating browser tasks—no coding needed. It streamlines data collection, monitoring, and repetitive online actions.
- [Ambee](https://composio.dev/toolkits/ambee) - Ambee is an environmental data platform providing real-time, hyperlocal APIs for air quality, weather, and pollen. Get precise environmental insights to power smarter decisions in your apps and workflows.
- [Ambient weather](https://composio.dev/toolkits/ambient_weather) - Ambient Weather is a platform for personal weather stations with a robust API for accessing local, real-time, and historical weather data. Get detailed environmental insights directly from your own sensors for smarter apps and automations.
- [Anonyflow](https://composio.dev/toolkits/anonyflow) - Anonyflow is a service for encryption-based data anonymization and secure data sharing. It helps organizations meet GDPR, CCPA, and HIPAA data privacy compliance requirements.
- [ApexVerify](https://composio.dev/toolkits/apexverify) - ApexVerify is a contact-data validation service for emails and phone numbers. Use it to normalize, verify, and clean leads before they enter your systems.
- [Api ninjas](https://composio.dev/toolkits/api_ninjas) - Api ninjas offers 120+ public APIs spanning categories like weather, finance, sports, and more. Developers use it to supercharge apps with real-time data and actionable endpoints.
- [Api sports](https://composio.dev/toolkits/api_sports) - Api sports is a comprehensive sports data platform covering 2,000+ competitions with live scores and 15+ years of stats. Instantly access up-to-date sports information for analysis, apps, or chatbots.
- [Apify](https://composio.dev/toolkits/apify) - Apify is a cloud platform for building, deploying, and managing web scraping and automation tools called Actors. It lets you automate data extraction and workflow tasks at scale—no infrastructure headaches.
- [Autom](https://composio.dev/toolkits/autom) - Autom is a lightning-fast search engine results data platform for Google, Bing, and Brave. Developers use it to access fresh, low-latency SERP data on demand.
- [Beach Day API](https://composio.dev/toolkits/beach_day_api) - Beach Day API is a beach intelligence service for search, conditions, scores, rules, amenities, tides, and country coverage. Use it to power trip planning, surf reports, safety checks, and location-aware beach discovery.
- [Beaconchain](https://composio.dev/toolkits/beaconchain) - Beaconchain is a real-time analytics platform for Ethereum 2.0's Beacon Chain. It provides detailed insights into validators, blocks, and overall network performance.
- [Big data cloud](https://composio.dev/toolkits/big_data_cloud) - BigDataCloud provides APIs for geolocation, reverse geocoding, and address validation. Instantly access reliable location intelligence to enhance your applications and workflows.
- [Bigpicture io](https://composio.dev/toolkits/bigpicture_io) - BigPicture.io offers APIs for accessing detailed company and profile data. Instantly enrich your applications with up-to-date insights on 20M+ businesses.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and MoSPI MCP?

With a standalone MoSPI MCP server, the agents and LLMs can only access a fixed set of MoSPI tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from MoSPI and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Claude Cowork?

Yes, you can. Claude Cowork fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right MoSPI tools.

### Can I manage the permissions and scopes for MoSPI while using Tool Router?

Yes, absolutely. You can configure which MoSPI scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your MoSPI data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
