trackmcp
Back to directory
Hypijump31

bluetooth-mcp-server

View on GitHub

bluetooth-mcp-server for Claude AI

15 stars PythonAI & Machine Learning Updated Oct 15, 2025

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

bash
# Clone the repository
git clone https://github.com/yourusername/bluetooth-mcp-server.git
cd bluetooth-mcp-server

# Create and activate virtual environment
python -m venv venv

# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Configure environment variables
cp .env.example .env
# Edit the .env file as needed

Running the Server

bash
# Start the Bluetooth API server
python run.py

# In another terminal, start the MCP server
python bluetooth_mcp_server.py

Using with Claude

1. Expose your server to the internet using ngrok or deploy it to a server:

bash
ngrok http 8000

2. Configure Claude to use your MCP server:

bash
npx @anthropic-ai/sdk install-model-context-protocol

3. Ask Claude to scan for Bluetooth devices:

code
Could you scan for nearby Bluetooth devices?

๐Ÿงช Testing

This project follows a Test-Driven Development (TDD) approach with comprehensive test coverage:

bash
# Run all tests
pytest

# 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:

code
bluetooth-mcp-server/
โ”œโ”€โ”€ app/                # Main application package
โ”‚   โ”œโ”€โ”€ api/            # FastAPI endpoints
โ”‚   โ”œโ”€โ”€ core/           # Core configuration
โ”‚   โ”œโ”€โ”€ data/           # Static data (Bluetooth identifiers, etc.)
โ”‚   โ”œโ”€โ”€ models/         # Data models
โ”‚   โ”œโ”€โ”€ services/       # Business logic
โ”‚   โ””โ”€โ”€ utils/          # Utility functions
โ”œโ”€โ”€ mcp_sdk/            # MCP integration SDK
โ””โ”€โ”€ tests/              # Test suites

For detailed architecture information, see architecture.md.

๐Ÿ”ง Troubleshooting

Bluetooth Issues

  • "Access denied" errors: Run the server with admin/sudo privileges
  • Adapter not detected: Ensure Bluetooth is enabled in your system settings
  • No devices found: Make sure there are discoverable Bluetooth devices nearby
  • Windows-specific issues: Check that Bluetooth services are active (`services.msc`)

MCP Issues

  • Tool not detected by Claude: Verify your MCP server URL is correct and accessible
  • Execution errors: Check the server logs for detailed error information

๐Ÿ‘ฅ Contributing

Contributions are welcome! Please follow these steps:

1. Fork the repository

2. Create a feature branch (`git checkout -b feature/amazing-feature`)

3. Write tests for your feature

4. Implement your feature

5. Ensure all tests pass

6. Commit your changes (`git commit -m 'Add amazing feature'`)

7. Push to the branch (`git push origin feature/amazing-feature`)

8. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgements

Frequently asked questions

What is bluetooth-mcp-server?

bluetooth-mcp-server is bluetooth-mcp-server for Claude AI

How do I install bluetooth-mcp-server?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is bluetooth-mcp-server open source?

Yes โ€” it is hosted on GitHub at https://github.com/Hypijump31/bluetooth-mcp-server and has 15 stars.

Related MCP tools

All-Hands-AIopenhands

๐Ÿ™Œ OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.

64,677 Python
agentartificial-intelligencechatgpt+6
mem0aimem0

Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.

42,646 Python
agentsaiai-agents+12
zhayujiechatgpt-on-wechat

ๅŸบไบŽๅคงๆจกๅž‹ๆญๅปบ็š„่Šๅคฉๆœบๅ™จไบบ๏ผŒๅŒๆ—ถๆ”ฏๆŒ ๅพฎไฟกๅ…ฌไผ—ๅทใ€ไผไธšๅพฎไฟกๅบ”็”จใ€้ฃžไนฆใ€้’‰้’‰ ็ญ‰ๆŽฅๅ…ฅ๏ผŒๅฏ้€‰ๆ‹ฉChatGPT/Claude/DeepSeek/ๆ–‡ๅฟƒไธ€่จ€/่ฎฏ้ฃžๆ˜Ÿ็ซ/้€šไน‰ๅƒ้—ฎ/ Gemini/GLM-4/Kimi/LinkAI๏ผŒ่ƒฝๅค„็†ๆ–‡ๆœฌใ€่ฏญ้Ÿณๅ’Œๅ›พ็‰‡๏ผŒ่ฎฟ้—ฎๆ“ไฝœ็ณป็ปŸๅ’Œไบ’่”็ฝ‘๏ผŒๆ”ฏๆŒๅŸบไบŽ่‡ชๆœ‰็Ÿฅ่ฏ†ๅบ“่ฟ›่กŒๅฎšๅˆถไผไธšๆ™บ่ƒฝๅฎขๆœใ€‚

39,573 Python
aiai-agentchatgpt+17
assafelovicgpt-researcher

An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to

24,026 Python
agentaiautomation+8
jlowinfastmcp

๐Ÿš€ The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.

19,927 Python
agentsfastmcpllms+6
1Panel-devmaxkb

๐Ÿ”ฅ MaxKB is an open-source platform for building enterprise-grade agents. MaxKB ๆ˜ฏๅผบๅคงๆ˜“็”จ็š„ๅผ€ๆบไผไธš็บงๆ™บ่ƒฝไฝ“ๅนณๅฐใ€‚ for the Model Context Protocol. Enhance AI assistants with po

19,062 Python
agentagentic-aichatbot+11

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP