Skip to main content
Glama
edi-mcp
by idss-mesa

edi-mcp

MCP 2026-07-28 License: MIT Docs PyPI

A Model Context Protocol server (spec 2026-07-28) for the Environmental Data Initiative (EDI) PASTA+ data repository. It lets agents search, inspect, preview, download and cite LTER and EDI ecological data packages.

Documentation: https://idss-mesa.github.io/edi-mcp/

Status: v0.1.0. 16 read-only tools, 6 guide resources, 2 package templates and 3 prompts. The PyPI distribution is edi-pasta-mcp (the name edi-mcp belongs to an unrelated project); it installs the command edi-mcp (also available as edi-pasta-mcp). See DESIGN.md for decisions and RESEARCH.md for verified API facts.

Installation

Full instructions for macOS, Linux and Windows: https://idss-mesa.github.io/edi-mcp/getting-started/install/.

Install script

scripts/install.sh registers the server with every supported agent it finds. It creates the server environment with uv sync if .venv/bin/edi-mcp is missing, prefers each agent's own CLI when one is installed (claude mcp add, codex mcp add, gemini mcp add) and otherwise merges an entry into the agent's config file, keeping everything else in the file and leaving a .bak copy. It needs bash and uv.

git clone https://github.com/idss-mesa/edi-mcp.git && cd edi-mcp
scripts/install.sh                               # every agent detected on this machine
scripts/install.sh --with-key                    # also store EDI_API_KEY (read from env or a hidden prompt)
scripts/install.sh --agents all --dry-run        # preview the change for every agent
scripts/install.sh --agents claude,goose         # just Claude Code and Goose
scripts/install.sh --scope project               # project-level config (claude, codex, gemini, opencode)
scripts/install.sh --env EDI_MCP_SERVER__LOG_LEVEL=debug   # any extra environment variable
scripts/install.sh --uninstall                   # remove the registration everywhere

Agent

What the script does

claude (Claude Code)

claude mcp add --scope user edi -- /path/to/edi-mcp/.venv/bin/edi-mcp

claude-desktop

adds mcpServers.edi to claude_desktop_config.json

codex (OpenAI Codex CLI)

codex mcp add edi -- …, or an [mcp_servers.edi] table in ~/.codex/config.toml

gemini (Gemini CLI)

gemini mcp add --scope user edi …, or mcpServers.edi in ~/.gemini/settings.json

goose

adds an edi stdio extension to ~/.config/goose/config.yaml

opencode

adds mcp.servers.edi (v2) or mcp.edi (v1) to ~/.config/opencode/opencode.json

The script writes absolute paths, because desktop apps do not inherit your shell PATH. There is no option that takes the key itself; with --with-key the key is stored in plain text in each agent's config (written owner-only) and never printed. On Windows, run it from Git Bash or follow the manual steps; restart desktop apps after installing.

Manual

uv tool install edi-pasta-mcp         # or run it without installing: uvx edi-pasta-mcp
claude mcp add edi -s user -e EDI_API_KEY="$EDI_API_KEY" -- edi-mcp

pip install edi-pasta-mcp and pipx install edi-pasta-mcp work too; the development version installs from git+https://github.com/idss-mesa/edi-mcp. Do not pip install edi-mcp: that is a different, unrelated package.

Docker (HTTP)

docker build -t edi-mcp .
docker run --rm -p 127.0.0.1:8080:8080 edi-mcp      # MCP at http://127.0.0.1:8080/mcp

The image serves stateless Streamable HTTP as a non-root user, with /healthz and /readyz. Callers send their own key in X-EDI-Key, which edi-mcp accepts only behind TLS (EDI_MCP_SERVER__PUBLIC_BASE_URL=https://…); see https://idss-mesa.github.io/edi-mcp/deploy/hosted-http/ and docker-compose.yml.

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, ~/.config/Claude/claude_desktop_config.json on Linux):

{
  "mcpServers": {
    "edi": {
      "command": "/ABSOLUTE/PATH/TO/edi-mcp",
      "args": [],
      "env": { "EDI_API_KEY": "paste-your-key-here" }
    }
  }
}

Other clients (Codex CLI, Gemini CLI, Goose, OpenCode, VS Code, hosted HTTP): https://idss-mesa.github.io/edi-mcp/getting-started/clients/.

Related MCP server: io.github.krnzt/ecoscope

Authentication

Since 2026-07-30 EDI requires an API key for every PASTA REST call, including public reads. Create a free key at https://auth.edirepository.org (Profile → API keys) and set it as EDI_API_KEY. Without a key, edi-mcp falls back to the anonymous DataONE replicas of EDI content: search, metadata, entity previews and downloads, quality reports and citations work, while lineage, the change feed, read counts and whole-package zips need a key.

Tools

Tool

Purpose

edi_search_packages

Search packages by keyword, scope/site, author, time and bounding box

edi_list_scopes / edi_list_identifiers / edi_list_revisions

Browse the repository hierarchy

edi_get_package

DOI, landing page, entities and sizes for one package revision

edi_get_metadata

Compact projection of the EML metadata

edi_list_entities

Data entities with names, sizes, checksums, formats and attributes

edi_preview_entity

First rows of a delimited entity, streamed and parsed with its EML layout

edi_get_citation

Formatted citation (ESIP, DRYAD, BibTeX)

edi_get_quality_report

PASTA congruence-check summary: counts and non-valid checks

edi_get_lineage

Provenance sources and descendants (key required)

edi_recent_changes

Recent inserts, updates and deletes (key required)

edi_get_read_counts

Read counts by resource type and revision (key required)

edi_download_entities / edi_download_package

Save entities (SHA-1 verified, never overwriting) or the zip (key) locally; stdio only

edi_ping

Server, backend and key status

Resources and prompts

Resource

Content

edi://guide/agent-workflow

Five-call recipe from a question to cited data, input forms, error remedies

edi://guide/api-key

Why EDI needs a key, how to create and pass one, what works without

edi://guide/search-syntax

Query text (words are ORed), filters, PASTA vs DataONE differences

edi://guide/package-identifiers

scope.identifier.revision, DOIs, entity ids, accepted forms

edi://guide/citing-edi-data

Citing one revision by its DOI, styles, rights

edi://reference/scopes

Every scope with name, kind, site code and package counts

edi://packages/{packageId}

Template: the edi_get_package summary

edi://packages/{packageId}/eml

Template: the raw EML document (up to 1 MiB)

Prompts: edi_find_data (question → candidate packages), edi_cite_package (citation plus rights) and edi_plan_download (size, preview, download, cite).

License

MIT © 2026 The Regents of the University of New Mexico.

Available Tools

8 tools
edi_get_metadataRead a package's EML metadataA
Read-onlyIdempotent

The package's EML, projected to compact sections: overview (abstract, keywords, dates), people (creators, contacts with ORCIDs), coverage (bounding boxes, date ranges, taxa), methods, rights and license, project and funding, and entities. Choose sections with include; long text is cut at max_text_chars and lists are capped with totals. Next: call edi_list_entities for column definitions, units and codes.

Inputs: package (required), include, revision, max_text_chars. Returns: notes, title, source, license, +24 more

edi_get_packageGet an EDI data packageA
Read-onlyIdempotent

Overview of one package revision: title, publication date, creators, license, DOI, portal and metadata URLs, whether it is the newest revision, and its data entities with sizes and the total. Accepts package ids, series (newest unless revision is set), DOIs, portal or PASTA URLs, and site codes or scope names for the scope. Next: call edi_get_metadata for the full description or edi_list_entities for columns.

Inputs: package (required), revision. Returns: doi, notes, title, doiUrl, +18 more

edi_list_entitiesList a package's data entitiesA
Read-onlyIdempotent

Every data entity (table or file) of one package revision: name, type, file name, format, byte size, record count, CSV layout and the columns with definitions, storage types, units, date formats, code lists and missing-value codes; optional SHA-1 checksums. Gives the PASTA data URL and a DataONE URL readable without a key. Next: call edi_preview_entity or edi_download_entities with an entityId.

Inputs: package (required), limit, entity, offset, +3 more. Returns: page, notes, source, entities, +5 more

edi_list_identifiersList package identifiers in a scopeA
Read-onlyIdempotent

List the package identifiers in one scope, ascending and paginated (offset/limit). The scope may be exact (knb-lter-hbr), an LTER site code (HBR) or a name ('Hubbard Brook'). Identifiers are numbers; a package is scope.identifier.revision. Next: call edi_list_revisions(package='scope.identifier') for one identifier's revisions.

Inputs: scope (required), limit, offset. Returns: page, notes, scope, source, +3 more

edi_list_revisionsList the revisions of a packageA
Read-onlyIdempotent

List every revision of one data package (scope.identifier), ascending, with the newest and oldest. Accepts a series (knb-lter-hbr.14), any revision, a DOI, a portal or PASTA URL, and site codes or scope names in place of the scope. Without an API key DataONE answers and can lag new revisions. Next: call edi_get_package(package=newestPackageId).

Inputs: package (required). Returns: notes, scope, newest, oldest, +7 more

edi_list_scopesList EDI scopesA
Read-onlyIdempotent

List the repository's scopes (knb-lter-hbr, edi, ...) with name, kind, LTER site code, location and package counts on PASTA and DataONE. With an API key the list comes live from PASTA; without one it is edi-mcp's dated snapshot (also edi://reference/scopes). Scope arguments elsewhere also accept these site codes and names. Next: call edi_search_packages(scope=...) or edi_list_identifiers(scope=...).

Inputs: kind. Returns: live, page, notes, scopes, +4 more

edi_pingCheck edi-mcp statusA
Read-onlyIdempotent

Liveness and capability report: server version and protocol, whether an EDI API key is available and therefore which backend serves this caller (pasta with a key, dataone without), which tools need a key, and whether downloads are enabled. Never reveals the key. With check_api=true it also makes one small request to that backend to confirm the key and connectivity. Next: call edi_search_packages to find data packages.

Inputs: check_api. Returns: api, pong, notes, source, +12 more

edi_search_packagesSearch EDI data packagesA
Read-onlyIdempotent

Search EDI/LTER data packages by free text, scope (exact, LTER site code or name such as 'Jornada'), creator last name, temporal overlap (start_year/end_year) and bounding box; sort by relevance or publication date; paginated (offset/limit). Returns the newest revision of each package with title, DOI, coverage dates, creators and keywords. Bulk generated scopes are excluded unless include_bulk=true. Next: call edi_get_package or edi_get_metadata with a packageId.

Inputs: bbox, sort, limit, query, +6 more. Returns: page, items, notes, source, +3 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 8 tools

    Disambiguation4/5

    Tools are mostly distinct, but edi_get_package and edi_get_metadata both retrieve package-level information (summary vs full EML), and edi_list_entities overlaps with the entities section of edi_get_metadata. The descriptions clearly guide which to use, but the tiered granularity creates minor potential for misselection.

    Naming Consistency4/5

    All tools use the edi_ prefix and snake_case, with a consistent verb_noun pattern except edi_ping (verb only). This is a minor deviation, but the set remains highly readable and predictable.

    Tool Count5/5

    Eight tools are well-scoped for a data repository client, covering discovery, metadata retrieval, and health checking without redundancy. Each tool earns its place.

    Completeness2/5

    The descriptions reference edi_preview_entity and edi_download_entities as next steps, but these tools are absent from the set. This leaves a critical gap: agents can discover and inspect metadata but cannot retrieve or preview actual data, which is a core function of the domain.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides access to DataCite DOIs for research datasets, enabling searching and retrieval of dataset metadata.
      67 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to discover NEON ecological data products and sites, check data availability, list and download data files, and generate citations via the NEON Data API.
      20
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to keylessly search open research datasets by full-text query and fetch full metadata plus download links for a dataset by DOI.
      72 npm
      MIT