Skip to main content
Glama
Flix MCP Server

Flix MCP Server

Official
by flix-pro

Flix MCP Server

🚀 MCP (Model Context Protocol) 服务器实现,为 Flix 局域网文件传输应用提供 AI 模型调用接口。

TypeScript Node.js License

✨ 特性亮点

  • 🔍 设备发现 - 自动发现局域网内的 Flix 设备

  • 📨 消息传输 - 发送/接收文本消息

  • 📁 文件传输 - 支持断点续传的文件收发

  • 📋 剪贴板同步 - 跨设备剪贴板同步

  • 🔒 设备管理 - 设备配对、黑名单管理

  • 🤖 AI 集成 - 与 Claude Desktop 等 AI 客户端无缝集成

Related MCP server: Pico AI Bridge

📦 快速开始

安装和构建

# 克隆项目
git clone <repository-url>
cd flix-mcp

# 安装依赖
npm install

# 构建项目
npm run build

# 启动服务
npm start

验证运行

# 检查健康状态
curl http://localhost:8765/health

# 预期输出
{"status":"ok","deviceId":"...","deviceName":"Flix MCP Server"}

配置

创建 .env 文件:

# 服务配置
PORT=8765
DEVICE_NAME=Flix MCP Server

# 文件传输配置
MAX_FILE_SIZE=10737418240  # 10GB
AUTO_RECEIVE=false
DOWNLOAD_DIR=./downloads

# 安全配置
REQUIRE_PAIRING=true

🤖 与 Claude Desktop 集成

在 Claude Desktop 配置文件中添加:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "flix": {
      "command": "node",
      "args": ["/absolute/path/to/flix-mcp/dist/index.js"],
      "env": {
        "DEVICE_NAME": "Claude Flix",
        "AUTO_RECEIVE": "true"
      }
    }
  }
}

重启 Claude Desktop 后,你就可以:

用户: 发现局域网内的 Flix 设备
Claude: [调用 flix_discover_devices 工具]

用户: 把文件 ~/Documents/report.pdf 发送到我的 iPad
Claude: [调用 flix_send_file 工具]

用户: 同步剪贴板到我的 iPhone
Claude: [调用 flix_sync_clipboard 工具]

MCP Tools

设备管理

  • flix_discover_devices - 发现局域网设备

  • flix_get_device - 获取设备详情

  • flix_pair_device - 设备配对

  • flix_block_device - 拉黑设备

  • flix_unblock_device - 解除拉黑

消息传输

  • flix_send_text - 发送文本消息

  • flix_get_messages - 获取消息列表

文件传输

  • flix_send_file - 发送文件

  • flix_receive_file - 接收文件

  • flix_get_transfer_status - 查询传输状态

  • flix_cancel_transfer - 取消传输

  • flix_pause_transfer - 暂停传输

  • flix_resume_transfer - 恢复传输

剪贴板同步

  • flix_sync_clipboard - 同步剪贴板

  • flix_get_clipboard - 获取剪贴板内容

📚 文档

🛠️ 开发

# 开发模式(自动重载)
npm run dev

# 运行测试
npm test

# 代码检查
npm run lint

# 构建
npm run build

🐳 Docker 部署

# 使用 Docker Compose(推荐)
docker-compose up -d

# 或手动构建
docker build -t flix-mcp .
docker run -d --network host -v $(pwd)/downloads:/app/downloads flix-mcp

注意: 使用 --network host 以支持 UDP 组播发现。

📊 项目状态

✅ 完全实现 - 所有核心功能已完成 ✅ 生产就绪 - 完善的错误处理和测试 ✅ 文档完善 - 详细的使用文档和示例 ✅ 构建成功 - TypeScript 编译通过

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📄 许可证

MIT License


🎉 项目已完成,可以立即投入使用!

如有问题,请查看 USAGE.md 的故障排查章节。

Available Tools

16 tools
flix_block_deviceC

Block a Flix device

Inputs: deviceId (required).

flix_cancel_transferA

Cancel an ongoing file transfer

Inputs: transferId (required).

flix_discover_devicesA

Discover Flix devices in the local network

Inputs: timeout.

flix_get_clipboardB

Get current clipboard content

Inputs: no named parameters.

flix_get_deviceB

Get detailed information about a specific device

Inputs: deviceId (required).

flix_get_messagesC

Get message history

Inputs: deviceId, unreadOnly.

flix_get_transfer_statusC

Get file transfer status

Inputs: transferId (required).

flix_pair_deviceC

Pair with a Flix device

Inputs: deviceId (required).

flix_pause_transferB

Pause an ongoing file transfer

Inputs: transferId (required).

flix_receive_fileC

Accept and receive a file transfer

Inputs: transferId (required).

flix_resume_transferB

Resume a paused file transfer

Inputs: transferId (required).

flix_send_fileB

Send a file to a Flix device

Inputs: deviceId (required), filePath (required).

flix_send_textB

Send a text message to a Flix device

Inputs: text (required), deviceId (required).

flix_sync_clipboardC

Sync clipboard content to a Flix device

Inputs: deviceId (required).

flix_unblock_deviceC

Unblock a Flix device

Inputs: deviceId (required).

flix_unpair_deviceC

Unpair from a Flix device

Inputs: deviceId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool targets a distinct action on a distinct resource: device discovery/info, pairing, blocking, messaging, file transfer control, and clipboard sync. Even paired tools like send_text/send_file or sync_clipboard/get_clipboard are clearly separated by purpose, leaving no ambiguity.

    Naming Consistency5/5

    All tool names follow a uniform flix_<verb>_<noun> pattern, with consistent verb choices like get, send, pair, block. The prefix and structure are predictable, making it easy to infer behavior from the name alone.

    Tool Count5/5

    16 tools might exceed the typical 3-15 range, but each tool earns its place in a comprehensive device management server. The count is well-scoped across six logical domains (discovery, pairing, blocking, messaging, file transfer, clipboard) with no redundant tools.

    Completeness5/5

    The tool surface covers the full lifecycle for device interactions: discover, pair, block, send/receive text and files, manage transfers (status/cancel/pause/resume), and sync clipboard. No obvious gaps for the stated purpose of controlling and communicating with Flix devices.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Multi-model AI conversation MCP for Claude Desktop. Seamlessly integrate with GPT-4, Gemini, xAI, Perplexity, and local models via Ollama.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude Desktop and Claude Code to call models on a Pico AI Server via a local stdio MCP connection. Provides tools for checking server connectivity, listing and comparing models, and generating responses through Responses, chat completions, and Ollama chat APIs.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables Claude Code to call local generative AI services on a LAN, letting users list and chat with Ollama models and list checkpoints, LoRAs, and samplers or generate and save images via Stable Diffusion WebUI Forge Neo. Requests can be made in natural language, with per-call options for model, image size, and Hires.fix settings.
      1
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables Claude Code to hand reviews, second opinions and tasks to the Codex and Antigravity desktop apps on one Windows PC and receive their answers back, without copy-pasting between apps. Each agent keeps working in its own app, with message threading, reply waiting, file reservations and delivery tracking over a local daemon.
      20
      1
      MIT