This repository contains declarative dataset definitions for the Brasil open data portal.
Note: This is a work in progress at Alpha stage.
This ready to run with the OKFN MCP server defined at https://github.com/okfn/mcp-ckan.
Add this repository to your MCP server configuration at the deploy/tool_sources.yaml file:
- name: mcp-dados-brasil
repo: git@github.com:okfn/mcp-dados-brasil.git
# path is the place in which the MCP tools live
path: datasets
ref: main
# if the repo is private, use a key
# This private key file should be generated with something like
# ssh-keygen -t ed25519 -f keys/mcp-dados-brasil-key -N "" -C "deploy@mcp-server"
# and then add this public key to the GitHub repo's deploy keys (with read access, it'll be enough)
# This key must be deployed in the MCP server's filesystem at the path specified below, and the private key file must have permissions set to 600 (read/write for owner only)
key: deploy/keys/mcp-dados-brasil-keyEach .yaml file defines a dataset and its MCP tools declaratively. No Python code is needed.
- Create a new
.yamlfile indatasets/ - Set the proper
engine. Read about them at https://github.com/okfn/mcp-ckan/tree/main/src/mcp_server/engines - Define the
datasetmetadata andsource(CSV URL) - Define
toolswith their parameters and logic - Push to this repo and re-fetch on the MCP server