Installation
import { Tabs, TabItem, Aside } from ‘@astrojs/starlight/components’;
Install mcbluetooth
Section titled “Install mcbluetooth”Or install globally
Section titled “Or install globally”uv tool install mcbluetooth
</TabItem> <TabItem label="pip">```bashpip install mcbluetoothAdd to Claude Code
Section titled “Add to Claude Code”# Using uvxclaude mcp add mcbluetooth -- uvx mcbluetooth
# From sourceclaude mcp add mcbluetooth -- uv run --directory /path/to/mcbluetooth mcbluetoothConfigure Permissions
Section titled “Configure Permissions”BlueZ Access
Section titled “BlueZ Access”mcbluetooth needs access to the BlueZ D-Bus interface. Most desktop Linux distributions allow this by default.
# Option 1: Add user to bluetooth group (requires re-login)sudo usermod -aG bluetooth $USER
# Option 2: Verify polkit allows access (check for errors when running)uvx mcbluetoothHCI Packet Capture (Optional)
Section titled “HCI Packet Capture (Optional)”For bt_capture_* tools (btmon integration):
# Allow btmon without sudosudo setcap cap_net_raw+ep /usr/bin/btmonOBEX Profiles (Optional)
Section titled “OBEX Profiles (Optional)”For file transfer, phonebook, and message access:
After installing, verify with:
bt_obex_statusVerify Installation
Section titled “Verify Installation”Check the Server Starts
Section titled “Check the Server Starts”# Should show startup banner and wait for MCP connectionsuvx mcbluetoothExpected output:
🔵 mcbluetooth v0.1.0 BlueZ MCP Server - Bluetooth management for LLMsTest with Claude Code
Section titled “Test with Claude Code”# In Claude Code, try:bt_list_adaptersShould return your Bluetooth adapter(s):
[ { "name": "hci0", "address": "AA:BB:CC:DD:EE:FF", "powered": true, "discoverable": false, "discovering": false }]Troubleshooting
Section titled “Troubleshooting””org.bluez was not provided”
Section titled “”org.bluez was not provided””BlueZ daemon isn’t running:
# Check statussystemctl status bluetooth
# Start if stoppedsudo systemctl start bluetoothsudo systemctl enable bluetooth“Permission denied” on D-Bus
Section titled ““Permission denied” on D-Bus”Add user to bluetooth group:
sudo usermod -aG bluetooth $USER# Log out and back inNo Bluetooth adapter found
Section titled “No Bluetooth adapter found”Check if adapter is detected by the kernel:
# List USB deviceslsusb | grep -i bluetooth
# Check kernel modulelsmod | grep btusb
# Check dmesgdmesg | grep -i bluetoothobexd not found
Section titled “obexd not found”Install the bluez-obex package for your distribution (see OBEX section above).
Tested Configurations
Section titled “Tested Configurations”| Distribution | BlueZ | Audio | Status |
|---|---|---|---|
| Arch Linux | 5.85 | PipeWire 1.4 | ✓ Full support |
| Ubuntu 22.04 | 5.64 | PulseAudio | ✓ Full support |
| Ubuntu 24.04 | 5.72 | PipeWire | ✓ Full support |
| Fedora 39 | 5.70 | PipeWire | ✓ Full support |
| Debian 12 | 5.66 | PipeWire | ✓ Full support |
Next Steps
Section titled “Next Steps”- Quick Start Guide — Try your first commands
- Adapter Management — Control your Bluetooth hardware