mcp-server
v0.1.3Fractale 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.
| Parameter | Type | Description |
|---|---|---|
purpose | string |
fractale_search
Search datasets by keywords and filters. Multi-word queries match ALL terms and are never relaxed; the query is not translated. Returns short summaries with source, license and dates; pass an id to fractale_get_dataset for the full license, README and files. List filters accept an array or a comma-separated string.
| Parameter | Type | Description |
|---|---|---|
country | string | e.g. "JP" |
facets | boolean | Include filter counts. |
format | ||
formats | e.g. "CSV", "GTFS-RT" | |
language | string | e.g. "ja" |
license | string | License id, e.g. "cc-by-4.0". |
limit | number | Default 10. |
offset | number | offset+limit max 1,000 with query, 10,000 without. |
org | string | Organization id from fractale_list_organizations. |
portal | string | Portal id from fractale_list_portals. |
query | string | Keywords, min 2 chars, up to 8 terms. |
regions | ||
sort_by | string | Without a query only. |
topics | ||
verified | boolean | Only datasets from a verified official account, or with source, license and check date each confirmed by a person. |
fractale_get_dataset
Get one dataset's description, README, source, license, dates and first page of files. Use before preview or download.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Handle {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.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Handle {namespace}/{slug}, optionally @revision. |
file_id | string | File id from the dataset or file list. Preferred. |
file_path | string | file_path from fractale_list_files, e.g. a GTFS table. |
limit | number | Rows, 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.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Handle {namespace}/{slug}, optionally @revision. |
file_id | string | Original file id. Preferred. |
file_path | string | Original 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.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
metadata * | object | |
namespace * | string | upload_namespaces[].handle from fractale_account. |
request_id * | string | |
visibility * | string | Audience the user chose. |
base_revision_id | ||
dataset_id | string |
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.
| Parameter | Type | Description |
|---|---|---|
file * | object | |
metadata * | object | |
namespace * | string | upload_namespaces[].handle from fractale_account. |
request_id * | string | |
visibility * | string | Audience 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | files[].id in the receipt. |
filename * | string | |
namespace * | string | Same as the receipt. |
receipt_id * | string | |
size_bytes * | integer | |
visibility * | string | Same as the receipt. |
checksum_sha256 | string | |
content_type | string |
fractale_upload_complete
Report that the PUT for one file finished, so safety checks start now. Safe to repeat.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | assetId 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.
| Parameter | Type | Description |
|---|---|---|
region | string | The exact country/region code used by the REST API, e.g. "JP". |
type | string | e.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.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Handle {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.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Handle {namespace}/{slug}, optionally @revision. |
files_cursor | string | files_page.next_cursor from the previous page. |
files_limit | integer | Default 50. |
fractale_list_organizations
List organizations that create datasets (municipalities, prefectures, companies, associations). Use an id as the search org filter.
| Parameter | Type | Description |
|---|---|---|
limit | number | Default 50. |
offset | number | |
q | string | Name, partial match (Japanese). |
region | string | JP prefecture code, e.g. "34" (Hiroshima). |
type | string |