ThinkInAI-Hackathon/ble-hrm-server
If you are the rightful owner of ble-hrm-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A MCP server that functions as a BLE Heart Rate Monitoring server to connect with HRM devices.
The BLE Heart Rate Monitoring Server (ble-hrm-server) is a Model Context Protocol (MCP) server designed to facilitate the connection and monitoring of heart rate data from Bluetooth-enabled heart rate monitoring devices. This server leverages the Bluetooth protocol to discover and connect to HRM devices, allowing users to monitor heart rate data in real-time. The server is built using Python and utilizes the 'bleak' library for Bluetooth communication. It supports various functionalities such as monitoring heart rate, evaluating active heart rate, and generating heart rate charts. The server is designed to be easily configurable through environment variables and can be run in a virtual environment for dependency management. It also includes tools for testing and coverage analysis, ensuring robust performance and reliability.
Features
- Real-time heart rate monitoring using Bluetooth protocol.
- Configurable via environment variables for easy setup.
- Supports heart rate data analysis and chart generation.
- Built with Python and 'bleak' library for Bluetooth communication.
- Includes testing and coverage tools for reliability.
Usages
usage with local integration stdio
python mcp.run(transport='stdio')
usage with local integration subprocess
python command='uv', args=['run', 'src/hrm/server.py']
usage with remote integration sse
python mcp.run(transport='sse', host='0.0.0.0', port=8000)
usage with remote integration streamable http
yaml paths: /mcp: post: x-ms-agentic-protocol: mcp-streamable-1.0
usage with platform integration github
{"command": "docker", "args": ["run", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"]}
usage with platform integration copilot studio
yaml paths: /mcp: post: x-ms-agentic-protocol: mcp-streamable-1.0
usage with platform integration atlassian
{"command": "uvx", "args": ["ble-hrm-server"]}
usage with platform integration asana
{"command": "uvx", "args": ["ble-hrm-server"]}
Tools
monitoring_heart_rate
Start monitoring the heart rate of the device for a specified duration.
get_heart_rate
Get the current heart rate, averaged over the last 10 seconds.
evaluate_active_heart_rate
Evaluate the maximum heart rate over the last 60 seconds.
get_heart_rate_bucket
Get the heart rate bucket of the last 10 seconds with a specified bucket size.
build_heart_rate_chart
Build a heart rate chart for the last 600 seconds with dynamic bucket sizing.