Bluetooth MCP Server
Allows scanning and detecting nearby Bluetooth devices, with the ability to filter devices by name
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bluetooth MCP Serverscan for nearby Bluetooth devices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bluetooth MCP Server
Model Context Protocol Server for Bluetooth Device Detection
๐ 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.
Related MCP server: MCP Bridge Server
โจ 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
# 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 neededRunning the Server
# Start the Bluetooth API server
python run.py
# In another terminal, start the MCP server
python bluetooth_mcp_server.pyUsing with Claude
Expose your server to the internet using ngrok or deploy it to a server:
ngrok http 8000Configure Claude to use your MCP server:
npx @anthropic-ai/sdk install-model-context-protocol <YOUR_SERVER_URL>Ask Claude to scan for Bluetooth devices:
Could you scan for nearby Bluetooth devices?
๐งช Testing
This project follows a Test-Driven Development (TDD) approach with comprehensive test coverage:
# 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:
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 suitesFor 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:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Write tests for your feature
Implement your feature
Ensure all tests pass
Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgements
FastAPI for the API framework
Bleak for cross-platform Bluetooth functionality
Anthropic Claude for MCP integration support
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseDqualityDmaintenanceA server built on mcp-framework that enables integration with Claude Desktop through the Model Context Protocol.11
- FlicenseBqualityDmaintenanceA macOS-native bridge server that enables communication between different AI clients like Claude and Cline, allowing them to interact with each other through the Model Context Protocol.23
- Flicense-qualityDmaintenanceA Model Context Protocol server that allows integration with Claude Desktop by creating and managing custom tools that can be executed through the MCP framework.112
- Flicense-quality-maintenanceEnables Claude to control Nordic Thingy:52 IoT devices via Bluetooth LE, allowing users to manage LED colors, play sounds, and read environmental sensors through natural language conversations.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoโฆ
A Model Context Protocol server for Wix AI tools
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Hypijump31/bluetooth-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server