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
| Name | Type | Required | Description |
|---|---|---|---|
search | string | no | Words from the indicator name, French or English, e.g. “indice general”, “inflation”, “nuitees”, “euro”. All words must match. |
topic | string | no | Optional topic filter (substring), e.g. “IPC”, “Tourisme”, “COMMERCE EXTERIEUR”, “FINANCES PUBLIQUES”. Listed by ma_bulletins. |
limit | number | no | Max 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
| Field | Type | Description |
|---|---|---|
found | boolean | |
reason | string | |
message | string | |
source | string | |
data_as_of | string | |
latest_bulletin | string | |
reuse_terms | string | |
query | object | |
total_indicators | number | |
matched | number | |
count | number | |
topics | array | |
indicators | array | |
hint | string |
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.