Logo vun ERDDAP MCP Server

ERDDAP MCP Server

Communautéit
robertdcurrier

ERDDAP interface to LLMs using MCP

Editeurrobertdcurrier
Repositoryerddap2mcp
SproochPython
Forks
4
Stären
18
Disponibel Tools
0
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    ERDDAP MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    18 Stären an 4 Forks aus dem verlinkte Repository.

ERDDAP MCP Servers - Local & Remote

Access oceanographic and environmental data from ERDDAP servers worldwide through Claude Desktop via two complete MCP implementations: local stdio and remote HTTP.

🚀 Now with dynamic server loading from erddaps.json - 63+ ERDDAP servers available!

🌊 Two Servers, All Possibilities

This repository provides both local and remote MCP server implementations:

📍 Local MCP Server (erddapy_mcp_server.py)

  • Traditional stdio-based MCP server for local Claude Desktop use
  • 4 comprehensive ERDDAP tools for data discovery and access
  • Easy setup via claude_desktop_config.json
  • No network dependencies - runs completely locally

☁️ Remote MCP Server (erddap_remote_mcp_oauth.py)

  • HTTP-based MCP server for cloud deployment
  • Production-ready with fly.io deployment configuration
  • mcp-remote proxy compatible for Claude Desktop integration
  • Same 4 core tools optimized for remote performance

🚨 CRITICAL: Remote MCP Connection Requirements

Claude Desktop does NOT support direct remote MCP connections! You MUST use the mcp-remote proxy for remote servers.

The Secret Architecture:

Claude Desktop (stdio) ↔ mcp-remote proxy ↔ Remote MCP Server (HTTP)

What is ERDDAP?

ERDDAP (Environmental Research Division's Data Access Program) is a data server that provides simple, consistent access to scientific datasets in common file formats. These MCP servers make ERDDAP's powerful oceanographic data accessible to AI assistants through natural language queries.

Quick Start

⚠️ IMPORTANT: Disable VPN Before Use

ERDDAP servers may experience severe issues when accessed through VPNs (NordVPN, ExpressVPN, etc.), including:

  • 404 errors on valid datasets
  • Truncated or incomplete data downloads
  • Connection timeouts and failed requests

Solution: Disable your VPN before using these tools. ERDDAP servers often block or rate-limit VPN traffic, causing unreliable behavior.

Option 1: Local MCP Server (Recommended for Getting Started)

1. Install Dependencies:

bash
pip install erddapy mcp pandas

2. Configure Claude Desktop: Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{
  "mcpServers": {
    "erddap-local": {
      "command": "python",
      "args": ["/path/to/erddapy_mcp_server.py"]
    }
  }
}

Windows Users: Use %APPDATA%\Claude\claude_desktop_config.json and double backslashes in paths:

json
{
  "mcpServers": {
    "erddap-local": {
      "command": "python", 
      "args": ["C:\\Users\\YourName\\path\\to\\erddapy_mcp_server.py"]
    }
  }
}

3. Restart Claude Desktop: After updating the configuration, restart Claude Desktop. The server will start automatically and the ERDDAP tools will be available.

Option 2: Remote MCP Server (Access the Cloud Instance)

1. Install mcp-remote proxy:

bash
npm install -g mcp-remote

2. Configure Claude Desktop:

json
{
  "mcpServers": {
    "erddap-remote": {
      "command": "npx",
      "args": ["mcp-remote", "https://erddap2mcp.fly.dev/"]
    }
  }
}

3. Restart Claude Desktop: The remote server will be accessible through the mcp-remote proxy.

Available Tools

Available Tools (Both Servers)

ToolDescriptionExample Use
list_serversShow well-known ERDDAP servers worldwide"Show me available ERDDAP servers"
search_datasetsSearch for datasets by keyword"Find temperature datasets on IOOS ERDDAP"
get_dataset_infoGet detailed metadata about a dataset"Tell me about dataset jplMURSST41"
to_pandasDownload and preview data"Show me temperature data from January 2024"

Usage Examples

List Available ERDDAP Servers

You: "Show me available ERDDAP servers"

Claude: Here are some well-known ERDDAP servers you can access:

Search for Datasets

You: "Search for glider datasets on GCOOS ERDDAP"

Claude: I found 26 glider datasets on the GCOOS ERDDAP server. Here are some examples:

  • Stommel-20200813T1200: Ocean glider deployment
  • usf-sam-20210331T0000: University of South Florida glider
  • mote-dora-20210318T1200: Mote Marine Laboratory glider

These datasets contain oceanographic measurements collected by autonomous underwater gliders.

Analyze Data

You: "Get information about the dataset mote-dora-20210318T1200"

Claude: This dataset contains oceanographic measurements from a Mote Marine Laboratory glider deployment:

Time Coverage: March 18, 2021 - April 15, 2021
Variables: Temperature, salinity, density, dissolved oxygen, chlorophyll
Location: Eastern Gulf of Mexico coastal waters

Architecture Comparison

Local Server

  • Communication: stdio (standard input/output)
  • Deployment: Runs on your local machine
  • Tools: 4 comprehensive data access tools
  • Setup: Single config file entry
  • Dependencies: Python + MCP library

Remote Server

  • Communication: HTTP with JSON-RPC 2.0
  • Deployment: Cloud platforms (fly.io, AWS, etc.)
  • Tools: Same 4 data access tools
  • Setup: Requires mcp-remote proxy
  • Dependencies: FastAPI + Docker + HTTPS

For Developers: Cloud Deployment

This section is for developers who want to deploy their own instance of the remote server.

fly.io Deployment (Recommended)

The remote server is configured for one-command deployment to fly.io:

bash
# Deploy from the erddap2mcp directory
fly deploy

fly.toml Configuration:

toml
app = 'erddap2mcp'
primary_region = 'mia'

[http_service]
  internal_port = 8000
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1

Key Features:

  • ✅ Automatic HTTPS - SSL certificates managed automatically
  • ✅ Auto-scaling - Machines start/stop based on traffic
  • ✅ Global CDN - Fast access worldwide
  • ✅ Zero-downtime deploys - Seamless updates

Container Deployment (Other Platforms)

bash
# Build container
docker build -t erddap-mcp-server .

# Run locally
docker run -p 8000:8000 erddap-mcp-server

# Deploy to other platforms:
# - AWS Lambda (requires HTTPS setup)
# - Railway/Render (usually provide HTTPS automatically)
# - Google Cloud Run
# - Azure Container Instances

Testing Your Setup

For Users: Verify Installation

After configuring Claude Desktop, restart it and check if the ERDDAP tools appear in the tools list.

For Developers: Manual Testing

Test Local Server

bash
# Test the server directly (for debugging)
python erddapy_mcp_server.py

# Send test commands:
echo '{"jsonrpc": "2.0", "method": "tools/list", "id": 1}' | python erddapy_mcp_server.py

Test Remote Server

bash
# Test basic connectivity
curl http://localhost:8000/

# Test MCP protocol
curl -X POST http://localhost:8000/ \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "tools/list", "id": 1}'

# Test with mcp-remote proxy
npx mcp-remote http://localhost:8000/ --test

Configuration Examples

Both Servers Together

You can run both local and remote servers simultaneously:

json
{
  "mcpServers": {
    "erddap-local": {
      "command": "python",
      "args": ["/Users/rdc/src/mcp/erddap2mcp/erddapy_mcp_server.py"]
    },
    "erddap-remote": {
      "command": "npx", 
      "args": ["mcp-remote", "https://erddap2mcp.fly.dev/"]
    }
  }
}

This gives you the full local toolset plus cloud accessibility!

Common Tool Parameters

Both servers accept these parameters:

  • server_url: ERDDAP server URL (defaults to NOAA CoastWatch)
  • protocol: Either "tabledap" (tabular data) or "griddap" (gridded data)
  • dataset_id: The dataset identifier
  • variables: List of variables to retrieve
  • constraints: Dictionary of constraints (e.g., time/space bounds)

Tips for Best Results

  1. Start with local: Local server has easier setup and no proxy requirement
  2. Use remote for sharing: Remote server can be accessed by multiple users
  3. Check metadata first: Use get_dataset_info before downloading data
  4. Use constraints: Limit data requests to avoid timeouts
  5. Choose correct protocol: tabledap for tabular, griddap for gridded data

Troubleshooting

Local Server Issues

  • "No such file": Check Python path in configuration
  • "Connection failed": Verify server is running
  • Tool errors: Check stderr for debug output

Remote Server Issues

  • "No tools available": Ensure mcp-remote proxy is installed (npm install -g mcp-remote)
  • "Connection failed": Verify server URL is accessible and uses HTTPS
  • Protocol errors: Check server logs with fly logs -a erddap2mcp

General ERDDAP Issues

  • Timeouts: Reduce spatial/temporal extent of requests
  • Protocol errors: Specify correct protocol (tabledap vs griddap)
  • Server unavailable: Some ERDDAP servers may be temporarily down

The Remote MCP Discovery Journey

This remote implementation represents months of debugging the Remote MCP mystery:

Failed Approaches:

  1. Direct SSE connections - Claude Desktop doesn't support this
  2. Config file remote URLs - Only works for local stdio servers
  3. Connector UI attempts - Also doesn't support direct connections

The Breakthrough:

The mcp-remote proxy requirement was buried in third-party documentation. This critical piece enables Claude Desktop to talk to remote MCP servers via HTTP.

Credits

  • ERDDAP was developed by Bob Simons at NOAA's Environmental Research Division. Learn more at the ERDDAP website.
  • erddapy is the official Python client for ERDDAP, developed by Filipe Fernandes and the IOOS community. Visit the erddapy documentation.
  • mcp-remote proxy enables remote MCP connections to Claude Desktop

Common Use Cases

  • Climate Research: Access historical temperature, salinity, and current data
  • Marine Biology: Find chlorophyll concentrations and ocean color data
  • Coastal Management: Monitor sea level, wave heights, and coastal conditions
  • Fisheries: Access environmental data for fisheries management
  • Education: Explore real oceanographic data for teaching and learning

Server List Management

ERDDAP servers are now loaded dynamically from erddaps.json:

  • 63 ERDDAP servers pre-configured (worldwide coverage)
  • Easy to add/remove servers by editing JSON file
  • Automatic fallback if file is missing
  • Servers grouped by public/private access
  • Each server entry includes name, short_name, url, and public flag

To add new servers, simply edit erddaps.json:

json
{
  "name": "Your ERDDAP Server",
  "short_name": "YES",
  "url": "https://your-erddap.org/erddap/",
  "public": true
}

Contributing

Contributions welcome! This project demonstrates how to build both local and remote MCP servers. Key areas for improvement:

  • Additional ERDDAP tools and data processing capabilities
  • Enhanced error handling and performance optimization
  • Multi-server load balancing and caching strategies
  • Adding more ERDDAP servers to erddaps.json

License

This project is open source and available under the MIT License.

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "yourusername-erddap2mcp": {
      "command": "",
      "args": []
    }
  }
}

ERDDAP MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal ERDDAP MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

ERDDAP MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu ERDDAP MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "yourusername-erddap2mcp": {
      "command": "npx",
      "args": [
        "-y",
        "erddap2mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu ERDDAP MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu ERDDAP MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat ERDDAP MCP Server?
ERDDAP MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat ERDDAP MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server ERDDAP MCP Server benotzt?

ERDDAP MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech ERDDAP MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir ERDDAP MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat ERDDAP MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann ERDDAP MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech ERDDAP MCP Server MCP mat TypingMind?

ERDDAP MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt ERDDAP MCP Server MCP an TypingMind zur Verfügung?

ERDDAP MCP Server stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir ERDDAP MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann ERDDAP MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇