
0xkoda/drone-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ドローン制御用MCPサーバー
概要
DJI Tello ドローンを制御するためのモデルコンテキストプロトコル(MCP)サーバーの実装。 このサーバーは、MCP 互換のクライアントが標準化されたインターフェイスを介して Tello ドローンを制御することを可能にします。 - MCP サポート - SSE(Server-Sent Events)によるリアルタイムドローン制御 - エラー処理とロギング - CORS-enabled for webクライアント(mcp のインスペクターのような) - 基本的なTello ドローンコマンドをサポート: - テイクオフ - ランド - 移動(up/down/left/right/forward/back) - 回転(時計回り/counter-clockwise) - python 3.7 + - DJI - ドキュメント Tello ドローン - Tello ドローンへのネットワーク接続 - Root/sudoアクセス(UDPソケットバインディングに必須) MCP クライアントが Tello ドローン サーバーに接続できるようにするには、次の設定を mcp.json ファイルに追加します(通常は ~/.cursor/mcp.json またはプロジェクトディレクトリーにあります)。 この設定により、MCP 対応ツールとモデルが自動的に検出され、Tello ドローンサーバーに接続できます。 1.
概要(AI 翻訳)
DJI Tello ドローンを制御するためのモデルコンテキストプロトコル(MCP)サーバーの実装。 このサーバーは、MCP 互換のクライアントが標準化されたインターフェイスを介して Tello ドローンを制御することを可能にします。
これは、アクティブな開発下にあり、セキュリティ上の考慮事項を読みます
##特徴
- MCPサポート
- SSE(Server-Sent Events)によるリアルタイムドローン制御
- 強力なエラー処理とロギング
- WEBクライアント向けCORS対応(mcp検査機など)
- 基本的なTelloの無人機の命令を支えて下さい:
- テイクオフ
- 土地
- 移動(上/下/左/右/下/後)
- 回転(時計回り/カウンター時計回り)
前提条件
- Python 3.7 +
- DJIについて Tello ドローン
- Telloドローンへのネットワーク接続
- Root/sudoアクセス(UDPソケットバインディングに必須)
インストール
-
このリポジトリをクローンする:
-
依存関係を取付けて下さい:
#MCP の設定
MCP クライアントが Tello ドローン サーバーに接続できるようにするには、以下の設定を mcp.json ファイルに追加します(通常は ~/.cursor/mcp.json] またはプロジェクトディレクトリにあります)。
この設定により、MCP 対応ツールとモデルが自動的に検出され、Tello ドローンサーバーに接続できます。
使用法
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Tello Drone MCP Server
A Model Context Protocol (MCP) server implementation for controlling the DJI Tello drone. This server allows any MCP-compatible client to control a Tello drone through a standardized interface.
This is under active development, read security considerations
Features
- MCP Support
- Real-time drone control through SSE (Server-Sent Events)
- Robust error handling and logging
- CORS-enabled for web clients (like mcp inspector)
- Supports basic Tello drone commands:
- Takeoff
- Land
- Move (up/down/left/right/forward/back)
- Rotate (clockwise/counter-clockwise)
Prerequisites
- Python 3.7+
- DJI Tello drone
- Network connection to the Tello drone
- Root/sudo access (required for UDP socket binding)
Installation
- Clone this repository:
git clone
cd drone-mcp
- Install dependencies:
pip install -r requirements.txt
MCP Configuration
To enable your MCP client to connect to the Tello drone server, add the following configuration to your mcp.json file (usually located at ~/.cursor/mcp.json or in your project directory):
{
"tello-drone": {
"url": "http://localhost:3000/sse"
}
}
This configuration allows MCP-enabled tools and models to automatically discover and connect to your Tello drone server.
Usage
-
Connect to your Tello drone’s WiFi network (usually starts with “TELLO-”).
-
Start the MCP server:
sudo python tello_mcp.py
The server will:
- Initialize connection with the Tello drone
- Start the MCP server on
http://0.0.0.0:3000 - Set up SSE endpoint at
/sse - Handle messages at
/message
Ensure the server is running before you plan to use it in your client (cursor, windsurf, code).
Available Tools
The server provides the following MCP tools:
1. Takeoff
{
"name": "takeoff",
"description": "Commands the Tello drone to take off",
"inputSchema": {
"type": "object",
"properties": {}
}
}
2. Land
{
"name": "land",
"description": "Commands the Tello drone to land",
"inputSchema": {
"type": "object",
"properties": {}
}
}
3. Move
{
"name": "move",
"description": "Moves the Tello drone in a specified direction",
"inputSchema": {
"type": "object",
"properties": {
"direction": {
"type": "string",
"enum": ["up", "down", "left", "right", "forward", "back"]
},
"distance": {
"type": "integer",
"minimum": 20,
"maximum": 500
}
},
"required": ["direction", "distance"]
}
}
4. Rotate
{
"name": "rotate",
"description": "Rotates the Tello drone clockwise or counter-clockwise",
"inputSchema": {
"type": "object",
"properties": {
"direction": {
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →