npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mcp-birdstats

v0.1.1

Published

MCP server for BirdNET-Pi and eBird analysis

Downloads

153

Readme

mcp-server-birdstats

Cross-reference your BirdNET-Pi data with eBird observations using natural language

Overview

This MCP plugin allows you to analyze BirdNET-Pi/BirdWeather detections by connecting them with eBird's extensive database. It follows the single-file logic structure similar to mcp-webresearch.

Features

  • Natural language interface for querying bird data
  • Cross-reference BirdWeather detections with eBird observations
  • Analyze detection patterns and highlight unusual birds
  • Data-driven visualizations
  • Strict data integrity (no example/fake data)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/mcp-server-birdstats.git
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

You'll need to set up the following environment variables:

  • BIRDWEATHER_API_TOKEN: Your BirdWeather API token
  • EBIRD_API_TOKEN: Your eBird API token

Usage

The plugin processes natural language queries about your bird detection data. Example queries:

  • "My BirdNET heard a Swainson's Thrush - is that unusual?"
  • "What's my station's rarest detection this week?"
  • "Graph my detections by time of day"
  • "Are others seeing these warblers on eBird?"

Data Integrity

This plugin strictly adheres to data integrity principles:

  • Only uses actual API response data
  • Never creates example or estimated data
  • Always shows observation counts with percentages
  • Clear indication when data is unavailable

Core Logic

The core functionality is contained in a single text file under src/index.txt which includes:

  • BirdWeather API interactions
  • eBird API interactions
  • Data analysis functions
  • Type definitions
  • Helper utilities

API Integration

BirdWeather API

  • Station statistics
  • Species lists
  • Detection records

eBird API

  • Recent observations
  • Notable sightings
  • Hotspot data
  • Species information

Development

The project uses TypeScript and follows a modular architecture:

mcp-server-birdstats/
├── src/
│   └── index.txt        # Core logic in single file
├── package.json         # Dependencies and scripts
├── tsconfig.json        # TypeScript configuration
└── README.md           # Documentation

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Privacy & Security

  • Station tokens are never exposed
  • Location privacy settings are respected
  • User data is handled securely

Error Handling

The plugin includes robust error handling:

  • Graceful API failure handling
  • Clear error messages
  • Data validation
  • Parameter verification

Performance

Performance considerations:

  • Response caching when appropriate
  • Request size limits
  • Pagination for large datasets

License

MIT

Support

For issues and feature requests, please open an issue on the GitHub repository.