Back to Home
mjanez icon

ckan-mcp-server

Verified Safe

by mjanez

Overview

Provides an intelligent MCP agent for CKAN open data portals, enabling semantic search, SQL queries, and geospatial analysis.

Installation

Run Command
uv run fastmcp run src/server.py

Environment Variables

  • CKAN_URL
  • CKAN_API_KEY
  • LOG_LEVEL
  • CKAN_MCP_LANGUAGE

Security Notes

The server uses `ckanapi` for interaction, `os.getenv` for sensitive information like `CKAN_API_KEY`, and `pydantic` for input validation. It implements retry logic for network stability. No `eval` or direct command injection points were found within the provided source. The `query_datastore` tool directly passes SQL queries to the CKAN DataStore; while this is an intended feature of CKAN, the security of these queries relies on the underlying CKAN instance's SQL injection prevention mechanisms.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens3500
Stars0
Forks0
Last Update2025-12-07

Tags

CKANOpen DataData PortalGeospatialSQL