0D

0xkoda/drone-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

26 stars 6 forks Качество 52 Тренд 11

A MCP server for controlling a drone

Обзор

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. - 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) - Python 3.7+ - DJI Tello drone - Network connection to the Tello drone - Root/sudo access (required for UDP socket binding) 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): This configuration allows MCP-enabled tools and models to automatically discover and connect to your Tello drone server. 1.

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

  1. Clone this repository:
git clone 
cd drone-mcp
  1. 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

  1. Connect to your Tello drone’s WiFi network (usually starts with “TELLO-”).

  2. 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": {
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →