1. Conduid
  2. Developer Tools
  3. Ckan MCP Server
MCP server · Developer Tools

Ckan MCP Server

MCP server for querying CKAN open data portals (package search, DataStore SQL, organizations, groups, tags)

Unclaimed MIT ai
62Good

Scored 9 hours ago · breakdown

About Ckan MCP Server

Ckan MCP Server is an MCP server published by ondata in the Developer Tools category: mCP server for querying CKAN open data portals (package search, DataStore SQL, organizations, groups, tags). Conduid read 20 tools from its source: ckan_analyze_datasets, ckan_catalog_stats, ckan_datastore_search, ckan_datastore_search_sql, ckan_find_portals, ckan_find_relevant_datasets and 14 more. No package is published for it, so it installs from a source checkout.

The repository has 85 stars and 19 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.4.129 (6 Oct 2026): When a call fails, the message now tells the model what to try next, in the cases where it used to say nothing. It follows v0.4.128 (28 Sep 2026), and the 5 most recent releases go back to v0.4.125 (23 Sep 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions.

Install

From source
git clone https://github.com/ondata/ckan-mcp-server

Tools (20)

ckan_analyze_datasetsSearch datasets and inspect the DataStore schema of queryable resources. For each dataset found, lists all resources. For DataStore-enabled resources, fetches the full field schema (name, type, and label/notes when available) plus total record count — all in one call. Use this before ckan_datastore_search to understand what fields are available and what data to expect. Args: - server_url (string): Base URL of CKAN server - q (string): Solr search query (e.g. "incidenti", "title:ambiente") - rows (number): Max datasets to analyze (default 5, max 20) - response_format ('markdown' | 'json'): Output format Returns: For each dataset: title, ID, organization, and per DataStore resource: field schema with label/notes (when available from DataStore Dictionary) and record count. Typical workflow: ckan_analyze_datasets → ckan_datastore_search (with known field names)
ParameterTypeDescription
q *stringSolr search query (e.g. 'incidenti', 'title:ambiente')
rowsnumberMax datasets to analyze (default 5, max 20)
server_url *stringBase URL of the CKAN server (e.g., https://dati.comune.messina.it)
ckan_catalog_statsGet a statistical overview of a CKAN portal: total dataset count and breakdown by category, format, and organization. Single CKAN call (package_search with rows=0 and facets). No query needed. Args: - server_url (string): Base URL of the CKAN server - facet_limit (number): Max entries per facet section (default 20) - response_format ('markdown' | 'json'): Output format Returns: Total dataset count, categories ranked by count, file formats ranked by count, organizations ranked by count. Typical workflow: ckan_catalog_stats (understand the portal) → ckan_package_search (query specific data)
ParameterTypeDescription
facet_limitnumberMax entries per facet section (default 20)
server_url *stringBase URL of the CKAN server (e.g., https://dati.comune.messina.it)
ckan_datastore_searchQuery data from a CKAN DataStore resource. The DataStore allows SQL-like queries on tabular data. Not all resources have DataStore enabled. The response always includes a Fields section listing all available column names and types. Use limit=0 to discover column names without fetching data — do this before using filters to avoid guessing column names and getting HTTP 400 errors. Args: - server_url (string): Base URL of CKAN server - resource_id (string): ID of the DataStore resource - q (string | object): Full-text search (optional). A string searches all fields; an object such as { "column": "word" } searches only that column. Some portals refuse whole-table full-text search on large tables but accept the column form - filters (object): Key-value filters (e.g., { "anno": 2023 }) - limit (number): Max rows to return (default: 100, max: 32000) - offset (number): Pagination offset (default: 0) - fields (array): Specific fields to return (optional) - sort (string): Sort field with direction (e.g., "anno desc") - distinct (boolean): Return distinct values (default: false) - response_format ('markdown' | 'json'): Output format Returns: DataStore records matching query, always including available column names and types Examples: - { server_url: "...", resource_id: "abc-123", limit: 0 } ← discover columns first - { server_url: "...", resource_id: "abc-123", limit: 50 } - { server_url: "...", resource_id: "...", filters: { "regione": "Sicilia" } } - { server_url: "...", resource_id: "...", sort: "anno desc", limit: 100 } Typical workflow: ckan_package_search → ckan_package_show (find resource_id with datastore_active=true) → ckan_datastore_search (limit=0 to get columns) → ckan_datastore_search (with filters)
ParameterTypeDescription
distinctbooleanReturn only distinct rows
fieldsarraySpecific field names to return; omit to return all fields
filtersobjectKey-value filters for exact matches (e.g., { "regione": "Sicilia", "anno": 2023 })
limitnumberMax rows to return (default 100, max 32000); use 0 to get only column names without data
offsetnumberPagination offset
qanyFull-text search: a string searches all fields; an object { "column": "word" } searches only that column (accepted by some portals that refuse full-text search on large tables)
resource_id *stringUUID of the DataStore resource (from ckan_package_show resource.id where datastore_active is true)
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
sortstringSort expression (e.g., 'anno desc', 'nome asc')
ckan_datastore_search_sqlRun SQL queries on a CKAN DataStore resource. This endpoint is only available on CKAN portals with DataStore enabled and SQL access exposed. Args: - server_url (string): Base URL of CKAN server - sql (string): SQL query (e.g., SELECT * FROM "resource_id" LIMIT 10) - response_format ('markdown' | 'json'): Output format Returns: SQL query results from DataStore Examples: - { server_url: "...", sql: "SELECT * FROM "abc-123" LIMIT 10" } - { server_url: "...", sql: "SELECT COUNT(*) AS total FROM "abc-123"" } Typical workflow: ckan_package_show (get resource_id) → ckan_datastore_search_sql (run SQL on it) Security note: SQL queries are forwarded directly to the CKAN DataStore API. The CKAN server enforces its own access controls and read-only permissions. No local database is exposed. Queries are limited to public DataStore resources on the target portal.
ParameterTypeDescription
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
sql *stringSQL SELECT query; resource_id is the table name, must be double-quoted (e.g., SELECT * FROM "abc-123" LIMIT 10). Column names with capitals, spaces or accents must be double-quoted too (SELECT "Comune" ...)
ckan_find_portalsSearch the live datashades.info registry of ~950 CKAN portals worldwide. Use this tool to discover which CKAN portals exist for a country, language, or topic before querying them with other CKAN tools. **IMPORTANT — country parameter**: always pass country name in English. If the user writes in another language (e.g. "Italia", "España", "Brasil"), translate to English ("Italy", "Spain", "Brazil") before calling this tool. Args: - country (string): Country name in English (e.g. "Italy", "Brazil", "France") - query (string): Keyword to match against portal title (e.g. "transport", "health") - min_datasets (number): Minimum number of datasets (e.g. 100) - language (string): Portal default locale code (e.g. "it", "en", "pt_BR", "fr") - has_datastore (boolean): If true, return only portals with DataStore enabled (supports SQL queries) - limit (number): Max results to return (default 10, max 50) - response_format ('markdown' | 'json'): Output format (default: 'markdown') Returns: Ranked list of matching portals with URL, country, CKAN version, dataset count, and DataStore status. Typical workflow: ckan_find_portals (discover portal URL) → ckan_status_show (verify) → ckan_package_search (search datasets)
ParameterTypeDescription
countrystringCountry name in English (e.g. 'Italy', 'Brazil'). Translate from any language before passing.
has_datastorebooleanIf true, return only portals with DataStore plugin (required for SQL queries)
languagestringPortal default locale code (e.g. 'it', 'en', 'pt_BR')
limitnumberMax results (default 10, max 50)
min_datasetsnumberMinimum number of datasets
querystringKeyword matched against portal title (case-insensitive)
ckan_find_relevant_datasetsFind and rank datasets by relevance to a query using weighted fields. Use this instead of ckan_package_search when you want relevance-ranked results with explicit scoring across title, notes, tags, and organization fields. Use ckan_package_search instead when you need Solr filter syntax, facets, or pagination. Uses package_search for discovery and applies a local scoring model. Args: - server_url (string): Base URL of CKAN server (e.g., "https://dati.gov.it/opendata") - query (string): Natural language or keyword query (e.g., "mobilità urbana", "air quality") - limit (number): Number of datasets to return (default: 10) - weights (object): Field weights for scoring — higher weight = more influence on rank Default: title=4, tags=3, notes=2, organization=1, holder=4, publisher=2, coverage=4 coverage: bonus for datasets the portal returned with every query term required (Solr mm=100%); these are fetched first, the rest fills in when they are fewer than limit Note on holder vs organization: on federated catalogs (e.g. dati.gov.it), `organization` is the harvesting catalog (e.g. Regione Puglia), while `holder` (DCAT-AP_IT dct:rightsHolder) is the actual data owner (e.g. Comune di Lecce). Queries like "datasets from a specific Comune" match `holder` correctly; matching only `organization` misses datasets harvested via aggregators. `publisher` (dct:publisher) is scored separately at lower weight as it can contain technical roles ("Redazione OD") rather than the institutional owner. - query_parser ('default' | 'text'): Override search parser behavior - response_format ('markdown' | 'json'): Output format Returns: Ranked datasets with relevance scores and per-field score breakdowns Examples: - { server_url: "https://dati.gov.it/opendata", query: "mobilità" } - { server_url: "...", query: "trasporti", limit: 5, weights: { title: 5, notes: 2 } } - { server_url: "...", query: "defibrillatori Comune di Lecce", weights: { holder: 5 } } Typical workflow: ckan_find_relevant_datasets → ckan_package_show (inspect top results) → ckan_datastore_search (query data)
ParameterTypeDescription
limitnumberNumber of datasets to return
query *stringNatural language or keyword query to match against dataset title, notes, tags, organization, holder and publisher
query_parserstringOverride search parser ('text' forces text:(...) on non-fielded queries)
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
weightsobjectWeight for title match (default 4)
ckan_get_mqa_qualityGet MQA (Metadata Quality Assessment) quality score for a dataset on dati.gov.it from data.europa.eu. Returns the final score on the 0-7.5 scale of MQA methodology v2 with its band (Sufficient/Good/Excellent), dataset, distribution and data service scores, and the failing metrics with the largest gain. Datasets not yet re-evaluated fall back to the previous methodology (405 scale), labelled as such. Only works with dati.gov.it server. Typical workflow: ckan_package_show (get dataset ID) → ckan_get_mqa_quality → ckan_get_mqa_quality_details (full list of failing metrics)
ParameterTypeDescription
dataset_id *stringDataset ID or name
server_url *stringBase URL of dati.gov.it (e.g., https://www.dati.gov.it/opendata)
ckan_get_mqa_quality_detailsGet detailed MQA (Metadata Quality Assessment) quality reasons for a dataset on dati.gov.it. Lists every failing metric grouped by FAIR dimension, with DCAT-AP property, weight, how many distributions fail it and its gain on the final score, plus the HTTP status of failing URL tests (e.g. 1100 timeout, 404) (methodology v2); previous-methodology datasets get non-max reasons. Only works with dati.gov.it server. Typical workflow: ckan_get_mqa_quality (get overview scores) → ckan_get_mqa_quality_details (inspect failing metrics)
ParameterTypeDescription
dataset_id *stringDataset ID or name
server_url *stringBase URL of dati.gov.it (e.g., https://www.dati.gov.it/opendata)
ckan_group_listList all groups on a CKAN server. Groups are thematic collections of datasets. Args: - server_url (string): Base URL of CKAN server - all_fields (boolean): Return full objects vs just names (default: false) - sort (string): Sort field (default: "name asc") - limit (number): Maximum results (default: 100). Use 0 to get only the count via faceting - offset (number): Pagination offset (default: 0) - response_format ('markdown' | 'json'): Output format Returns: List of groups with metadata. When limit=0, returns only the count of groups with datasets. Typical workflow: ckan_group_list → ckan_group_show (inspect one) → ckan_package_search with fq="groups:name" (browse its datasets)
ParameterTypeDescription
all_fieldsbooleanReturn full group objects (true) or just name slugs (false)
limitnumberMax groups to return. Use 0 to get only the count via faceting
offsetnumberPagination offset
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
sortstringSort field and direction (e.g., 'name asc', 'package_count desc')
ckan_group_searchSearch for groups by name pattern. This tool provides a simpler interface than package_search for finding groups. Wildcards are automatically added around the search pattern. Args: - server_url (string): Base URL of CKAN server - pattern (string): Search pattern (e.g., "energia", "salute") - response_format ('markdown' | 'json'): Output format Returns: List of matching groups with dataset counts Typical workflow: ckan_group_search → ckan_group_show (get details) → ckan_package_search with fq="groups:name"
ParameterTypeDescription
pattern *stringName pattern to search for (wildcards added automatically, e.g., 'energia', 'salute')
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
ckan_group_showGet details of a specific group. Args: - server_url (string): Base URL of CKAN server - id (string): Group ID or name - include_datasets (boolean): Include list of datasets (default: true) - response_format ('markdown' | 'json'): Output format Returns: Group details with optional datasets Typical workflow: ckan_group_show → ckan_package_show (inspect a dataset) → ckan_datastore_search (query its data)
ParameterTypeDescription
id *stringGroup ID (UUID) or machine-readable name slug (e.g., 'transport', 'energia')
include_datasetsbooleanInclude the list of datasets belonging to this group
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
ckan_list_resourcesList all resources in a dataset with a compact summary. Returns a focused table of resources showing format, size, DataStore availability, and download URL. Use this to quickly assess what files a dataset contains before deciding how to access the data. Args: - server_url (string): Base URL of CKAN server - id (string): Dataset ID or name - format_filter (string): Filter resources by format, case-insensitive (e.g., "CSV", "json", "XLSX") - response_format ('markdown' | 'json'): Output format Returns: Compact resource summary with name, ID, format, size, DataStore flag, and URL Examples: - { server_url: "https://dati.gov.it/opendata", id: "dataset-name" } - { server_url: "...", id: "dataset-name", format_filter: "CSV" } Typical workflow: ckan_package_search → ckan_list_resources (assess available files) → ckan_datastore_search (for resources with DataStore=true) When a resource has DataStore=false but its download URL belongs to a different (source) portal, the tool can probe the source portal for DataStore availability and report source_datastore_active and source_portal_url so you can query the data there instead. This probing is OFF by default (it issues extra HTTP requests to hosts taken from the dataset's own resource URLs); set check_source_portal=true to enable it.
ParameterTypeDescription
check_source_portalbooleanOpt-in (default false): when true, probes the source portal for DataStore availability when a resource URL points to a different CKAN instance. Issues extra HTTP requests to hosts taken from the dataset's resource URLs.
format_filterstringFilter resources by format, case-insensitive (e.g., 'CSV', 'json', 'XLSX')
id *stringDataset ID or name
server_url *stringBase URL of the CKAN server
ckan_organization_listList all organizations on a CKAN server. Organizations are entities that publish and manage datasets. Args: - server_url (string): Base URL of CKAN server - all_fields (boolean): Return full objects vs just names (default: false) - sort (string): Sort field (default: "name asc") - limit (number): Maximum results (default: 100). Use 0 to get only the count via faceting - offset (number): Pagination offset (default: 0) - response_format ('markdown' | 'json'): Output format Returns: List of organizations with metadata. When limit=0, returns only the count of organizations with datasets. Typical workflow: ckan_organization_list → ckan_organization_show (inspect one) → ckan_package_search with fq="organization:name" (browse its datasets)
ParameterTypeDescription
all_fieldsbooleanReturn full organization objects (true) or just name slugs (false)
limitnumberMax organizations to return. Use 0 to get only the count via faceting
offsetnumberPagination offset
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
sortstringSort field and direction (e.g., 'name asc', 'package_count desc')
ckan_organization_searchSearch for organizations by name pattern. This tool provides a simpler interface than package_search for finding organizations. Wildcards are automatically added around the search pattern. Args: - server_url (string): Base URL of CKAN server - pattern (string): Search pattern (e.g., "toscana", "salute") - response_format ('markdown' | 'json'): Output format Returns: List of matching organizations with dataset counts Examples: - { server_url: "https://www.dati.gov.it/opendata", pattern: "toscana" } - { server_url: "https://open.canada.ca/data", pattern: "health" } Typical workflow: ckan_organization_search → ckan_organization_show (get details) → ckan_package_search with fq="organization:name"
ParameterTypeDescription
pattern *stringName pattern to search for (wildcards added automatically, e.g., 'toscana', 'health')
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
ckan_organization_showGet details of a specific organization. Args: - server_url (string): Base URL of CKAN server - id (string): Organization ID or name - include_datasets (boolean): Include list of datasets (default: true) - include_users (boolean): Include list of users (default: false) - response_format ('markdown' | 'json'): Output format Returns: Organization details with optional datasets and users Typical workflow: ckan_organization_show → ckan_package_show (inspect a dataset) → ckan_datastore_search (query its data)
ParameterTypeDescription
id *stringOrganization ID (UUID) or machine-readable name slug (e.g., 'regione-siciliana')
include_datasetsbooleanInclude the list of datasets published by this organization
include_usersbooleanInclude the list of users belonging to this organization
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
ckan_package_searchSearch for datasets (packages) on a CKAN server using Solr query syntax. Supports full Solr search capabilities including filters, facets, and sorting. Use this to discover datasets matching specific criteria. Note on parser behavior: Some CKAN portals use a restrictive default query parser that can break long OR queries. For those portals, this tool may force the query into 'text:(...)' based on per-portal config. You can override with 'query_parser' to force or disable this behavior per request. Important - Date field semantics: - issued: publisher's content publish date when available (best proxy for "created/published") - modified: publisher's content update date when available - metadata_created: CKAN record creation timestamp (publish time on source portals, harvest time on aggregators; fallback for "created" if issued missing) - metadata_modified: CKAN record update timestamp (publish time on source portals, harvest time on aggregators; use for "updated/modified in last X") Natural language mapping (important for tool callers): - "created"/"published" -> prefer issued; fallback to metadata_created - "updated"/"modified" -> prefer modified; fallback to metadata_modified - For "recent in last X", consider using content_recent (issued with metadata_created fallback) Content-recent helper: - content_recent: if true, rewrites the query to use issued with a fallback to metadata_created when issued is missing. - content_recent_days: window for content_recent (default 30 days). Args: - server_url (string): Base URL of CKAN server (e.g., "https://dati.gov.it/opendata") - q (string): Search query using Solr syntax (default: "*:*" for all) - fq (string): Filter query (e.g., "organization:comune-palermo") IMPORTANT — Solr fq syntax rules: 1. OR inside a single field: use field:(val1 OR val2), NOT field:val1 OR field:val2. Wrong: fq=type:"A" OR type:"B" → silently ignored, returns entire catalog. Right: fq=type:("A" OR "B") 2. CKAN extras fields are indexed as extras_fieldname, not fieldname. e.g. to filter on extra field "hvd_category" use fq=extras_hvd_category:"<value>" - rows (number): Number of results to return (default: 10, max: 1000) - start (number): Offset for pagination (default: 0) - page (number): Page number (1-based); alias for start. Overrides start if provided. - page_size (number): Results per page when using page (default: 10, max: 1000) - sort (string): Sort field and direction (e.g., "metadata_modified desc") - facet_field (array): Fields to facet on (e.g., ["organization", "tags"]) - facet_limit (number): Max facet values per field (default: 50) - include_drafts (boolean): Include draft datasets (default: false) - query_parser ('default' | 'text'): Override search parser behavior - response_format ('markdown' | 'json'): Output format Returns: Search results with: - count: Number of results found - results: Array of dataset objects - facets: Facet counts (if facet_field specified) - search_facets: Detailed facet information Query Syntax (parameter q): Boolean operators: - AND / &&: "water AND climate" - OR / ||: "health OR sanità" - NOT / !: "data NOT personal" - +required -excluded: "+title:water -title:sea" - Grouping: "(title:water OR title:climate) AND tags:environment" Wildcards: - *: "title:environment*" (matches environmental, environments, etc.) - Note: Left truncation (*water) not supported Fuzzy search (edit distance): - ~: "title:rest~" or "title:rest~1" (finds "test", "best", "rest") Proximity search (words within N positions): - "phrase"~N: "title:"climate change"~5" Range queries: - Inclusive [a TO b]: "num_resources:[5 TO 10]" - Exclusive {a TO b}: "num_resources:{0 TO 100}" - One side open: "metadata_modified:[2024-01-01T00:00:00Z TO *]" Date math: - NOW-1YEAR, NOW-6MONTHS, NOW-7DAYS, NOW-1HOUR - NOW/DAY, NOW/MONTH (round down) - Combined: "metadata_modified:[NOW-2MONTHS TO NOW]" - Example: "metadata_created:[NOW-1YEAR TO *]" - IMPORTANT: NOW syntax works on metadata_modified and metadata_cr
ParameterTypeDescription
content_recentbooleanUse issued date with fallback to metadata_created for recent content
content_recent_daysnumberDay window for content_recent (default 30)
facet_fieldarrayFields to facet on
facet_limitnumberMaximum facet values per field
fqstringFilter query in Solr syntax; applied after scoring, does not affect relevance. CKAN extras fields use prefix 'extras_' (e.g. extras_hvd_category). For OR on same field use field:(val1 OR val2), never field:val1 OR field:val2 (silently breaks). Examples: 'organization:comune-palermo', 'res_format:CSV', 'extras_hvd_category:("uri1" OR "uri2")'.
include_draftsbooleanInclude draft datasets
pagenumberPage number (1-based); alias for start. Overrides start if provided.
page_sizenumberResults per page when using page (default: 10)
qstringSearch query in Solr syntax
query_parserstringOverride search parser ('text' forces text:(...) on non-fielded queries)
rowsnumberNumber of results to return
server_url *stringBase URL of the CKAN server
sortstringSort field and direction (e.g., 'metadata_modified desc')
startnumberOffset for pagination
ckan_package_showGet complete metadata for a specific dataset (package). Returns full details including resources, organization, tags, and all metadata fields. Notes: - metadata_modified is a CKAN record timestamp (publish time on source portals, harvest time on aggregators), not the content date. - issued/modified are content dates when provided by the publisher. - JSON output adds metadata_harvested_at (same as metadata_modified). Args: - server_url (string): Base URL of CKAN server - id (string): Dataset ID or name (machine-readable slug) - include_tracking (boolean): Include view/download statistics (default: false) - response_format ('markdown' | 'json'): Output format On portals that use ckanext-scheming the schema's other root fields are added as "fields" ([{field, label, value}]), each with the label the schema gives it and the value as stored. Portals without scheming are unaffected. Returns (JSON format): id, name, title, notes, organization, tags, state, license_title, metadata_created, metadata_modified, issued, modified, author, maintainer, frequency, language, publisher_name, holder_name, hvd_category, applicable_legislation, temporal_coverage (array of {start, end, start_equals_issued} from dct:temporal; empty if absent; start_equals_issued=true when start = issued and no end: on dcatapit portals an export default, not a data period), resources (id, name, format, url, size, datastore_active, created, last_modified, api_json_url), view_url, api_json_url Examples: - { server_url: "https://dati.gov.it/opendata", id: "dataset-name" } - { server_url: "...", id: "abc-123-def", include_tracking: true } Typical workflow: ckan_package_show → pick a resource with datastore_active=true → ckan_datastore_search (query its data)
ParameterTypeDescription
id *stringDataset ID (UUID) or machine-readable name slug (e.g., 'raccolta-differenziata-comuni')
include_trackingbooleanInclude tracking statistics
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
ckan_status_showCheck if a CKAN server is available and get version information. Useful to verify server accessibility before making other requests. Also shows the count of High-Value Datasets (HVD) when the portal supports it. Args: - server_url (string): Base URL of CKAN server Returns: Server status, version information, and HVD dataset count (if available) Typical workflow: ckan_status_show (verify server is up) → ckan_package_search (discover datasets)
ParameterTypeDescription
server_url *stringBase URL of the CKAN server
ckan_tag_listList tags from a CKAN server using faceting. This returns tag names with counts, optionally filtered by dataset query or tag substring. Args: - server_url (string): Base URL of CKAN server - q (string): Dataset search query (default: "*:*") - fq (string): Filter query (optional) - tag_query (string): Filter tags by substring (optional) - limit (number): Max tags to return (default: 100, max: 1000) - response_format ('markdown' | 'json'): Output format Returns: List of tags with counts (from faceting) Typical workflow: ckan_tag_list → ckan_package_search with fq="tags:tag_name" (find datasets by tag) → ckan_package_show
ParameterTypeDescription
fqstringFilter query in Solr syntax (e.g., 'organization:comune-palermo') to restrict which datasets contribute to tag counts
limitnumberMax tags to return (default 100, max 1000); tags are sorted by count descending
qstringDataset search query in Solr syntax to scope the tag facet (default: '*:*' for all datasets)
server_url *stringBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
tag_querystringSubstring filter applied to tag names after faceting (e.g., 'acqua' to keep only tags containing 'acqua')
sparql_queryExecute a SPARQL SELECT query against any public HTTPS SPARQL endpoint. Useful for querying open data portals and knowledge graphs that expose SPARQL endpoints, including: - data.europa.eu (European open data portal) - publications.europa.eu (EU Publications Office) - DBpedia, Wikidata - Any DCAT-AP compliant data catalog Only HTTPS endpoints are allowed. Queries timeout after 15 seconds. Only SELECT queries are supported (read-only). If the query does not contain a LIMIT clause, one is injected automatically (default: ${DEFAULT_LIMIT}, max: ${MAX_LIMIT}). Args: - endpoint_url (string): HTTPS URL of the SPARQL endpoint - query (string): SPARQL SELECT query to execute - limit (number): Max rows to return (default: ${DEFAULT_LIMIT}). Ignored if query already contains LIMIT. - response_format ('markdown' | 'json'): Output format Examples: - Count Italian HVD datasets by publisher on data.europa.eu - Query Wikidata for entities related to a dataset topic - Explore EU controlled vocabularies on publications.europa.eu Typical workflow: sparql_query (explore schema) → sparql_query (targeted query) → ckan_package_search (get dataset details)
ParameterTypeDescription
endpoint_url *stringHTTPS URL of the SPARQL endpoint
limitnumberMax rows to return (default: ${DEFAULT_LIMIT}, max: ${MAX_LIMIT}). Injected as SPARQL LIMIT if not already present in query.
query *stringSPARQL SELECT query to execute

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 4.7K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json and website/package-lock.json.
  • !No dynamic code executionScanned 49 source files and found 1 call to eval or shell execution, in evals/tool-selection/prepare_dataset.py:5. Review how tool inputs reach them before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdio and Streamable HTTPsrc/transport/stdio.ts:5, src/transport/http.ts:6
Starts other programs
1 callevals/tool-selection/colab_finetune.py:21
Outbound network calls
6 callssrc/utils/http.ts:499, src/utils/http.ts:500, src/utils/http.ts:637
Writes or deletes files
No file writes or deletes
Lockfile
package-lock.json and website/package-lock.json

Pattern matches on the source text of 49 files: places to read, not proof of what the code does at run time.

Releases

v0.4.129v0.4.129 - Error messages that say what to do next · 6 Oct 2026What's New When a call fails, the message now tells the model what to try next, in the cases where it used to say nothing. Portal unreachable (timeout, DNS failure, network error): before, a bare `Request timeout connecting to …`; now it…
v0.4.128v0.4.128 - SSRF: validate every redirect hop · 28 Sep 2026Security Every redirect hop in `makeCkanRequest` is now re-validated (GHSA-279h-fmcr-4rwv), on both the Node/axios path (`beforeRedirect` → `validateServerUrl`) and the Workers/fetch path (`safeFetch`). Redirects to private/internal…
v0.4.127v0.4.127 - Temporal coverage in ckan_package_show · 24 Sep 2026What's New ckan_package_show: dct:temporal coverage Every `dct:temporal` period is now exposed, from root `temporal_coverage` (ckanext-dcat) or extras `temporal_start` / `temporal_end` / `temporal_coverage` (dcatapit harvests) Markdown:…
v0.4.126v0.4.126 - why MQA URL tests fail · 23 Sep 2026What's New Changes `ckan_get_mqa_quality_details` explains failing MQA URL tests with their HTTP status, e.g. `HTTP test: 1100 timeout ×21, no status recorded ×3` (1100 is data.europa.eu's code for a 5-second timeout). JSON: `httpStatus`…
v0.4.125v0.4.125 - MQA scores on the new data.europa.eu methodology · 23 Sep 2026What's New data.europa.eu switched the Metadata Quality Assessment to a new methodology (DCAT-AP 3, weighted metrics, 0-7.5 scale, four FAIR dimensions). Both MQA tools are updated (#549, closes #548). Changes `ckan_get_mqa_quality`…

README

The repository's README runs to about 4.7K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Ckan MCP Server

How do I install Ckan MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Ckan MCP Server safe to use with an AI agent?

Its trust score is 62 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Conduid's scan of 49 source files found that it serves MCP over stdio and Streamable HTTP, starts other programs (1 call) and makes outbound network calls (6 calls). Its dependencies are pinned by package-lock.json and website/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Ckan MCP Server still maintained?

Yes — the latest release is v0.4.129 (6 Oct 2026), and the last commit was 22 hours ago. The repository has 85 stars and 14 open issues.

What tools does Ckan MCP Server provide?

Conduid read 20 tools from the source: ckan_analyze_datasets, ckan_catalog_stats, ckan_datastore_search, ckan_datastore_search_sql, ckan_find_portals, ckan_find_relevant_datasets, ckan_get_mqa_quality, ckan_get_mqa_quality_details and 12 more. 20 of them publish their parameters, listed under Tools above.

What license is Ckan MCP Server released under?

The repository declares the MIT license. That applies to the latest release, v0.4.129, as well.