ma_indicators

Pack: morocco-hcp-statistics · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ma_indicators for the schema, then POST the same URL with its arguments for the data.

Search Morocco’s national economic and social indicators from the HCP quarterly bulletin (monthly and quarterly series: consumer and producer price indexes by city, industrial/mining/energy output, tourism nights, external trade, exchange rates, public finances, Casablanca stock exchange, labour force, national accounts). Accepts French or English terms (“inflation”, “indice general”, “tourisme”, “chomage”, “euro”); optional topic filter. Returns ids with latest value; call ma_indicator_series for history. With no arguments lists the topics.

Parameters

NameTypeRequiredDescription
searchstringnoWords from the indicator name, French or English, e.g. “indice general”, “inflation”, “nuitees”, “euro”. All words must match.
topicstringnoOptional topic filter (substring), e.g. “IPC”, “Tourisme”, “COMMERCE EXTERIEUR”, “FINANCES PUBLIQUES”. Listed by ma_bulletins.
limitnumbernoMax results (1-100, default 25)

Example call

Arguments

{
  "search": "indice general",
  "topic": "IPC",
  "limit": 3
}

curl

curl -X POST https://gateway.pipeworx.io/morocco-hcp-statistics/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ma_indicators","arguments":{"search":"indice general","topic":"IPC","limit":3}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('ma_indicators', {
  "search": "indice general",
  "topic": "IPC",
  "limit": 3
});

Response shape

FieldTypeDescription
foundboolean
reasonstring
messagestring
sourcestring
data_as_ofstring
latest_bulletinstring
reuse_termsstring
queryobject
total_indicatorsnumber
matchednumber
countnumber
topicsarray
indicatorsarray
hintstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "reason": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    },
    "latest_bulletin": {
      "type": "string"
    },
    "reuse_terms": {
      "type": "string"
    },
    "query": {
      "type": "object",
      "properties": {
        "search": {
          "type": "string"
        },
        "topic": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": true
    },
    "total_indicators": {
      "type": "number"
    },
    "matched": {
      "type": "number"
    },
    "count": {
      "type": "number"
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string"
          },
          "indicators": {
            "type": "number"
          }
        },
        "additionalProperties": true
      }
    },
    "indicators": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          },
          "table": {
            "type": [
              "string",
              "null"
            ]
          },
          "group": {
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": "string"
          },
          "breakdown": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "frequency": {
            "type": "string"
          },
          "latest_period": {
            "type": [
              "string",
              "null"
            ]
          },
          "latest_value": {
            "type": [
              "number",
              "null"
            ]
          },
          "points": {
            "type": "number"
          },
          "last_seen_in_bulletin": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true
      }
    },
    "hint": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the morocco-hcp-statistics pack
{
  "mcpServers": {
    "morocco-hcp-statistics": {
      "url": "https://gateway.pipeworx.io/morocco-hcp-statistics/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026