Bluetooth MCP Server
Bluetooth MCP サーバー
Bluetoothデバイス検出用のモデルコンテキストプロトコルサーバー
🔍 概要
このプロジェクトは、ClaudeをはじめとするAIアシスタントが周囲のBluetoothデバイスをスキャンし、操作できるようにするModel Context Protocol(MCP)サーバーを実装します。テスト駆動開発アプローチに基づいて構築されており、複数のプラットフォーム間でBluetoothを操作するための堅牢でテスト済みのインターフェースを提供します。
Related MCP server: my-mcp-server
✨ 特徴
📡マルチプロトコルスキャン:BLEとClassic Bluetoothデバイスの両方を検出
🔎柔軟なフィルタリング:デバイスを名前、タイプ、その他の属性でフィルタリングします
🔄自動デバイス認識:一般的なデバイス(Freebox、テレビなど)を識別して分類します。
📱強化されたデバイス情報:メーカー情報、デバイスの種類、詳細な特性を取得します
🖥️クロスプラットフォームサポート:Windows、macOS、Linuxで動作します
⚡プラットフォーム固有の最適化: Windowsでの検出機能が強化されました
🤖 MCP 統合: Claude および互換性のある AI アシスタントとのシームレスな統合
📋 要件
Python 3.7以上
Bluetoothアダプタ(内蔵または外付け)
管理者/sudo 権限(一部の Bluetooth 操作に必要)
インターネット接続(パッケージインストール用)
🚀 クイックスタート
インストール
# 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サーバーの実行
# Start the Bluetooth API server
python run.py
# In another terminal, start the MCP server
python bluetooth_mcp_server.pyクロードと一緒に使う
ngrok を使用してサーバーをインターネットに公開するか、サーバーに展開します。
ngrok http 8000Claude が MCP サーバーを使用するように設定します。
npx @anthropic-ai/sdk install-model-context-protocol <YOUR_SERVER_URL>Claude に Bluetooth デバイスをスキャンするよう依頼します。
Could you scan for nearby Bluetooth devices?
🧪 テスト
このプロジェクトは、包括的なテスト範囲を備えたテスト駆動開発 (TDD) アプローチに従います。
# 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🏗️ 建築
このプロジェクトは、関心事が明確に分離されたモジュール型アーキテクチャを採用しています。
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詳細なアーキテクチャ情報については、 architecture.md を参照してください。
🔧 トラブルシューティング
Bluetoothの問題
「アクセスが拒否されました」エラー: admin/sudo権限でサーバーを実行してください
アダプタが検出されません: システム設定で Bluetooth が有効になっていることを確認してください
デバイスが見つかりません: 近くに検出可能な Bluetooth デバイスがあることを確認してください
Windows 固有の問題: Bluetooth サービスがアクティブであることを確認してください (
services.msc)
MCPの問題
ツールがClaudeによって検出されませんでした: MCPサーバーのURLが正しくアクセス可能であることを確認してください
実行エラー: 詳細なエラー情報については、サーバーログを確認してください。
👥 貢献する
貢献を歓迎します!以下の手順に従ってください。
リポジトリをフォークする
機能ブランチを作成する (
git checkout -b feature/amazing-feature)機能のテストを書く
機能を実装する
すべてのテストに合格することを確認する
変更をコミットします(
git commit -m 'Add amazing feature')ブランチにプッシュする (
git push origin feature/amazing-feature)プルリクエストを開く
📄 ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
🙏 謝辞
APIフレームワーク用のFastAPI
クロスプラットフォームBluetooth機能の実現は困難
MCP統合サポートのAnthropic Claude
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 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
Real-time planetary signal engine and Model Context Protocol (MCP) server for autonomous AI agents.
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Related MCP Servers
- 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
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows integration with Claude Desktop by creating and managing custom tools that can be executed through the MCP framework.88
- FlicenseNot gradedqualityNot gradedmaintenanceEnables 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.
- AlicenseNot gradedqualityDmaintenanceBluetooth Low Energy (BLE) MCP server that allows AI agents to scan, connect to and communicated with BLE devices, as well as simulate BLE perhipherals.16BSD 2-Clause "Simplified"
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