返回市场
鹰-MCP服务器

鹰-MCP服务器

作者:tuki09187 星标更新:2025-10-23

项目介绍

Eagle MCP Server(非官方)

[!NOTE] Eagle v5(计划于2026年第一季度公开测试版)将支持官方MCP

适用于Eagle的模型上下文协议(MCP)服务器。

<details> <summary>支持的文件格式:</summary>
  • JPG / JPEG
  • PNG
  • PDF
  • SVG
  • MP4
  • MP3
  • FBX
  • OBJ
  • EPS
  • TIF / TIFF
  • WebP
  • BMP
  • ICO
  • RAW
  • 等等
</details>

要求

  • Python 3.13
  • uv

预备条件

安装所需的依赖项:

uv sync

使用方法

  1. 启动 Eagle 应用程序。
  2. 运行以下命令启动此MCP服务器:
uv run main.py

使用Streamable HTTP连接到MCP服务器

MCP配置:

{
  "mcpServers": {
    "eagle-mcp-server": {
      "url": "http://localhost:8000/mcp"
    }
  }
}
<details> <summary>如果需要使用stdio传输:</summary>
{
  "mcpServers": {
    "eagle-m-服务器": {
      "command": "uvx",
      "args": [
        "--from", "git+https://github.com/tuki0918/eagle-mcp-server@fastmcp-stdio",
        "eagle-mcp-server"
      ]
    }
  }
}

详情参见#17

</details>

工具

支持Eagle API端点操作ID默认启用类别
-connectMCP
/api/application/infoget_application_info⚫︎Application
/api/folder/createcreate_folder⚫︎Folder
/api/folder/renamerename_folderFolder
/api/folder/updateupdate_folder⚫︎Folder
/api/folder/listget_folder_list⚫︎Folder
/api/folder/listRecentget_folder_list_recentFolder
/api/item/addFromURLadd_item_from_urlItem
/api/item/addFromURLsadd_items_from_urlsItem
/api/item/addFromPathadd_item_from_path⚫︎Item
/api/item/addFromPathsadd_items_from_pathsItem
/api/item/addBookmarkadd_bookmarkItem
/api/item/infoget_item_info⚫︎Item
-get_item_source⚫︎Item
/api/item/thumbnailget_item_thumbnailItem
/api/item/listget_item_list⚫︎Item
/api/item/moveToTrashmove_item_to_trash⚫︎Item
/api/item/refreshPaletterefresh_item_paletteItem
/api/item/refreshThumbnailrefresh_item_thumbnailItem
/api/item/updateupdate_item⚫︎Item
/api/library/infoget_library_info⚫︎Library
/api/library/historyget_library_historyLibrary
/api/library/switchswitch_libraryLibrary
/api/library/iconget_library_iconLibrary

MCP服务器API文档:

启用禁用的工具

某些工具默认是禁用的(在“默认启用”列中显示为空白单元格)。要启用这些禁用的工具:

  1. 在源代码中找到工具定义。
  2. 从工具配置中移除 tags=["Disabled"] 行。
  3. 重启MCP服务器。

这将使之前禁用的工具可用。

使用场景

1) 同一主机(推荐)

flowchart LR

    subgraph 192.168.1.100
        direction LR
        
        subgraph FileSystem [文件系统]
        end
        subgraph EagleApp [Eagle应用<br/>localhost:41595]
        end
        subgraph MCPServer [MCP服务器<br/>localhost:8000]
        end
        subgraph MCPClient [MCP客户端]
        end
    end

    EagleApp ==> MCPServer e1@==> MCPClient
    MCPClient e2@==> MCPServer ==> EagleApp
    EagleApp ==> FileSystem
    FileSystem ==> EagleApp

    e1@{ animate: true }
    e2@{ animate: true }

[!TIP] 您可以直接访问文件系统。

2) 其他主机(MCP客户端)+ 同一主机(MCP服务器,Eagle应用)

flowchart LR
  
    subgraph 1192.168.1.100
        subgraph FileSystem [文件系统]
        end
        subgraph EagleApp [Eagle应用<br/>localhost:41595]
        end
        subgraph MCPServer [MCP服务器<br/>localhost:8000]
        end
    end

    subgraph 192.168.1.xxx
        subgraph MCPClient [MCP客户端]
        end
    end

    EagleApp ==> MCPServer e1@==> MCPClient
    MCPClient e2@==> MCPServer ==> EagleApp
    EagleApp ==> FileSystem
    FileSystem ==> EagleApp

    e1@{ animate: true }
    e2@{ animate: true }

[!WARNING] 您无法访问文件系统。

3) 其他主机

flowchart LR

    subgraph 192.168.1.100
        subgraph FileSystem [文件系统]
        end
        subgraph EagleApp [Eagle应用<br/>localhost:41595]
        end
    end

    subgraph 192.168.1.101
        subgraph MCPServer [MCP服务器<br/>localhost:8000]
        end
    end

    subgraph 192.168.1.xxx
        subgraph MCPClient [MCP客户端]
        end
    end

    EagleApp ==> MCPServer e1@==> MCPClient
    MCPClient e2@==> MCPServer ==> EagleApp
    EagleApp ==> FileSystem
    FileSystem ==> EagleApp

    e1@{ animate: true }
    e2@{ animate: true }

[!WARNING] 您无法访问文件系统。