Skip to main content
Glama
fisheries-data

fisheries-data

Fisheries Data MCP

A local Model Context Protocol server that connects your AI client to fisheries and marine data sources. Ask a research question, find relevant datasets, and download files with their units, structure and source information. Statistical analysis and joining datasets remain part of your research workflow.

How to install · Update Codex (Windows) · Data coverage · FAQ · Technical reference

Current coverage

Source

What you can retrieve

Access

FAO FishStat

Capture and aquaculture production quantities; aquaculture production values

No account required

BarentsWatch

Norwegian aquaculture sites, lice, temperature, treatments, diseases, escapes, permitted capacity and site details

BarentsWatch API client ID and secret

Copernicus Marine

Ocean datasets selected by variable, geographic area and dates

Copernicus Marine account for downloads

UN Comtrade

Annual or monthly goods trade by country, partner, HS product and flow

Free API subscription key required for downloads

The catalogue also describes collections whose downloads are not implemented. These are marked catalogue_only; entries with download tools are marked downloadable. Availability still depends on the requested species, place, period and your access.

Related MCP server: ERDDAP MCP Server

How to install

These steps use Windows PowerShell, with Codex or Claude Code already installed and signed in. You do not need a GitHub account or the FishStat desktop application.

1. Install Python

If you do not have Python 3.11 or newer, run:

winget install --id Python.Python.3.13 -e

Close and reopen PowerShell. If WinGet is unavailable, use the Python Windows installer.

2. Download or clone the repository

Without Git: select Code → Download ZIP on the repository page, extract the ZIP, and open PowerShell in the extracted folder containing install.py.

With Git:

git clone https://github.com/adamsconchallos/fisheries-data-mcp.git
cd fisheries-data-mcp

3. Install the MCP server

From that folder, run:

py -3 install.py

The installer prepares the server, creates .env and mcp-config.json, and prints the absolute executable path. Existing credentials are preserved.

4. Connect your AI client

Codex in VS Code: open ⚙️ → MCP servers → Add server, enter the following and save:

  • Name: fisheries-data

  • Type: STDIO

  • Command: the executable path printed by the installer

  • Arguments: leave empty

Claude Code: run from the repository folder:

$mcpExe = (Resolve-Path ".venv\Scripts\fisheries-data-mcp.exe").Path
claude mcp add --scope user --transport stdio fisheries-data -- "$mcpExe"

Cowork: this repository does not yet provide its required plugin or remote connection. Use one of the clients above or Claude Desktop Chat.

5. Add your credentials

In the repository folder, open:

notepad .env

Fill in the sources you will use and leave the others blank:

BARENTSWATCH_CLIENT_ID=your_client_id
BARENTSWATCH_CLIENT_SECRET=your_client_secret
COPERNICUSMARINE_SERVICE_USERNAME=your_username
COPERNICUSMARINE_SERVICE_PASSWORD=your_password
UN_COMTRADE_API_KEY=your_subscription_key

Save .env beside install.py. FishStat needs no credentials. UN Comtrade downloads require each user's own free API subscription key; reference-code searches remain public. Obtain the other credentials by registering a BarentsWatch API client or creating a Copernicus Marine account.

6. Restart and ask

Restart the Codex extension or close and reopen Claude Code. Start a conversation:

Use Fisheries Data MCP. I want to study salmon production, production value and sea lice in Norway. Which datasets could help? Explain their periods, units and observation levels, and tell me which ones you can download.

Downloads are saved by default to ~/fisheries-data-mcp/exports with source metadata.

For macOS/Linux, other clients and configuration options, see the detailed installation guide.

Update the MCP in Codex (Windows)

These steps update the existing installation in C:\Users\adams\research\fisheries-data-mcp, which Codex already uses. If you cloned the repository elsewhere, change the path in the first command.

  1. Close VS Code and Codex to release the MCP executable. Open a separate PowerShell window.

  2. Run these commands in order:

    Set-Location 'C:\Users\adams\research\fisheries-data-mcp'
    git pull --ff-only
    py -3 install.py
  3. Open the credentials file with notepad .env. Add this line with your UN Comtrade key, then save the file:

    UN_COMTRADE_API_KEY=your_key

    If the variable already exists, update its value instead of adding a duplicate.

  4. Reopen VS Code and Codex. The search_comtrade_reference and comtrade_trade_records tools should appear.

The installer preserves .env and your existing keys. You do not need to change the MCP configuration because Codex still uses the executable in the same folder.

Documentation

Available Tools

7 tools
barentswatch_lice_by_localityA

Retrieve weekly mean adult female salmon lice for a Norwegian aquaculture locality and year.

Inputs: year (required), locality_id (required).

describe_copernicus_datasetA

Describe a Copernicus Marine dataset's variables, units, coverage, version and product DOI before choosing a subset.

Inputs: dataset_id (required).

fishstat_production_by_countryA

Find annual production tonnes by FAO country/area for an aquatic species or group; export a CSV. Source: all, capture or aquaculture. Optionally set an exact ASFIS species_code. The weight basis depends on the species group.

Inputs: year (required), query (required), source, species_code.

list_data_sourcesA

List connected sources and their coverage so the assistant can choose the right one.

Inputs: no named parameters.

search_copernicus_datasetsB

Search live Copernicus Marine catalogue for ocean variables and dataset IDs.

Inputs: query (required), limit.

search_fishstat_speciesB

Find FishStat aquatic species or species groups by name or code, including oysters/ostras.

Inputs: query (required), limit.

subset_copernicus_datasetB

Download a bounded Copernicus Marine subset by dataset, variable, bounding box and dates. Returns a local NetCDF, Zarr or CSV file with provenance.

Inputs: end (required), east (required), west (required), north (required), +5 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool maps to a distinct action/resource: source listing, FishStat species lookup, production query, Barentswatch lice retrieval, and Copernicus search/describe/subset. The only mild adjacency is the two FishStat tools, but search versus production are clearly separated.

    Naming Consistency3/5

    Most tools use verb_noun (list/search/describe/subset), but fishstat_production_by_country and barentswatch_lice_by_locality are noun phrases with source prefixes and no verb. This is a readable mixed convention, not chaotic, but it prevents a consistent pattern.

    Tool Count5/5

    Seven tools cover three distinct data domains (FishStat, Barentswatch, Copernicus), plus source discovery without redundancy. The count is appropriate for a multi-source fisheries data server.

    Completeness4/5

    Copernicus is well covered with search/describe/subset, and FishStat covers species lookup plus production by source type. The Barentswatch integration is a single narrow endpoint retrieval, so the overall surface is somewhat thin on that source, but there are no critical dead ends for the advertised workflows.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides access to FishBase marine biology data including species information, ecological data, distribution records, and morphological details. Enables species name validation and conversion between common and scientific names through natural language queries.
      8
      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
      B
      quality
      C
      maintenance
      Enables natural language querying of oceanographic data from the NES-LTER API, including CTD profiles, cruise datasets, and station information.
      10
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to work with Copernicus Marine ocean data through semantic tools for dataset discovery, metadata retrieval, recommendation, validation, point time-series extraction, area statistics, subsetting, and computation without exposing raw API plumbing.
      -