mcp-server

v0.1.3
@fractale/mcp-server Checked 3 hours ago Published 6 days ago

Fractale MCP server — AI agent access to open data, gathered and structured with clear provenance

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fractale_account

Show the connected account, permissions, monthly usage and capacity. Free: uses no data operation. Before uploading, call with purpose="upload" to get publishing permission and real destinations (upload_namespaces). Never invent a namespace or call an upload tool just to trigger sign-in.

ParameterTypeDescription
purposestring

fractale_get_dataset

Get one dataset's description, README, source, license, dates and first page of files. Use before preview or download.

ParameterTypeDescription
dataset_id *stringHandle {namespace}/{slug}, optionally @revision.

fractale_preview

Preview up to 10 rows of a CSV/TSV/JSON file, or a short text excerpt, from a file Fractale stores or reads from the source. Text is UTF-8, or Shift_JIS for Japanese data or files recorded as Shift_JIS; encoding names which. Works only where the file list offers a preview; rows are a sample, not the full data.

ParameterTypeDescription
dataset_id *stringHandle {namespace}/{slug}, optionally @revision.
file_idstringFile id from the dataset or file list. Preferred.
file_pathstringfile_path from fractale_list_files, e.g. a GTFS table.
limitnumberRows, default 3.

fractale_download

Get a temporary URL (expires within 5 minutes) for an original file, with its license, attribution and source. Only for files the file list offers a download for; get the others from the source. Issuing the URL is free; fetching it uses one data operation plus transfer. The file keeps its original format.

ParameterTypeDescription
dataset_id *stringHandle {namespace}/{slug}, optionally @revision.
file_idstringOriginal file id. Preferred.
file_pathstringOriginal file path, if no file_id.

fractale_upload_prepare

Start an upload: save the destination, the audience (ask the user if not given), metadata and the complete file list as a receipt. Reuse request_id to resume. To update a dataset, pass dataset_id and base_revision_id. Files with existingFileId are reused. Next: fractale_upload_create for each new file.

ParameterTypeDescription
files *array
metadata *object
namespace *stringupload_namespaces[].handle from fractale_account.
request_id *string
visibility *stringAudience the user chose.
base_revision_id
dataset_idstring

fractale_upload_file

Save one file the user attached in this chat (up to 20 MiB) as a new dataset, if your client passes attachments. Ask the user for the audience if not given. Keep the metadata in the original language and do not transform the file. Reuse request_id to resume. Then check fractale_upload_receipt and commit. For several files or an update, use fractale_upload_prepare.

ParameterTypeDescription
file *object
metadata *object
namespace *stringupload_namespaces[].handle from fractale_account.
request_id *string
visibility *stringAudience the user chose.

fractale_upload_receipt

Check or resume a saved upload. While state is receiving, files[].status shows each new file (quarantined files include quarantineReason). There is no ready state: once every new file is published, call fractale_upload_commit. state=committed means the version is available to the chosen audience.

ParameterTypeDescription
receipt_id *string

fractale_upload_commit

Commit a receiving receipt as one dataset version for the audience saved on it, once every new file has files[].status=published. If files are still processing, wait and retry. If the base version changed, review it before making a new receipt.

ParameterTypeDescription
receipt_id *string

fractale_upload_create

Get a signed upload URL for one new file of a saved receipt. Send the exact bytes to putUrl with requiredHeaders (includes If-None-Match: *). Do not forward Fractale credentials. If alreadyUploaded is true or the PUT returns 412, do not overwrite. Then call fractale_upload_complete.

ParameterTypeDescription
file_id *stringfiles[].id in the receipt.
filename *string
namespace *stringSame as the receipt.
receipt_id *string
size_bytes *integer
visibility *stringSame as the receipt.
checksum_sha256string
content_typestring

fractale_upload_complete

Report that the PUT for one file finished, so safety checks start now. Safe to repeat.

ParameterTypeDescription
asset_id *stringassetId from fractale_upload_create.

fractale_list_portals

List data portals (where data is published) with dataset counts, types and regions. Use an id as the search portal filter.

ParameterTypeDescription
regionstringThe exact country/region code used by the REST API, e.g. "JP".
typestringe.g. "ckan", "gtfs"

fractale_realtime

Get live vehicle positions for a GTFS-RT transit dataset. Find one with fractale_search(formats="GTFS-RT"); do not guess a handle.

ParameterTypeDescription
dataset_id *stringHandle {namespace}/{slug}, optionally @revision.

fractale_list_files

List a dataset's files one page at a time: original files, files converted for preview and links to the source, each with its license and where to download it. Fetch more pages only when needed.

ParameterTypeDescription
dataset_id *stringHandle {namespace}/{slug}, optionally @revision.
files_cursorstringfiles_page.next_cursor from the previous page.
files_limitintegerDefault 50.

fractale_list_organizations

List organizations that create datasets (municipalities, prefectures, companies, associations). Use an id as the search org filter.

ParameterTypeDescription
limitnumberDefault 50.
offsetnumber
qstringName, partial match (Japanese).
regionstringJP prefecture code, e.g. "34" (Hiroshima).
typestring