development
location
documentation
public
Bluetooth
What is Bluetooth MCP Server?
Control Bluetooth devices and manage connections through natural language commands, including device discovery, pairing, and audio controls.
Documentation
Bluetooth MCP Server
Overview
This project implements a Model Context Protocol (MCP) server that enables Claude and other AI assistants to scan and interact with Bluetooth devices in your vicinity. Built with a Test-Driven Development approach, it provides a robust, tested interface for Bluetooth operations across multiple platforms.
Features
Multi-protocol scanning: Detect both BLE and Classic Bluetooth devices
Flexible filtering: Filter devices by name, type, or other attributes
Automatic device recognition: Identify and categorize common devices (like Freebox, TVs, etc.)
Enhanced device information: Get manufacturer info, device type, and detailed characteristics
Cross-platform support: Works on Windows, macOS, and Linux
Platform-specific optimizations: Enhanced detection capabilities on Windows
MCP Integration: Seamless integration with Claude and compatible AI assistants
Requirements
Python 3.7+
Bluetooth adapter (built-in or external)
Admin/sudo privileges (required for some Bluetooth operations)
Internet connection (for package installation)
Quick Start# Installation
git clone https://github.com/yourusername/bluetooth-mcp-server.git
cd bluetooth-mcp-server\n\n# Create and activate virtual environment
python -m venv venv\n\n# On Windows
venv\Scripts\activate\n\n# On macOS/Linux
source venv/bin/activate\n\n# Install dependencies
pip install -r requirements.txt\n\n# Configure environment variables
cp .env.example .env\n\n# Edit the .env file as needed
```\n\n### Running the Server
```bash\n\n# Start the Bluetooth API server
python run.py\n\n# In another terminal, start the MCP server
python bluetooth_mcp_server.py
```\n\n### Using with Claude
1. Expose your server to the internet using ngrok or deploy it to a server:
```bash
ngrok http 8000
This project follows a Test-Driven Development (TDD) approach with comprehensive test coverage:
pytest\n\n# Run specific test categories
pytest tests/api/ # API tests
pytest tests/models/ # Data model tests
pytest tests/services/ # Service logic tests
pytest tests/utils/ # Utility function tests
Architecture
The project follows a modular architecture with clear separation of concerns: