BirdNet-Pi MCP Server
A Python-based Model Context Protocol (MCP) server for BirdNet-Pi integration.
Features
- Bird detection data retrieval with date and species filtering
- Detection statistics and analysis
- Audio recording access
- Daily activity patterns
- Report generation
Requirements
- Python 3.8+
- FastAPI
- Uvicorn
- Other dependencies listed in
requirements.txt
Installation
- Clone the repository:
git clone https://github.com/YourUsername/mcp-server.git
cd mcp-server
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows use: venvScriptsactivate
- Install dependencies:
pip install -r requirements.txt
- Set up your data directories:
mkdir -p data/audio data/reports
Configuration
The server can be configured using environment variables:
BIRDNET_DETECTIONS_FILE: Path to detections JSON file (default: βdata/detections.jsonβ)BIRDNET_AUDIO_DIR: Path to audio files directory (default: βdata/audioβ)BIRDNET_REPORT_DIR: Path to reports directory (default: βdata/reportsβ)
Running the Server
Start the server:
python server.py
The server will run on http://localhost:8000.
API Endpoints
/functions- List available functions (GET)/invoke- Invoke a function (POST)
Available Functions
getBirdDetections- Get bird detections filtered by date range and species
- Parameters: startDate, endDate, species (optional)
getDetectionStats- Get detection statistics for a time period
- Parameters: period (βdayβ, βweekβ, βmonthβ, βallβ), minConfidence (optional)
getAudioRecording- Get audio recording for a detection
- Parameters: filename, format (βbase64β or βbufferβ)
getDailyActivity- Get bird activity patterns for a specific day
- Parameters: date, species (optional)
generateDetectionReport- Generate a report of detections
- Parameters: startDate, endDate, format (βhtmlβ or βjsonβ)
Directory Structure
mcp-server/
βββ birdnet/
β βββ __init__.py
β βββ config.py
β βββ functions.py
β βββ utils.py
βββ data/
β βββ audio/
β βββ reports/
βββ server.py
βββ requirements.txt
βββ README.md
BirdNet-Pi Integration Server
Project Details
- DMontgomery40/mcp-local-server
- Last Updated: 12/15/2024
Recomended MCP Servers
MCP Server for Roam Research Graph Integration
MySQL MCP server project
connectwise-mcp-server to use with Claude Desktop
A Model Context Protocol (MCP) server written in Python for natural language interaction with the TON blockchain π
OpenSearch MCP Server: Open-source search cluster management component
The TypeScript AI agent framework. β‘ Assistants, RAG, observability. Supports any LLM: GPT-4, Claude, Gemini, Llama.
A Model Control Protocol (MCP) server that allows Claude to communicate with locally running LLM models via LM...
Bitbucket MCP - A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs





