Skip to main content
Glama

birdnet-mcp

An MCP server that lets LLM clients such as Claude query a BirdNET-Go bird-detection instance. It runs over stdio, talks to BirdNET-Go's /api/v2 HTTP API, and never writes anything — no database access, no mutations.

Ask questions like "what birds were heard this morning?", "when did the first Wood Thrush of the year arrive?", or "which species are most active at dawn?" and let the client compose answers from the tools below.

Requirements

  • A BirdNET-Go instance recent enough to serve /api/v2 (check http://your-host:8080/api/v2/health)

  • uv

Related MCP server: eBird MCP Server

Configuration

Variable

Required

Description

BIRDNET_GO_URL

yes

Base URL of the instance, e.g. http://birdnet.local:8080

BIRDNET_GO_TIMEOUT

no

HTTP timeout in seconds (default 10)

The server sends no credentials. BirdNET-Go's read endpoints are public by default, and its bearer tokens expire hourly, so there is no durable secret to configure. If your instance has authentication or private mode enabled, allow your network in its config via security.allowsubnetbypass.

Install

Claude Code

claude mcp add birdnet -e BIRDNET_GO_URL=http://birdnet.local:8080 \
  -- uv run --directory /path/to/birdnet-mcp birdnet-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "birdnet": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/birdnet-mcp", "birdnet-mcp"],
      "env": { "BIRDNET_GO_URL": "http://birdnet.local:8080" }
    }
  }
}

Tools

Tool

Purpose

get_recent_detections

Latest detections

get_detections

Detections for a day, hour window, or species

search_detections

Historical search by species, date range, confidence, verification status, and time of day

get_detection

Full detail for one detection, with audio and spectrogram URLs

get_species_summary

Per-species counts, first/last heard, and average confidence

get_new_species

Species first detected within a recent period

get_activity_pattern

Detection counts per day, or per hour for one day

get_species_info

Rarity and taxonomy for a scientific name

get_instance_status

Reachability and health of the instance

Dates use YYYY-MM-DD. Analytics are calendar-day granularity — a BirdNET-Go API limitation.

Development

uv sync            # install dependencies
uv run pytest      # run tests
uv run ruff check  # lint

To exercise the server against a real instance:

BIRDNET_GO_URL=http://birdnet.local:8080 npx @modelcontextprotocol/inspector uv run birdnet-mcp

Troubleshooting

  • "Cannot reach BirdNET-Go" — verify BIRDNET_GO_URL and that the web UI loads from the machine running the MCP server.

  • HTTP 401/403 — your instance has authentication or private mode enabled; allow your network via security.allowsubnetbypass.

  • Timeouts — raise BIRDNET_GO_TIMEOUT.

  • "Today" looks off by a day — the server computes today's date in its own local timezone; a remote instance in another timezone may disagree near midnight.

Available Tools

9 tools
get_activity_patternA

Temporal detection activity: counts per day over a date range, or per hour for one day.

Analytics are calendar-day granularity; hourly data is available per single day only.

Args:
    granularity: "daily" (counts per day over start_date..end_date) or
        "hourly" (24 hourly counts; requires date and species).
    species: Species name (required for hourly, optional filter for daily).
    date: Day for hourly granularity, YYYY-MM-DD.
    start_date: Range start for daily granularity, YYYY-MM-DD.
    end_date: Range end for daily granularity, YYYY-MM-DD.

Inputs: date, species, end_date, start_date, +1 more. Returns: object

get_detectionA

Get full details for a single detection, including weather context if recorded.

Args:
    detection_id: The detection's numeric id.
    include_media_urls: Include URLs for the audio clip and spectrogram (URLs only, not bytes).

Inputs: detection_id (required), include_media_urls. Returns: object

get_detectionsA

Get bird detections for a specific day, optionally narrowed to an hour window or species.

Args:
    date: Day to query, YYYY-MM-DD (default: today in the MCP server's local timezone).
    hour: Starting hour 0-23 to narrow to an hourly window (optional).
    duration: Window length in hours 1-24 when hour is set (default 1).
    species: Filter to a species (common or scientific name, optional).
    limit: Max detections to return (1-100, default 25).
    offset: Pagination offset (default 0).

Inputs: date, hour, limit, offset, +2 more. Returns: object

get_instance_statusA

Check whether the BirdNET-Go instance is reachable and report its health.

Inputs: no named parameters. Returns: object

get_new_speciesA

Species detected for the first time ever within the recent period ("anything new lately?").

Args:
    days: Look-back window in days (default 30).
    limit: Max species to return (1-100, default 25).

Inputs: days, limit. Returns: object

get_recent_detectionsA

Get the most recent bird detections ("what's been heard lately?").

Args:
    limit: Number of detections to return (1-50, default 15).

Inputs: limit. Returns: object

get_species_infoA

Species details (rarity for this location) and taxonomy for a scientific name.

Args:
    scientific_name: Full scientific name including genus and species,
        e.g. "Cardinalis cardinalis".

Inputs: scientific_name (required). Returns: object

get_species_summaryA

Per-species statistics: detection counts, first/last heard, average confidence.

Args:
    start_date: Earliest date, YYYY-MM-DD (optional; omit for all time).
    end_date: Latest date, YYYY-MM-DD (optional).
    limit: Max species to return (1-200, default 50), ordered by detection count.

Inputs: limit, end_date, start_date. Returns: object

search_detectionsA

Search historical detections with flexible filters. Results are paginated 20 per page.

Args:
    species: Species filter (common or scientific name; empty = all species).
    date_start: Earliest date, YYYY-MM-DD (empty = no lower bound).
    date_end: Latest date, YYYY-MM-DD (empty = no upper bound).
    confidence_min: Minimum confidence 0.0-1.0.
    confidence_max: Maximum confidence 0.0-1.0.
    verified_status: One of: any, correct, unverified, falsePositive.
    time_of_day: One of: any, day, night, sunrise, sunset.
    page: 1-based page number.
    sort_by: One of: date_desc, date_asc, species_asc, species_desc, confidence_desc.

Inputs: page, sort_by, species, date_end, +5 more. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 9 tools

    Disambiguation4/5

    The detection-fetching tools (get_recent_detections, get_detections, search_detections) overlap somewhat, but their scopes are clearly separated by time window, filters, and pagination. Species statistics, new species, activity patterns, status, and taxonomy tools are all distinct.

    Naming Consistency5/5

    All tools use lowercase snake_case with a consistent get_/search_ verb prefix followed by a clear noun. Singular and plural forms like get_detection and get_detections are predictable, and search_detections fits the same pattern.

    Tool Count5/5

    Nine tools cover the server's read-only bird-detection analytics scope without redundancy. Each tool contributes a distinct query type, and the count fits comfortably within a well-scoped tool set.

    Completeness5/5

    The surface covers recent detections, single-detection detail, day/hour filtering, flexible historical search, species summaries, new species discovery, temporal activity, taxonomy, and instance health. For a read-only monitoring and analytics server, no significant workflow dead ends are apparent.

    Related MCP Connectors

    Related MCP Servers