Dataverse Curator MCP
by aluisiopulga
README.md
# Dataverse Curator MCP
An [MCP](https://modelcontextprotocol.io) server that lets AI assistants such as
Claude **search, report on and curate** a [Dataverse](https://dataverse.org)
research data repository, in plain language:
- "Which datasets about dengue were published in our Health collection in 2025?"
- "How many datasets does each subject have, and what licenses do they use?"
- "Review the metadata of our 20 newest datasets and list what to fix first."
- "Create a draft dataset for this study." (unpublished, for a curator to review)
It is written for the people who **run** a repository: curators, data
stewards and repository managers preparing for CoreTrustSeal or FAIR reviews.
## Tools
| Tool | What it does |
|---|---|
| `search_datasets` | Searches datasets, newest first, by words, collection, publication year and subject. |
| `get_dataset` | Citation metadata and file list of one dataset (by DOI or `doi:` ID). |
| `check_metadata_quality` | Reviews one dataset, or the newest datasets of a collection, against common FAIR and CoreTrustSeal expectations and returns a 0-100 score with the issues, worst first. |
| `collection_report` | Counts datasets per publication year, subject and license, plus all-time downloads, for a collection or the whole installation. |
| `create_draft_dataset` | **Opt-in.** Creates an unpublished draft with citation metadata. |
### What the metadata review checks
| Issue | Severity |
|---|---|
| No license or terms of use | error |
| No description | error |
| No contact email (checked only with an API token, since emails are hidden from anonymous calls) | error |
| Custom terms instead of a standard license | warning |
| Description shorter than 100 characters | warning |
| No keywords | warning |
| No files | warning |
| Subject is only "Other" | info |
| No author with a persistent identifier (ORCID…) | info |
| Authors without affiliation | info |
| Files without a description | info |
The score starts at 100 and loses 25 points per error, 10 per warning and 3 per
info.
## Safe by design
- **Read-only by default.** The draft tool does not even exist unless you set
`DATAVERSE_ALLOW_DRAFTS=true` **and** an API token.
- **Nothing is ever published or deleted.** Drafts are created unpublished; a
curator adds files, reviews and publishes them in Dataverse.
- **Dataverse permissions apply.** Without a token the server sees only
published content. With a token it sees what that user can see: use a
dedicated account with only the roles it needs.
- **No free-form calls.** Each tool calls one fixed API endpoint; collection
aliases and persistent IDs are validated before use.
## Installation
Requires Python 3.10 or later.
```bash
pip install git+https://github.com/aluisiopulga/dataverse-curator-mcp
# or, without installing:
uvx --from git+https://github.com/aluisiopulga/dataverse-curator-mcp dataverse-curator-mcp
```
## Configuration
| Variable | Default | |
|---|---|---|
| `DATAVERSE_URL` | (required) | Your installation, for example `https://demo.dataverse.org`. |
| `DATAVERSE_API_TOKEN` | none | Optional. Acts as that user: unpublished content and contact emails become visible. |
| `DATAVERSE_ALLOW_DRAFTS` | `false` | `true` adds the draft tool (needs a token). |
| `DATAVERSE_MAX_RESULTS` | `20` | Most items per answer (100 at most). |
| `DATAVERSE_TIMEOUT` | `30` | Seconds per API call. |
### Claude Desktop
Add to `claude_desktop_config.json` (on Windows:
`%APPDATA%\Claude\claude_desktop_config.json`; on macOS:
`~/Library/Application Support/Claude/claude_desktop_config.json`):
```json
{
"mcpServers": {
"dataverse": {
"command": "uvx",
"args": ["--from", "git+https://github.com/aluisiopulga/dataverse-curator-mcp", "dataverse-curator-mcp"],
"env": {
"DATAVERSE_URL": "https://demo.dataverse.org"
}
}
}
}
```
Restart Claude Desktop and ask: "Give me a report of the whole repository."
## Relation to other Dataverse MCP servers
The Dataverse community's [MCP server](https://mcp.dataverse.org) (GDCC,
funded by SSHOC-NL and CODATA) focuses on finding and reusing data, with
Croissant metadata. This project is complementary: it focuses on **running a
repository** (metadata quality, collection reports, drafting deposits) and
works with any Dataverse 5.x/6.x installation through the native and search
APIs.
## Development
```bash
pip install -e ".[dev]"
ruff check . && ruff format --check .
pytest # unit tests, API mocked
DATAVERSE_LIVE_URL=https://demo.dataverse.org pytest tests/test_live.py # read-only, real server
```
CI runs the unit tests on Python 3.10, 3.12 and 3.13 with both generations of
the MCP Python SDK (1.x and 2.x), plus the read-only live tests against
demo.dataverse.org.
## License
MIT. Author: [Aluísio Ricardo Marques Pulga](https://www.linkedin.com/in/aluisiopulga).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues