BirdNet-Pi Integration
STDIOPython-based MCP server for BirdNet-Pi integration with bird detection capabilities.
Python-based MCP server for BirdNet-Pi integration with bird detection capabilities.
A Python-based Model Context Protocol (MCP) server for BirdNet-Pi integration.
requirements.txt
git clone https://github.com/YourUsername/mcp-server.git cd mcp-server
python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
pip install -r requirements.txt
mkdir -p data/audio data/reports
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')Start the server:
python server.py
The server will run on http://localhost:8000
.
/functions
- List available functions (GET)/invoke
- Invoke a function (POST)getBirdDetections
getDetectionStats
getAudioRecording
getDailyActivity
generateDetectionReport
mcp-server/
├── birdnet/
│ ├── __init__.py
│ ├── config.py
│ ├── functions.py
│ └── utils.py
├── data/
│ ├── audio/
│ └── reports/
├── server.py
├── requirements.txt
└── README.md