> ## Documentation Index
> Fetch the complete documentation index at: https://docs.platform.statista.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> MCP Server Introduction

<Info>
  If you're interested in MCP access, fill out [our questionnaire](https://platform.statista.ai/join).
</Info>

The Statista MCP (Model Context Protocol) Server provides AI assistants with direct access to Statista's comprehensive statistical database through a **Streamable HTTP** interface. This server enables real-time data discovery and retrieval from our extensive collection of charts, reports, and forecasts.

## Key Features

* **Streamable HTTP Transport**: Uses efficient streamable HTTP communication (not Server-Sent Events)
* **CORS Support**: Cross-origin requests are fully supported for web applications
* **Stateless**: For maximum compatibility
* **Real-time Data Access**: Direct connection to Statista's live data catalogue

## MCP URL

The MCP server is reachable by this URL: [https://api.statista.ai/v1/mcp](https://api.statista.ai/v1/mcp).

## Authentication

The server requires authentication using a request header:

```
x-api-key: YOUR_API_KEY
```

or with a bearer token:

```
Authorization: Bearer YOUR_API_KEY
```

Your API key authenticates each session and provides access to the MCP Server.

## Available Tools

<AccordionGroup>
  <Accordion title="Search Statistics" icon="magnifying-glass">
    **Tool ID**: `search-statistics`

    Searches Statista's comprehensive data catalogue to discover relevant statistical content across various industries and topics. Returns matching statistics with metadata to help you identify the most relevant data sources.
  </Accordion>

  <Accordion title="Get Chart Data by ID" icon="chart-simple">
    **Tool ID**: `get-chart-data-by-id`

    Retrieves detailed statistical information for specific charts or datasets using their unique identifier. Provides complete numerical values, methodological information, source details, and contextual metadata.
  </Accordion>

  <Accordion title="Search Consumer Insights" icon="users">
    **Tool ID**: `search-consumer-insights`

    Searches Statista's Consumer Insights data catalogue to discover insights on consumer attitudes and behavior worldwide. Returns matching questions and answers with metadata across various industries and topics.
  </Accordion>

  <Accordion title="Fetch Consumer Insights" icon="user-check">
    **Tool ID**: `fetch-consumer-insights`

    Retrieves detailed survey information, cross-tabulated for the provided question and answer identifiers. The data can be filtered in addition by year and country. Provides complete numerical values, methodological information, survey details, and contextual metadata.
  </Accordion>

  <Accordion title="Search Market Insights" icon="chart-line">
    **Tool ID**: `search-market-insights`

    Searches Statista's Market Insights data catalogue to discover market forecasts and expert KPIs for 1000+ markets in 190+ countries & territories. Returns matching Market Insights with metadata to help you identify the most relevant data sources.
  </Accordion>

  <Accordion title="Fetch Market Insights" icon="database">
    **Tool ID**: `fetch-market-insights`

    Retrieves detailed Market Insights datasets using their unique identifier. Provides complete numerical values, methodological information, source details, and contextual metadata.
  </Accordion>
</AccordionGroup>

## Getting Started

1. Obtain your Statista API key and MCP server URL
2. Connect your AI assistant to the MCP server
3. Authenticate using the API key
4. Start exploring Statista's data through the available tools

The server automatically handles session management and provides comprehensive error handling for reliable data access.
