Tello Drone MCP Server
Enables controlling a Tello drone through natural language commands in Claude. Supports takeoff, landing, movement, photo capture, and battery monitoring.
README
Tello Drone MCP Server - Mac Setup Guide
Prerequisites
-
Python 3.10 or higher - Check your version:
python3 --version -
Homebrew (optional, but recommended for installing Python if needed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step-by-Step Setup
1. Create Project Directory
mkdir ~/tello-mcp
cd ~/tello-mcp
2. Create a Virtual Environment (Recommended)
python3.12 -m venv venv
source venv/bin/activate
3. Install Dependencies
pip install mcp djitellopy opencv-python
4. Make the Server Script executable
chmod +x tello_server.py
5. Test the Server (Optional)
Before configuring Claude, you can test that everything works:
# Make sure you're in the virtual environment
source ~/tello-mcp/venv/bin/activate
# Turn on your Tello and connect to its WiFi first!
# Run the server
python tello_server.py
Press Ctrl+C to stop when done testing.
Configure Claude Desktop
Location of claude_desktop_config.json on Mac
The config file is located at:
~/Library/Application Support/Claude/claude_desktop_config.json
Open the Config File
Option 1: Using Terminal
# Create the directory if it doesn't exist
mkdir -p ~/Library/Application\ Support/Claude
# Open in your default text editor
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
Option 2: Using Finder
- Open Finder
- Press
Cmd + Shift + G(Go to Folder) - Paste:
~/Library/Application Support/Claude - Open
claude_desktop_config.jsonwith TextEdit or VS Code
Option 3: Using nano (command line editor)
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the Configuration
If the file is empty or doesn't exist, add this:
{
"mcpServers": {
"tello-drone": {
"command": "/Users/YOUR_USERNAME/tello-mcp/venv/bin/python",
"args": [
"/Users/YOUR_USERNAME/tello-mcp/tello_server.py"
]
}
}
}
Replace YOUR_USERNAME with your actual Mac username!
Find Your Username
If you're not sure of your username:
echo $USER
Or use the ~ shortcut (though absolute paths are more reliable):
# Get the full path
echo ~/tello-mcp/venv/bin/python
echo ~/tello-mcp/tello_server.py
Alternative: Using System Python
If you prefer not to use a virtual environment:
{
"mcpServers": {
"tello-drone": {
"command": "python3",
"args": [
"/Users/YOUR_USERNAME/tello-mcp/tello_server.py"
]
}
}
}
Using the Tello with Claude
1. Connect to Tello WiFi
- Turn on your Tello drone
- Go to Mac WiFi settings
- Connect to the Tello network (usually named
TELLO-XXXXXX)
2. Restart Claude Desktop
Quit and restart Claude Desktop for the configuration to take effect.
3. Start Flying!
Try these commands in Claude:
- "Connect to my Tello drone"
- "What's the battery level?"
- "Take off"
- "Move forward 50 centimeters"
- "Take a photo"
- "Land"
Troubleshooting
"Command not found" error
- Make sure the paths in the config are absolute (start with
/Users/) - Verify the Python path:
which python3 - Check that tello_server.py exists:
ls ~/tello-mcp/tello_server.py
"Module not found" error
- Activate your virtual environment:
source ~/tello-mcp/venv/bin/activate - Reinstall dependencies:
pip install mcp djitellopy opencv-python - Make sure you're using the venv Python in the config
Can't connect to drone
- Verify you're connected to Tello WiFi
- Check the drone is powered on and the lights are blinking
- Try pinging the drone:
ping 192.168.10.1
Photos not saving
The photos will save to the directory where you run Claude from. To specify a location, modify the take_photo function in tello_server.py to use an absolute path:
filename = arguments.get("filename", "/Users/YOUR_USERNAME/tello-mcp/photos/tello_photo.jpg")
Quick Reference
Activate virtual environment:
source ~/tello-mcp/venv/bin/activate
Deactivate virtual environment:
deactivate
View Claude logs (if there are issues):
tail -f ~/Library/Logs/Claude/mcp*.log
Config file location:
~/Library/Application Support/Claude/claude_desktop_config.json
Debug
The Tello sends two types of communication:
Command responses (working ?) - on UDP port 8889 State data stream (working ?) - on UDP port 8890
Find what's using a port, for example 8889:
lsof -i :8889
# You'll see output like:
# COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
# Python 1234 linsun 3u IPv4 0x... 0t0 UDP *:8889
# Kill that process (replace 1234 with the actual PID)
kill -9 1234
If 8889 works but 8890 doesn't, macOS might be blocking UDP port 8890.
Safety Reminders
- Always fly in an open area away from people and obstacles
- Keep the drone in visual line of sight
- Monitor battery levels (don't fly below 20%)
- Have a clear landing area
- The emergency stop cuts motors immediately - use only in real emergencies
Happy flying! 🚁
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。