SmartTune CLI

v1.0.0Developer Toolsstable

SmartTune CLI — Multi-platform flight log analysis & tuning advisor (ArduPilot + Betaflight + PX4)

ardupilotbetaflightclidronefft-analysis
Share:
21
Stars
0
Downloads
0
Weekly
0/5

What is SmartTune CLI?

SmartTune CLI is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to smarttune cli — multi-platform flight log analysis & tuning advisor (ardupilot + betaflight + px4)

SmartTune CLI — Multi-platform flight log analysis & tuning advisor (ArduPilot + Betaflight + PX4)

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • SmartTune CLI — Multi-platform flight log analysis & tuning

Use Cases

Analyze flight logs from ArduPilot, Betaflight, and PX4 flight controllers.
Get tuning recommendations for drones using FFT analysis.
raylanlin

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx smarttune-cli

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use SmartTune CLI

SmartTune CLI is a multi-platform flight log analysis and tuning advisor that supports ArduPilot, Betaflight, and PX4 flight controllers. Through its MCP server it exposes 13 tools covering PID analysis, FFT noise spectrum analysis, magnetometer calibration, parameter validation, and plot generation, allowing AI assistants to ingest flight log files and produce actionable tuning recommendations. Drone pilots and firmware developers can connect SmartTune to Claude or other MCP clients to diagnose oscillations, vibration issues, and filter settings without manually parsing raw binary logs.

Prerequisites

  • Python 3.9 or higher
  • pip package manager
  • Flight log files in ArduPilot (.bin), Betaflight (.bfl), or PX4 (.ulg) format
  • An MCP-compatible client such as Claude Desktop or VS Code with MCP support
1

Install SmartTune CLI with MCP support

Install the package from GitHub with the optional mcp and all extras to get the full MCP server functionality and all supported log parsers.

pip install "git+https://github.com/raylanlin/smarttune-cli.git#egg=smarttune[all,mcp]"
2

Verify the installation

Confirm that the smarttune-mcp command is available on your PATH after installation.

smarttune-mcp --help
3

Configure file access boundaries

The MCP server restricts which directories it can read. Set SMARTTUNE_MCP_ALLOWED_ROOTS to a colon-separated list of directories containing your flight logs, and optionally cap the file size with SMARTTUNE_MCP_MAX_FILE_MB.

export SMARTTUNE_MCP_ALLOWED_ROOTS="/home/user/logs:/tmp"
export SMARTTUNE_MCP_MAX_FILE_MB="300"
4

Test the MCP server

Start the server in STDIO mode to verify it launches without errors before connecting an MCP client.

smarttune-mcp
5

Add to your MCP client configuration

Register SmartTune in your claude_desktop_config.json or VS Code mcp.json, passing the allowed-roots and file-size env vars.

SmartTune CLI Examples

Client configuration

Claude Desktop configuration for SmartTune CLI, restricting log file access to specific directories.

{
  "mcpServers": {
    "smarttune": {
      "command": "smarttune-mcp",
      "args": [],
      "env": {
        "SMARTTUNE_MCP_ALLOWED_ROOTS": "/home/user/logs:/tmp",
        "SMARTTUNE_MCP_MAX_FILE_MB": "300"
      }
    }
  }
}

Prompts to try

Example prompts that leverage SmartTune's 13 MCP tools for flight log analysis and tuning recommendations.

- "Analyze the ArduPilot log at /home/user/logs/flight01.bin and give me a full tuning report"
- "Run an FFT analysis on my Betaflight log and identify the dominant noise frequencies"
- "Validate the PID parameters in my PX4 log and flag any unsafe values"
- "Check the magnetometer calibration quality in flight01.bin and recommend corrections"
- "Generate a plot of roll and pitch oscillations from my last ArduPilot flight"

Troubleshooting SmartTune CLI

Permission denied or 'file not in allowed roots' error when analyzing a log

Ensure the directory containing your log file is listed in SMARTTUNE_MCP_ALLOWED_ROOTS. Use absolute paths and separate multiple directories with a colon on Linux/macOS or semicolon on Windows.

File size limit exceeded error for large log files

Increase SMARTTUNE_MCP_MAX_FILE_MB to a higher value (e.g., 500 or 1000) in the env block of your MCP client configuration.

ImportError for optional log parser dependency

Reinstall with all extras enabled: pip install "git+https://github.com/raylanlin/smarttune-cli.git#egg=smarttune[all,mcp]"

Frequently Asked Questions about SmartTune CLI

What is SmartTune CLI?

SmartTune CLI is a Model Context Protocol (MCP) server that smarttune cli — multi-platform flight log analysis & tuning advisor (ardupilot + betaflight + px4) It connects AI assistants to external tools and data sources through a standardized interface.

How do I install SmartTune CLI?

Follow the installation instructions on the SmartTune CLI GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with SmartTune CLI?

SmartTune CLI works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is SmartTune CLI free to use?

Yes, SmartTune CLI is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "smarttune-cli": { "command": "npx", "args": ["-y", "smarttune-cli"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use SmartTune CLI?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides