AgentSkillsCN

essdeepdive

通过MCP工具,查询ESS-DeepDive融合数据库中的字段与文件元数据。

SKILL.md
--- frontmatter
name: essdeepdive
description: Query the ESS-DeepDive fusion database for fields and file metadata via MCP tools.

Setup (once)

Run the MCP server locally:

bash
uv run python src/essdive_mcp/main.py --token YOUR_ESS_DIVE_TOKEN_HERE

Or provide the token via a file:

bash
uv run python src/essdive_mcp/main.py --token-file /path/to/token.txt

Note: the environment variable name is ESSDIVE_API_TOKEN (no underscore between ESS and DIVE).

Register with Claude Code (stdio transport):

bash
claude mcp add --transport stdio essdive-mcp --env ESSDIVE_API_TOKEN=YOUR_ESS_DIVE_TOKEN_HERE -- uv run python ./src/essdive_mcp/main.py

Token file alternative:

bash
claude mcp add --transport stdio essdive-mcp -- uv run python ./src/essdive_mcp/main.py --token-file /path/to/token.txt

Tools

  • search-ess-deepdive
  • get-ess-deepdive-dataset
  • get-ess-deepdive-file
  • coords-to-map-links

Usage examples

Search for fields named "temperature" with at least 100 records:

code
search-ess-deepdive with field_name="temperature" and record_count_min=100

Filter by DOI and field definition text:

code
search-ess-deepdive with doi="10.15485/2453885" and field_definition="soil" and page_size=25

Get detailed field metadata for a dataset file:

code
get-ess-deepdive-dataset with doi="10.15485/2453885" and file_path="dataset.zip/data.csv"

Get full file metadata and download info:

code
get-ess-deepdive-file with doi="doi:10.15485/2453885" and file_path="dataset.zip/data.csv"

Create map links for a point (geojson.io + Google Maps + Google Earth KML):

code
coords-to-map-links with points=[[38.9219, -106.9490]] and zoom=12

Notes

  • row_start is 1-based. Use max_pages for automatic pagination.
  • doi may be provided as 10.xxxx/... or doi:10.xxxx/....