Skip to main content
Glama
srstsavage

erddap-mcp-demo

by srstsavage

ERDDAP MCP demo

Demo implementation of a Model Context Protocol server allowing an LLM to interact with ERDDAP search, metadata, and tabledap services.

Example usage

Usage

Make sure you have uv installed, then add the MCP server to the desired MCP capable client.

Related MCP server: ERDDAP MCP Server

Example for Claude Desktop

NOTE: claude.ai is not MCP capable at the time of writing

Add the erddap_mcp_demo.py tool to the Clade config file at:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Linux: ~/.config//Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "erddap-tabledap": {
      "command": "/path/to/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/path/to/erddap_mcp_demo.py"
      ]
    }
  }
}

Then start/restart Claude desktop and ask it to get some data!

See https://modelcontextprotocol.io/quickstart/user

Testing

uv run mcp dev erddap_mcp_demo.py

Available Tools

5 tools
get_dataset_variable_dataC

Get data for a variable in a dataset served by an ERDDAP server. Time is always included in the results.

ParametersJSON Schema
NameRequiredDescriptionDefault
end_timeNo2026-07-13T08:10:15.483813Z
dataset_idYes
erddap_urlYes
start_timeYes
exclude_nansNo
variable_nameYes

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavioral traits. It only notes that 'Time is always included in the results,' but omits other critical aspects such as data ordering, pagination, limits, or whether the tool supports subsetting beyond time range. The lack of safety or mutation hints is a gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at one sentence, but it lacks structure and omits essential details. While brevity is positive, the trade-off is missing critical information that would make it more useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, no output schema, and no annotations, the description is severely incomplete. It does not explain the return format, data types, error conditions, or how parameters interact. The agent cannot form a complete mental model of the tool's behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no meaning to the 6 parameters, despite 0% schema coverage. It does not explain the purpose of erddap_url, dataset_id, variable_name, start_time, end_time, or exclude_nans. The agent must rely on parameter names alone, which may be insufficient.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves data for a variable from an ERDDAP dataset, using a specific verb ('Get') and resource ('data for a variable'). This distinguishes it from sibling tools that focus on metadata (list_datasets, list_dataset_variables) or search (search_datasets), making it obvious when to use this tool for actual data retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. For example, it does not explain that this tool is for fetching observations while list_dataset_variables is for discovering variable names. The agent must infer usage from the name and description alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_variable_standard_namesA

List all variable parameter CF standard names in datasets served by this ERDDAP server.

These variable parameter standard names can be used when searching an ERDDAP for datasets containing variables measuring specific parameters. If we are looking for datasets with variables measuring a specific property, we should retrieve this list first and then use a discovered standard name value when searching the ERDDAP server.

ParametersJSON Schema
NameRequiredDescriptionDefault
erddap_urlYes

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavioral traits. It does not mention any side effects, authentication needs, rate limits, or whether the list is complete or paginated. The read-only nature is implied but not explicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two paragraphs with the main purpose front-loaded. It is concise and to the point, with no unnecessary information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a listing tool with no output schema, the description explains the purpose of the output but does not describe its structure (e.g., list of strings, format of standard names). Some missing details, but overall adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter 'erddap_url' has no description coverage in the schema (0%), and the description does not explain its format or constraints. The parameter is simple, but without elaboration, the agent lacks guidance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'List all variable parameter CF standard names', specifying the verb (list), resource (variable parameter standard names), and scope (datasets served by this ERDDAP server). It distinguishes from sibling tools like list_datasets and search_datasets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains that this tool should be used to retrieve standard names before searching for datasets, providing clear context and a recommended workflow. It does not explicitly state when not to use it, but the guidance is strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_datasetsC

List all datasets in an ERDDAP server

ParametersJSON Schema
NameRequiredDescriptionDefault
erddap_urlYes

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description does not disclose behavioral traits such as idempotency, rate limits, or authentication requirements. The tool likely performs a read operation but this is not explicitly stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with one sentence, front-loading the core purpose. However, it could be slightly more informative without becoming verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no output schema and one required parameter, the description does not explain the return format or how the URL is used. It leaves gaps for a simple tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The parameter 'erddap_url' is not mentioned in the description despite being required. With 0% schema description coverage, the description adds no meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'list' and the resource 'all datasets in an ERDDAP server'. It distinguishes from sibling tools like 'search_datasets' by implying a full listing vs filtered search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like 'search_datasets' or 'list_dataset_variables'. No prerequisites or context provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_dataset_variablesC

List all variables for a dataset in an ERDDAP server

ParametersJSON Schema
NameRequiredDescriptionDefault
dataset_idYes
erddap_urlYes

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It only states the action, lacking details on result format, pagination, authentication needs, or side effects. The name implies read-only, but this is not confirmed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short sentence, which is concise but borderline under-specified. It could include additional context without becoming verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple operation and lack of output schema, the description should at least hint at what the tool returns (e.g., list of variable names). It does not, leaving the agent to guess the output format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (no parameter descriptions). The description does not mention the two required parameters (erddap_url, dataset_id) or add any context beyond their titles. Fails to compensate for missing schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'List all variables for a dataset', using a specific verb and resource. It implicitly distinguishes from siblings like get_dataset_variable_data (which gets data for a specific variable) and list_datasets (which lists datasets).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. The description does not mention prerequisites, typical use cases, or exclusions (e.g., not for querying data).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_datasetsC

List all datasets in an ERDDAP server

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNo
max_timeNo
min_timeNo
page_sizeNo
erddap_urlYes
max_latitudeNo
min_latitudeNo
search_queryNo
max_longitudeNo
min_longitudeNo
standard_nameNo

TDQS

C2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It does not disclose whether the operation is read-only, pagination behavior, or any side effects. The description is silent on important behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short but lacks the structure needed to convey essential information. It is terse but not concise in a helpful way, omitting critical details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 11 parameters, no output schema, and no annotations, the description is grossly insufficient. An agent cannot understand how to filter, paginate, or interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description must compensate. It only states 'list all datasets', but the schema includes 11 parameters for filtering, pagination, etc. No parameter meanings are explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a clear verb ('List') and resource ('datasets'), but lacks specificity about filtering capabilities. It does not distinguish itself from the sibling tool 'list_datasets', which likely has similar purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like 'list_datasets'. No prerequisites, context, or exclusions mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 5 tool updatesv0.1.0
    • First observedget_dataset_variable_data
    • First observedget_variable_standard_names
    • First observedlist_dataset_variables
    • First observedlist_datasets
    • First observedsearch_datasets

TDQS

C2.6/5.0

Scored across 5 tools

Disambiguation2/5

There is significant overlap: 'list_datasets' and 'search_datasets' have identical descriptions and appear to serve the same purpose, making it hard for an agent to distinguish them. Other tools are distinct but the duplication is a major issue.

Naming Consistency3/5

Names follow a verb_noun pattern with underscores, but there is inconsistency in verb choice: 'list_datasets' vs 'search_datasets' for the same action, and 'get_' vs 'list_' across similar operations. While readable, the pattern is not fully consistent.

Tool Count4/5

5 tools is within the well-scoped range for an ERDDAP server. However, the duplication reduces effective distinct tools to 4, making the count slightly less efficient but still acceptable.

Completeness3/5

The set covers listing datasets, listing variables, and retrieving data, but lacks tools for dataset metadata (e.g., attributes, time ranges) or data export formats. Basic querying is possible, but notable gaps exist.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables natural language search and discovery of open-access scientific datasets through the EOSC Data Commons OpenSearch service. Provides tools to search datasets and retrieve file metadata using LLM-assisted queries.
    14
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Access oceanographic and environmental data from 63+ ERDDAP servers worldwide through natural language queries. Search datasets, retrieve metadata, and download scientific data for climate research, marine biology, and coastal management.
    18
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to search, query, and manage ocean/environmental datasets from the Oceanum platform, and to read, write, and delete files in Oceanum cloud storage.
    1
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Exposes data.world's catalog, glossary, lineage, and SQL/SPARQL query APIs to LLM agents, enabling natural language interaction with enterprise data assets.
    -