birdnet-go-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@birdnet-go-mcp What bird species were detected in the last 24 hours?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
birdnet-go-mcp
Highlights
Native BirdNET-Go Support: Interfaces directly with BirdNET-Go's v2 REST API over LAN or localhost. No raw database locking or unmaintained Python dependencies.
Instant
npxRun: Launch immediately withnpx -y birdnet-go-mcp— zero Go toolchain required.Zero-Dependency Static Binary: Single Go binary (
CGO_ENABLED=0) compiled for Linux, macOS, and Windows.Dual-Mode (CLI + MCP): Human-friendly CLI for quick terminal health checks (
birdnet-mcp status), plus full stdio & SSE MCP server for AI agents.Context-Protected (8KB Envelope): Hard-capped output preventing multi-hundred detection queries from overflowing model context windows.
Read-Only & Parallel-Safe: Omits all mutating/destructive endpoints. Annotates all tools with
readOnlyHintandidempotentHintfor fast parallel agent calls.Audio & Clip Access: Resolves LAN Caddy/Nginx
.wavclip URLs, with built-in base64 audio streaming for multimodal models.
Related MCP server: Birding Buddy MCP
Quick Start
1. Instant Run via NPX (Recommended for Claude Desktop & Node users)
No Go installation needed. Downloads the native binary for your platform automatically:
# Check station health in your terminal
npx -y birdnet-go-mcp status
# Or set target host
BIRDNET_BASE_URL="http://192.0.2.10:8080" npx -y birdnet-go-mcp recent2. Install via Go
go install github.com/zax0rz/birdnet-go-mcp/cmd/birdnet-mcp@latest3. Pre-Compiled Binaries
Download the latest static binary for your architecture from GitHub Releases:
darwin-arm64(Apple Silicon M1/M2/M3/M4)darwin-amd64(Intel Mac)linux-amd64(x86_64 servers, Proxmox LXC, Docker)linux-arm64(Raspberry Pi 4 / 5)linux-armv7(Raspberry Pi 2 / 3 / Zero 2 W)windows-amd64
Client & Harness Setup
Claude Desktop & Cursor
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Claude\claude_desktop_config.json (Windows), or add under Cursor Settings ➔ Features ➔ MCP:
Option A: Using npx (Easiest)
{
"mcpServers": {
"birdnet": {
"command": "npx",
"args": ["-y", "birdnet-go-mcp", "serve"],
"env": {
"BIRDNET_BASE_URL": "http://192.0.2.10:8080",
"CLIPS_BASE_URL": "http://192.0.2.10:8091"
}
}
}
}Option B: Using Native Binary
{
"mcpServers": {
"birdnet": {
"command": "/usr/local/bin/birdnet-mcp",
"args": ["serve"],
"env": {
"BIRDNET_BASE_URL": "http://192.0.2.10:8080",
"CLIPS_BASE_URL": "http://192.0.2.10:8091"
}
}
}
}Claude Code
Add directly via CLI:
claude mcp add birdnet -- npx -y birdnet-go-mcp serveGoogle Antigravity
In your Antigravity MCP configuration (~/.gemini/antigravity/mcp/ or project settings):
{
"mcpServers": {
"birdnet": {
"command": "birdnet-mcp",
"args": ["serve"],
"env": {
"BIRDNET_BASE_URL": "http://192.0.2.10:8080",
"CLIPS_BASE_URL": "http://192.0.2.10:8091"
}
}
}
}OpenClaw
In ~/.openclaw/openclaw.json:
{
"mcp": {
"servers": {
"birdnet": {
"command": "/Users/zach/.openclaw/mcp-servers/birdnet-go-mcp/bin/birdnet-mcp",
"args": [],
"env": {
"BIRDNET_BASE_URL": "http://192.0.2.10:8080",
"CLIPS_BASE_URL": "http://192.0.2.10:8091"
},
"toolFilter": {
"include": ["*"]
}
}
}
}
}In your agent's tools.allow list:
"tools": {
"allow": [
"birdnet__get_recent_detections",
"birdnet__search_detections",
"birdnet__get_detection_detail",
"birdnet__get_today_summary",
"birdnet__get_new_arrivals",
"birdnet__get_station_health",
"birdnet__get_audio_clip",
"birdnet__get_audio_clip_base64"
]
}Remote / Headless Agents (SSE HTTP Mode)
If your agent runs on another machine or in the cloud without access to local stdio:
# Start background SSE server on port 8092
birdnet-mcp serve --sse --port 8092Point your agent to:
http://<your-server-ip>:8092/sse
Interactive CLI Commands
birdnet-mcp is a full CLI tool for humans as well as an MCP server for agents.
Check Station & RTSP Mic Health
$ birdnet-mcp status
🔍 Connecting to BirdNET-Go at http://192.0.2.10:8080...
=== AUDIO STREAMS ===
NAME TYPE HEALTH STATE THROUGHPUT LAST RECEIVED
birdz0rz-pi rtsp 🟢 HEALTHY running 74.8 KB/s 2026-09-04T20:38:53-04:00
=== DETECTOR HOST ===
Host: birdz0rz (Debian Linux, x86_64)
CPU: AMD Ryzen 5 PRO 2400G (2 cores)
Uptime: 15d 3h 6m (Host) | 6d 4h 47m (BirdNET-Go)
Kernel: 7.0.14-12-pve
Environment: LXCView Recent Sightings
$ birdnet-mcp recent --limit 5 --min-conf 0.80
ID TIME SPECIES COMMON NAME CONF NEW? CLIP URL
#129 2026-09-04 19:59:35 easblu Eastern Bluebird 84% - http://192.0.2.10:8091/2026/09/sialia_sialis_84p_20260904T195937Z.wav
#128 2026-09-04 19:58:17 easblu Eastern Bluebird 95% - http://192.0.2.10:8091/2026/09/sialia_sialis_95p_20260904T195819Z.wav
#127 2026-09-04 19:05:23 blujay Blue Jay 84% - http://192.0.2.10:8091/2026/09/cyanocitta_cristata_84p_20260904T190525Z.wav
#126 2026-09-04 18:46:16 carwre Carolina Wren 96% - http://192.0.2.10:8091/2026/09/thryothorus_ludovicianus_96p_20260904T184618Z.wav
#124 2026-09-04 18:35:34 houfin House Finch 90% - http://192.0.2.10:8091/2026/09/haemorhous_mexicanus_90p_20260904T183536Z.wavDownload Audio Recording
$ birdnet-mcp clip sialia_sialis_95p_20260904T195819Z.wav --download --out bluebird.wav
✅ Saved 1440044 bytes to bluebird.wavMCP Tool Reference
Tool | Parameters | Description |
|
| Fetches the most recent bird acoustic detections with confidence scores, timestamps, and audio clip URLs. |
|
| Historical search through detection records stored in SQLite. |
|
| Inspects a single detection: weather conditions at detection time, confidence breakdown, and audio clip info. |
| (none) | Aggregate summary of today's observatory run: total count, species diversity, and top visitors. |
| (none) | Identifies species heard for the first time ever or new this season/year (vital for tracking migration). |
| (none) | Real-time diagnostic telemetry: RTSP mic stream state, ingest bit rate, dropped packets, and host uptime. |
|
| Resolves the accessible LAN URL on Caddy/Nginx (:8091) for Discord/web embedding. |
|
| Downloads and base64-encodes the raw |
MCP Resources
birdnet://station/health— Live JSON snapshot of the Pi mic stream and BirdNET-Go engine.birdnet://detections/recent— The 10 most recent detections.birdnet://species/summary— Aggregated species occurrence summary.
MCP Prompts
daily_backyard_brief— Morning dispatch workflow template for resident bird agents.investigate_detection— Deep-dive template for evaluating anomalous sightings against eBird.
Configuration Reference
Environment Variable | CLI Flag | Default | Description |
|
|
| BirdNET-Go v2 REST API base URL |
|
|
| Base URL for audio clips file server |
|
| (empty) | Optional HTTP Basic Auth username |
|
| (empty) | Optional HTTP Basic Auth password |
|
| (empty) | Optional Bearer authorization token |
| (none) |
| HTTP client timeout in seconds |
Field-Tested in Production: The Origin Story & Hardening
birdnet-go-mcp wasn't built in a theoretical vacuum — it was forged and verified against a live backyard bioacoustic observatory:
Mic Station: Raspberry Pi Zero 2 W mounted outdoors with a weather-sealed electret microphone streaming 48kHz mono audio via RTSP (
mediamtx) at ~75 KB/s over Wi-Fi.Detector Host: BirdNET-Go running inside a Debian 12 Proxmox LXC container (
amd64, AMD Ryzen 5 PRO), analyzing audio chunks with the Cornell Lab of Ornithology neural network.Clip Web Server: Caddy reverse proxy serving
/var/lib/birdnet-go/clips/over HTTP on port 8091.Agent Mesh: OpenClaw on an Apple Silicon Mac Mini running autonomous resident agents:
Blenda (Infra agent, GLM-5.3): Monitors server health, manages gateway restarts, and oversees tool permissions.
Leopold (Resident Naturalist, Gemini 3.8 Flash): Composes daily backyard wildlife briefings, flags unusual species (Eastern Bluebirds, Carolina Wrens, Pileated Woodpeckers), and inspects audio spectrograms.
Real-World Lessons & "Incident Zero"
The Caddy Directory Permission Trap (Incident Zero): BirdNET-Go creates monthly clip directories (
/clips/YYYY/MM/) with750permissions (drwxr-x---). External web servers (Caddy, Nginx) running as their own system user will hit HTTP 403 Forbidden when serving audio clips to agents or Discord webhooks. Fix: Set permissions to755on existing month folders and add your web server user to thebirdnetgroup:sudo chmod -R 755 /var/lib/birdnet-go/clips sudo usermod -aG birdnet caddyApple Silicon AMFI & Cross-Compilation: When cross-compiling Go binaries from Linux for macOS (
GOOS=darwin GOARCH=arm64) with stripped debug symbols (-ldflags="-s -w"), macOS Apple Mobile File Integrity (AMFI) will immediately terminate the process withSIGKILL(exit code 137). All Darwin ARM64 releases are properly ad-hoc codesigned (codesign -s - --force).Context Window Token Budget Guard: Feeding raw base64 WAV recordings into multimodal LLMs is magical for verifying difficult bird calls, but a single 15-second WAV consumes ~1.9MB (approx. 500,000 tokens). That can consume 50% of a 1M-token context window in one tool invocation.
birdnet-go-mcpstrictly caps all structured JSON tool responses at an 8KB envelope cap, while keepingget_audio_clip_base64explicitly exempt so models can call it intentionally without risk of accidental context blowup in daily briefing routines.
Contributing & Development
# Clone
git clone https://github.com/zax0rz/birdnet-go-mcp.git
cd birdnet-go-mcp
# Run unit tests
make test
# Build for local OS
make build
# Cross-compile for Darwin ARM64 (Apple Silicon)
make build-macCredits & License
Built with
mark3labs/mcp-go.Designed for
tphakala/birdnet-go.Bird identification neural network developed by the Cornell Lab of Ornithology and Chemnitz University of Technology.
Licensed under the MIT License.
Available Tools
8 toolsget_audio_clipARead-onlyIdempotent
Resolve a detection's audio clip (.wav) into a full HTTP URL on the clips file server, for sharing or embedding in messages and web pages. The URL is only reachable from the same network as the clips server. Use get_audio_clip_base64 instead when the audio data must be returned inline to the model.
Inputs: clip_name (required), detection_date.
get_audio_clip_base64ARead-onlyIdempotent
Download a detection's audio clip (.wav) and return it base64-encoded, for multimodal models that accept audio input directly. WARNING: a 15-second clip is roughly 350,000-500,000 tokens. Call sparingly for single-clip verification only — never inside high-frequency or scheduled workflows. Use get_audio_clip for a lightweight shareable URL instead.
Inputs: clip_name (required), detection_date.
get_detection_detailARead-onlyIdempotent
Get comprehensive details for a single detection by its numeric ID (obtained from get_recent_detections or search_detections): weather conditions at detection time, confidence score, and audio clip URL. Use after an interesting detection ID has been identified.
Inputs: id (required).
get_new_arrivalsARead-onlyIdempotent
List species detected for the first time ever, or newly arrived this season/year. Use this to spot migration events, rare visitors, or new residents.
Inputs: no named parameters.
get_recent_detectionsARead-onlyIdempotent
Retrieve the most recent bird acoustic detections from the BirdNET-Go observatory. Returns species names, confidence scores, timestamps, and audio clip URLs. Use this as the primary tool for 'what birds were heard recently?' questions; use search_detections for historical lookups or get_today_summary for aggregates. All output is capped at 8KB to protect the agent context window.
Inputs: limit, species_code, min_confidence.
get_station_healthARead-onlyIdempotent
Get real-time health telemetry for the monitoring station: audio stream state and ingest throughput, packet loss, and host uptime/CPU. Use this to diagnose a silent station or missing detections before other tools.
Inputs: no named parameters.
get_today_summaryARead-onlyIdempotent
Get an aggregate summary of today's observatory activity: per-species detection counts plus first and last heard times. Use for daily briefings or 'what happened today' questions.
Inputs: no named parameters.
search_detectionsARead-onlyIdempotent
Search historical detection records by date, species name/code, and minimum confidence. Use this to answer questions about a specific day, date range, or species across history. For the latest activity use get_recent_detections instead. Dates must be YYYY-MM-DD.
Inputs: date, limit, species, min_confidence.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool serves a distinct purpose: audio retrieval (URL vs base64), detection details, recent/search/summary views, health status, and new arrivals. No overlapping functionality or ambiguous boundaries.
All tools follow a consistent get_ prefix for retrieval operations, with search_ appropriately used for the query tool. The base64 suffix clearly differentiates the inline-data variant from the URL variant.
With 8 tools, the set is well-scoped for a bird-observation monitoring service—covering the essential read and search operations without redundancy or bloat.
The surface covers all likely read-oriented needs for this domain: recent detections, historical search, summaries, per-detection details, audio retrieval (both URL and base64), health status, and new arrivals. No significant gaps are evident.
Maintenance
Related MCP Connectors
Access Pollinations models and API capabilities through agent tools.
Offline-first scientific and field tools for AI assistants: navigation, weather, geology, biology.
Connect AI clients to biomedical data and tools.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseAqualityDmaintenanceCross-reference your BirdNET-Pi data with eBird observations using natural language31MIT
- AlicenseAqualityDmaintenanceAn AI-powered birding companion that connects Claude to eBird and Xeno-canto APIs, enabling personalized birding with life list tracking, route-based hotspot discovery, and recording enrichment.282MIT
- FlicenseAqualityDmaintenanceEnables LLM clients to query a BirdNET-Go bird-detection instance for detections, species summaries, activity patterns, and historical searches via natural language.9-
- AlicenseBqualityBmaintenanceEnables AI assistants to search and retrieve global biodiversity data — species taxonomy, occurrence records, datasets, map tiles, literature citations and controlled vocabularies — through a standard tool interface. It exposes the source's API as dozens of typed, paginated tools that any MCP client can call.58CC BY-4.0