conapesca-db-mcp

conapesca-db-mcp

MCP server for querying the CONAPESCA historical fishing landings database (2001–2026) from Mexico's Pacific and Gulf coasts, providing tools to extract and analyze standardized landing records (avisos de arribo).

Category
Visit Server

README

conapesca-db-mcp

MCP server for querying the CONAPESCA historical landings database (2001–2026), covering both the Pacific and Gulf coasts of Mexico.

Exposes tools for extraction and consultation of standardized fishing landings data (avisos de arribo).

Tools available

Data access (raw extraction)

Tool Description
get_estados(year?) States with landings, optional year filter
get_species(year?, estado?, tipo_aviso?, top_n?) Species list with total weight and value
species_count() Unique scientific names classified by taxonomic level
get_landings(year?, estado?, especie?, tipo_aviso?, oficina?, limit?, group_by?) Landing records or aggregates; group_by: "year", "estado", "litoral"
get_offices(estado?) CONAPESCA offices with record counts
get_taxonomy(especie) Taxonomy + FishBase traits for a species

Reporting (summaries)

Tool Description
landings_by_year(estado?, tipo_aviso?) Annual totals: weight, value, species count
landings_by_estado(year?, tipo_aviso?) Totals by state
landings_by_fleet_type(year?) MAYORES vs MENORES vs COSECHA

Core

Tool Description
health_check() DB connectivity check
schema_snapshot() Column names, types, row count

Quick start (development)

1. Install

pip install -e ".[dev]"

2. Load dev data (SQLite)

python scripts/load_dev_data.py \
  --csv /path/to/conapesca_landings_2001_2026.csv \
  --db dev/conapesca_dev.sqlite \
  --rows 200000   # optional sample for fast testing

3. Configure

cp .env.example .env
# .env already has USE_SQLITE=true by default

4. Run

python -m mcp_server

Production (MySQL)

Set in .env:

USE_SQLITE=false
CONAPESCA_DB_HOST=...
CONAPESCA_DB_USER=...
CONAPESCA_DB_PASSWORD=...
CONAPESCA_DB_NAME=...

The table expected in MySQL is conapesca_landings_historical with the same schema as the pipeline output.

Resources

  • conapesca://data-dictionary — full column descriptions
  • conapesca://coverage — temporal and geographic coverage notes

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured