{"id":26506398,"url":"https://github.com/dmontgomery40/mcp-local-server","last_synced_at":"2025-03-20T22:35:23.236Z","repository":{"id":265151384,"uuid":"895284267","full_name":"DMontgomery40/mcp-local-server","owner":"DMontgomery40","description":"Local Model Context Protocol Server with BirdNet-Pi integration","archived":false,"fork":false,"pushed_at":"2024-11-27T23:47:32.000Z","size":23,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T15:57:30.298Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DMontgomery40.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-27T23:07:34.000Z","updated_at":"2024-12-15T21:16:17.000Z","dependencies_parsed_at":"2024-11-28T00:26:09.032Z","dependency_job_id":"b288cf7b-9f1c-48e5-be97-1f7d84ac2546","html_url":"https://github.com/DMontgomery40/mcp-local-server","commit_stats":null,"previous_names":["dmontgomery40/mcp-local-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMontgomery40%2Fmcp-local-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMontgomery40%2Fmcp-local-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMontgomery40%2Fmcp-local-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMontgomery40%2Fmcp-local-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DMontgomery40","download_url":"https://codeload.github.com/DMontgomery40/mcp-local-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244705669,"owners_count":20496546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-20T22:35:22.653Z","updated_at":"2025-03-20T22:35:23.226Z","avatar_url":"https://github.com/DMontgomery40.png","language":"Python","funding_links":[],"categories":["Other Tools and Integrations"],"sub_categories":["How to Submit"],"readme":"# BirdNet-Pi MCP Server\n\nA Python-based Model Context Protocol (MCP) server for BirdNet-Pi integration.\n\n## Features\n\n- Bird detection data retrieval with date and species filtering\n- Detection statistics and analysis\n- Audio recording access\n- Daily activity patterns\n- Report generation\n\n## Requirements\n\n- Python 3.8+\n- FastAPI\n- Uvicorn\n- Other dependencies listed in `requirements.txt`\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/YourUsername/mcp-server.git\ncd mcp-server\n```\n\n2. Create a virtual environment and activate it:\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows use: venv\\Scripts\\activate\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Set up your data directories:\n```bash\nmkdir -p data/audio data/reports\n```\n\n## Configuration\n\nThe server can be configured using environment variables:\n- `BIRDNET_DETECTIONS_FILE`: Path to detections JSON file (default: 'data/detections.json')\n- `BIRDNET_AUDIO_DIR`: Path to audio files directory (default: 'data/audio')\n- `BIRDNET_REPORT_DIR`: Path to reports directory (default: 'data/reports')\n\n## Running the Server\n\nStart the server:\n```bash\npython server.py\n```\n\nThe server will run on `http://localhost:8000`.\n\n## API Endpoints\n\n- `/functions` - List available functions (GET)\n- `/invoke` - Invoke a function (POST)\n\n### Available Functions\n\n1. `getBirdDetections`\n   - Get bird detections filtered by date range and species\n   - Parameters: startDate, endDate, species (optional)\n\n2. `getDetectionStats`\n   - Get detection statistics for a time period\n   - Parameters: period ('day', 'week', 'month', 'all'), minConfidence (optional)\n\n3. `getAudioRecording`\n   - Get audio recording for a detection\n   - Parameters: filename, format ('base64' or 'buffer')\n\n4. `getDailyActivity`\n   - Get bird activity patterns for a specific day\n   - Parameters: date, species (optional)\n\n5. `generateDetectionReport`\n   - Generate a report of detections\n   - Parameters: startDate, endDate, format ('html' or 'json')\n\n## Directory Structure\n\n```\nmcp-server/\n├── birdnet/\n│   ├── __init__.py\n│   ├── config.py\n│   ├── functions.py\n│   └── utils.py\n├── data/\n│   ├── audio/\n│   └── reports/\n├── server.py\n├── requirements.txt\n└── README.md\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmontgomery40%2Fmcp-local-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmontgomery40%2Fmcp-local-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmontgomery40%2Fmcp-local-server/lists"}