Skip to main content
Glama
DMontgomery40

BirdNet-Pi MCP Server

BirdNet-Pi MCP 服务器

用于 BirdNet-Pi 集成的基于 Python 的模型上下文协议 (MCP) 服务器。

特征

  • 通过日期和物种过滤检索鸟类检测数据

  • 检测统计与分析

  • 录音访问

  • 日常活动模式

  • 报告生成

Related MCP server: MCP Boilerplate

要求

  • Python 3.8+

  • 快速API

  • 优维康

  • requirements.txt中列出的其他依赖项

安装

  1. 克隆存储库:

git clone https://github.com/YourUsername/mcp-server.git
cd mcp-server
  1. 创建虚拟环境并激活它:

python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate
  1. 安装依赖项:

pip install -r requirements.txt
  1. 设置数据目录:

mkdir -p data/audio data/reports

配置

可以使用环境变量来配置服务器:

  • BIRDNET_DETECTIONS_FILE :检测 JSON 文件的路径(默认值:'data/detections.json')

  • BIRDNET_AUDIO_DIR :音频文件目录的路径(默认值:'data/audio')

  • BIRDNET_REPORT_DIR :报告目录的路径(默认值:'data/reports')

运行服务器

启动服务器:

python server.py

服务器将在http://localhost:8000上运行。

API 端点

  • /functions列出可用函数(GET)

  • /invoke – 调用函数(POST)

可用函数

  1. getBirdDetections

    • 获取按日期范围和物种筛选的鸟类检测结果

    • 参数:startDate、endDate、种类(可选)

  2. getDetectionStats

    • 获取一段时间内的检测统计数据

    • 参数:period('day', 'week', 'month', 'all')、minConfidence(可选)

  3. getAudioRecording

    • 获取检测的音频记录

    • 参数:文件名,格式('base64'或'buffer')

  4. getDailyActivity

    • 获取特定日期的鸟类活动模式

    • 参数:日期、物种(可选)

  5. generateDetectionReport

    • 生成检测报告

    • 参数:startDate、endDate、格式('html' 或 'json')

目录结构

mcp-server/
├── birdnet/
│   ├── __init__.py
│   ├── config.py
│   ├── functions.py
│   └── utils.py
├── data/
│   ├── audio/
│   └── reports/
├── server.py
├── requirements.txt
└── README.md

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • Model Context Protocol server for Studex tools, notifications, and profile integrations

  • The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.

  • The Buildkite MCP server exposes Buildkite product data (pipelines, builds, jobs, and test data) to AI tools, editors, and agents through the Model Context Protocol. It provides capabilities including pipeline creation and management, build monitoring with specialized tools like 'wait_for_build', efficient log querying using Apache Parquet conversion and caching, and OAuth-based authentication for both read-write and read-only access to Buildkite's REST API.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that allows AI assistants to access bird observation data, hotspots, and taxonomy information from eBird.
    18 npm
    7
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Python-based Model Context Protocol server that integrates local AI models for managing data with features like CRUD operations, similarity search, and text analysis.
    -