Back to Home
openascot icon

ckan-mcp

Verified Safe

by openascot

Overview

Exposes CKAN open-data portals to AI assistants and other MCP-aware clients for data discovery, analysis, retrieval, and local downloads.

Installation

Run Command
docker compose up --build

Environment Variables

  • CKAN_BASE_URL
  • CKAN_SITE_URL
  • CKAN_DATASET_URL_TEMPLATE
  • CKAN_API_KEY
  • CKAN_MCP_MODE
  • CKAN_MCP_HOST
  • CKAN_MCP_PORT
  • CKAN_MCP_HTTP_PATH
  • CKAN_MCP_HTTP_ALLOW_ORIGINS
  • CKAN_MCP_HTTP_JSON_RESPONSE
  • CKAN_MCP_HTTP_LOG_LEVEL
  • CKAN_MCP_LOCAL_DATASTORE

Security Notes

The server uses `curl` and the `file` command via subprocesses for downloading and MIME type detection, which introduces a dependency on external binaries. While arguments are explicitly passed to mitigate command injection risks, it's a known vector. Archive extraction includes directory traversal protection (`_ensure_within_directory`). API keys are handled via environment variables or explicit tool arguments, not hardcoded. Overall, reasonable security practices are in place for the current scope.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-30

Tags

CKANOpen DataMCPData AnalysisAI Tools