mohtamimad/datagovma-mcp
Open-source MCP server for Morocco’s data.gov.ma (CKAN), exposing typed tools for dataset, resource, organization, and group discovery.
Platform-specific configuration:
{
"mcpServers": {
"datagovma-mcp": {
"command": "npx",
"args": [
"-y",
"datagovma-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
<p align="center"> </p>
MCP server for the Moroccan Open Data portal (data.gov.ma).
datagovma-mcp exposes curated MCP tools backed by CKAN Action API endpoints so AI clients can discover datasets, resources, organizations, and groups in a consistent typed shape.
success checks, JSON checks, timeout handling).| MCP tool | CKAN action | Purpose | | --- | --- | --- | | get_portal_status | status_show | Check portal identity and CKAN version. | | search_datasets | package_search | Full-text search with paging and optional facets. | | get_dataset | package_show | Fetch one dataset by slug or UUID. | | list_datasets | package_list | List dataset names with pagination. | | get_resource | resource_show | Fetch one resource and download metadata. | | search_resources | resource_search | Search resources using strict field:value query format. | | list_organizations | organization_list | List organization names with pagination. | | get_organization | organization_show | Fetch organization details and optional datasets. | | list_groups | group_list | List group names with pagination. | | get_group | group_show | Fetch group details and optional datasets. | | get_dataset_facets | package_search (rows=0) | Aggregate facet buckets (tags, groups, organization). |
>=3.11uv sync --frozen --group dev
cp .env.example .env
set -a && source .env && set +a
uv run datagovma-mcp
`Loading reviews...