Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4626822
feat: --include asks a source beside the rest, opt-in ones included
lmarkmann Oct 12, 2026
386ff88
doc: add a dataseek agent skill for searching, inspecting and setting…
lmarkmann Oct 20, 2026
05bc508
feat: search --json reports total, every merged match beyond -n
lmarkmann Oct 20, 2026
48273cd
fix: MCP tool arguments describe JSON arrays and the timeout bounds i…
lmarkmann Oct 20, 2026
e8abf32
doc: the dataseek skill works through MCP first and teaches include a…
lmarkmann Oct 20, 2026
7a7399e
fix: OSF licenses are SPDX ids, and "No license" no longer shows as one
lmarkmann Oct 20, 2026
3cf91ab
test: Dataverse answers an empty search and an error body as they arrive
lmarkmann Oct 20, 2026
76c944b
feat: Figshare hits carry their unversioned DOI, so versions of one d…
lmarkmann Oct 20, 2026
11b4e93
feat: NASA CMR results link the dataset's landing page and carry its …
lmarkmann Oct 20, 2026
cfc06c8
fix: show ArcGIS Hub's custom license text, and drop the item size of…
lmarkmann Oct 20, 2026
6fe07e4
feat: HDX and the other CKAN portals report dataset sizes, B2FIND its…
lmarkmann Oct 20, 2026
3319e48
feat: OpenML results carry their description, licence, update date an…
lmarkmann Oct 20, 2026
db43969
feat: data.europa.eu results carry SPDX license ids, file sizes and Z…
lmarkmann Oct 20, 2026
5ff5eff
fix: a page behind an AWS bot wall reads as blocked, not as a page wi…
lmarkmann Oct 20, 2026
2e1246b
doc: OpenML is read from its Elasticsearch index, and re-recorded fix…
lmarkmann Oct 20, 2026
b28dd75
doc: the dataseek skill names the bot walls and CMR's landing pages i…
lmarkmann Oct 20, 2026
d75a216
fix: punctuation after markup stays on its word, "rain, snow" rather …
lmarkmann Oct 20, 2026
8c5e691
feat: inspect reads a Dataverse dataset through its schema.org export…
lmarkmann Oct 20, 2026
75c8c81
feat: every source's licenses read as SPDX ids, CC-BY-4.0 however the…
lmarkmann Oct 20, 2026
7bd8ada
feat: search --license, --updated-since and --min-sources filter the …
lmarkmann Oct 20, 2026
312a495
feat: results carry their file formats from CKAN portals, data.europa…
lmarkmann Oct 20, 2026
099257a
feat: search --updated-since asks CKAN portals, NASA CMR and ArcGIS H…
lmarkmann Oct 20, 2026
a7200cd
doc: ADR 0020 on search filters, the contract and agent skill for --l…
lmarkmann Oct 20, 2026
973fb09
fix: rustls 0.23.46, so a resumed TLS connection keeps its post-quant…
lmarkmann Oct 20, 2026
25abc9d
ci: spell-check passes on Creative Commons ND ids
lmarkmann Oct 20, 2026
01601e0
fix: search refuses a --license or --format value that names nothing,…
lmarkmann Oct 20, 2026
2b5a03a
fix: inspect keeps a Dataverse page's version, and reads the page its…
lmarkmann Oct 20, 2026
de4751c
fix: search --updated-since refuses a day the calendar lacks, such as…
lmarkmann Oct 20, 2026
f582667
fix: a media type with parameters, such as text/csv; charset=utf-8, r…
lmarkmann Oct 20, 2026
8066455
test: the B2FIND fixture carries no researcher's address
lmarkmann Oct 20, 2026
4c62c8c
doc: filters read a result as shown, and the skill covers filtered-em…
lmarkmann Oct 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Search for datasets from the terminal

Datasets sit in dozens of archives: Hugging Face and Kaggle, Zenodo and Dataverse, data.gov and data.europa.eu, the IMF and the ECB, NASA and Copernicus. Each has its own search box and its own idea of relevance, and many host the same dataset under different names. dataseek queries them all at once and returns one deduplicated, ranked list, naming every archive that holds each result. Datasets carried by more archives, and matching more of your query, rank higher.

Most sources need no key and nothing to set up. Results come back in the terminal, as JSON for scripts, or to an AI client over MCP. Google Dataset Search and Mendeley Data are the exception: neither permits automated searches, so dataseek asks them only when you name them with `-s` ([ADR 0013](docs/adr/0013-opt-in-sources.md)). `dsk` is the same program under a shorter name.
Most sources need no key and nothing to set up. Results come back in the terminal, as JSON for scripts, or to an AI client over MCP. Google Dataset Search and Mendeley Data are the exception: neither permits automated searches, so dataseek asks them only when you name them, `-s google,mendeley` for those alone or `--include google,mendeley` beside the rest ([ADR 0013](docs/adr/0013-opt-in-sources.md)). `dsk` is the same program under a shorter name.

## Install
```sh
Expand All @@ -28,6 +28,7 @@ uvx dataseek search sea surface temperature
dsk search sea surface temperature # every default source, merged and ranked
dsk search mnist -s huggingface,kaggle # only these sources
dsk search inflation -c economics,finance # only these categories
dsk search rainfall --license cc-by --format csv # only CC BY datasets offered as CSV
dsk search census --json | jq -r '.results[].url' # one URL per line, for scripts
dsk sources # every source, its protocol, key and docs
dsk inspect https://zenodo.org/records/13135140 # a page's metadata and the files it lists
Expand Down Expand Up @@ -60,7 +61,7 @@ dsk inspect https://zenodo.org/records/13135140 # a page's metadata and the f
While, most of the sources don't require an API-key FRED, Roboflow and Data Commons are skipped without one; keys for Hugging Face, Kaggle, Data.gov, GitHub and NCBI raise download limits. See: [`docs/reference/keys-and-cache.md`](docs/reference/keys-and-cache.md).

## MCP
Use it in the terminal, pipe its JSON into scripts, or use dataseek via MCP (`dsk mcp`), so Claude, Cursor or any other MCP client can search and inspect datasets for you. Most sources need no API key. Google Dataset Search and Mendeley Data don't permit automated searches, so dataseek only queries them when named with `-s` ([ADR 0013](docs/adr/0013-opt-in-sources.md)). Register it in the client's MCP server configuration:
Use it in the terminal, pipe its JSON into scripts, or use dataseek via MCP (`dsk mcp`), so Claude, Cursor or any other MCP client can search and inspect datasets for you. Most sources need no API key. Google Dataset Search and Mendeley Data don't permit automated searches, so dataseek only queries them when named, `-s` for those alone or `--include` beside the rest ([ADR 0013](docs/adr/0013-opt-in-sources.md)). Register it in the client's MCP server configuration:

```json
{
Expand All @@ -70,7 +71,14 @@ Use it in the terminal, pipe its JSON into scripts, or use dataseek via MCP (`ds
}
```

Each tool returns what its command prints with `--json`; keys are read from the environment the client starts it in, or from `credentials.toml`. Google Dataset Search and Mendeley Data stay opt-in here too; the model asks for them by naming them in the search tool's `source` argument. See: [`docs/reference/contract.md`](docs/reference/contract.md#mcp-mode).
Each tool returns what its command prints with `--json`; keys are read from the environment the client starts it in, or from `credentials.toml`. Google Dataset Search and Mendeley Data stay opt-in here too: the model asks for them by naming them in the search tool's `source` argument, and a client can ask for them on every search with `"args": ["mcp", "--include", "google,mendeley"]`. See: [`docs/reference/contract.md`](docs/reference/contract.md#mcp-mode).

## Agent skill
[`skills/dataseek`](skills/dataseek/SKILL.md) teaches a coding agent to use dataseek over MCP or the CLI: writing queries the sources match, reading coverage and source statuses, inspecting a dataset's files, registering the server and its keys, and recovering from each error. Install it with the [skills CLI](https://github.com/vercel-labs/skills):

```sh
pnpm dlx skills add lmarkmann/dataseek
```

## Contributing & Development Docs
- [`CONTRIBUTING.md`](CONTRIBUTING.md) covers setup, the commit prefixes that decide each release, the test rules and how to add a source. Report vulnerabilities privately, as [`SECURITY.md`](docs/SECURITY.md) describes.
Expand Down
5 changes: 5 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ extend-exclude = ["tests/fixtures/"]
extend-ignore-re = [
"Dateset contains past",
"CC-BY-NC-ND-4\\.0",
# The Creative Commons NoDerivatives element, in license ids and names.
"(?i)\\bby(-nc)?-nd\\b",
"(?i)\\bcc by nc nd\\b",
"\"-ND\"",
"has\\(\"nd\"\\)",
"Burnt Area \\(BA\\)",
"census for BA 44/45",
]
2 changes: 1 addition & 1 deletion docs/adr/0004-every-source-is-searched.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se
|---|---|---|---|---|---|
| `huggingface` | Hugging Face Hub | Hub API | live | `$HF_TOKEN` (optional) | [docs](https://huggingface.co/docs/huggingface_hub/package_reference/hf_api) |
| `kaggle` | Kaggle | Kaggle API | live | `$KAGGLE_API_TOKEN` (optional) | [docs](https://www.kaggle.com/docs/api) |
| `openml` | OpenML | OpenML REST, listed | local | | [docs](https://docs.openml.org/ecosystem/Rest/) |
| `openml` | OpenML | OpenML Elasticsearch, listed | local | | [docs](https://docs.openml.org/ecosystem/Rest/) |
| `uci` | UCI Machine Learning Repository | list endpoint | local | | [docs](https://github.com/uci-ml-repo/ucimlrepo) |
| `roboflow` | Roboflow Universe | Universe API | live | `$ROBOFLOW_API_KEY` (required) | [docs](https://docs.roboflow.com/datasets/universe/universe/universe-search) |
| `modelscope` | ModelScope | site API | live | | [docs](https://www.modelscope.cn/docs) |
Expand Down
36 changes: 36 additions & 0 deletions docs/adr/0020-filters-run-on-the-merged-list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# ADR 0020: Filters run on the merged list; a source filters only where it is never stricter

- Status: accepted
- Date: 2026-10-20

## Context

An agent or a user often knows more than the words of a query: the data must be openly licensed, recent, offered as CSV, or confirmed by more than one source. Putting those constraints in the query does not work, because every source treats them as more words to match. Each source has its own filter syntax or none at all: CKAN takes Solr `fq` clauses, NASA CMR an `updated_since` parameter, ArcGIS Hub a CQL `filter`, Dataverse `fq` over its own Solr fields, and most of the 76 sources nothing. The fields disagree too: licenses arrive as SPDX ids, Creative Commons deed URLs, EU vocabulary URIs or free text ("CC-By Attribution 4.0 International"), and a record's date is a different field on every source.

## Decision

- `search` takes `--license`, `--updated-since`, `--format` and `--min-sources`, and applies them to the merged, ranked list before `--limit` cuts it. A filter reads a merged dataset as it is shown: its license and date are the first ones a source stated, and its formats are every source's, so a result never passes on a value it does not display. A dataset that does not state a field never passes a filter on it.
- Every source's license is read as an SPDX id at the source boundary (`src/license.rs`): `CC-BY-4.0` however the source spelled it, placeholders such as `notspecified` dropped, anything unrecognized kept as written. `--license cc-by` matches the family, every version and port of CC BY but not CC BY-SA.
- `--updated-since` takes a year, a month or a day and compares at the precision a record states, so a dataset dated only `2024` counts as updated after `2024-06-01`.
- File formats are read as one name per format (`CSV`, `NETCDF`, `GEOTIFF`) from the sources that list them: CKAN portals, data.europa.eu, ArcGIS Hub, NASA CMR and data.gov.
- With any filter set, each source is asked for 30 results instead of 10, since most of what comes back is dropped. `--per-source` still overrides it.
- A source is handed a filter only where its own filter is never stricter than dataseek's, so it drops nothing the merged-list filter would keep. Today that is `--updated-since` on CKAN (`metadata_modified`), CMR (`updated_since`) and ArcGIS Hub (`modified`). The query cache key includes the day.
- `--json` reports `filtered_out`, the merged datasets the filters dropped, and `total` counts the ones that passed.

## Consequences

- One filter means the same thing for every source, whatever its API offers, and a source with no filter at all is filtered just as well.
- A filter cannot find what a source did not return: a search for recent CSV files sees only the 30 best matches of each source, filtered. A source-side filter widens that window only where it is safe.
- Licenses are sparse: 315 of 978 merged results over three queries name one, so a license filter drops most of a search. The summary line says how many matched without the filters, so an empty result is not mistaken for no data.
- Pushing a filter down to another source needs evidence that its field is never stricter than the one dataseek reads, recorded in that adapter's header.

## Evidence

Probes of the live sources, October 2026, recorded in the adapter headers:

- CKAN: across 600 records on data.gov.uk, Open Canada and data.gov.au, no record's displayed date was later than its `metadata_modified`. All six portals accept the range in `fq`. `res_format` matches the publisher's free text exactly ("CSV", "csv", ".csv"), so the format stays on the merged list.
- CMR: in 200 "sea ice" collections no `DataDates` update was later than the revision date `updated_since` compares; the parameter cut that query from 3,387 matches to 957.
- ArcGIS Hub: the CQL filter on `modified` compares the modification date, although the queryables list gives it the path `properties.created`. Of 100 filtered items, 13 were created before the cut-off and none modified before it.
- Dataverse is left out: `dateSort`, the only date field `fq` reaches, is the publication date, and 2 of the 54 Harvard records updated since 2024 were published earlier, so it would drop them.
- data.europa.eu is left out: `minDate` filters on `modified` by default, while dataseek falls back to `issued`, and 109 of 200 "air quality" records have no `modified`.
- Licenses: no source filters on SPDX ids, so no license filter is pushed down. Of 978 merged results for "sea surface temperature", "air quality" and "unemployment rate", 315 name a license.
1 change: 1 addition & 0 deletions docs/adr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ A decision that constrains future work lives here, once, and is cited from where
| [0017](0017-release-builds-on-a-platform-matrix.md) | Release builds run on a per-platform matrix | accepted |
| [0018](0018-a-search-never-waits-for-a-catalog-download.md) | A search never waits for a catalog download it can do without | accepted |
| [0019](0019-stop-waiting-past-a-quorum.md) | Past 90% of the sources, the rest get one second | accepted |
| [0020](0020-filters-run-on-the-merged-list.md) | Filters run on the merged list; a source filters only where it is never stricter | accepted |
Loading
Loading