8
n8n 中文网amn8n.com

颜色名称API MCP服务器

中级

这是一个Engineering, AI RAG领域的自动化工作流,包含 10 个节点。主要使用 HttpRequestTool, McpTrigger 等节点。 通过MCP服务器连接颜色名称API与AI代理

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "mv1y6rH9rcvO6FgN",
  "meta": null,
  "name": "颜色名称API MCP服务器",
  "tags": [],
  "nodes": [
    {
      "id": "ba19ce5e-4a48-4b7b-bb32-2b7a0196fd55",
      "name": "工作流概览",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1540,
        -140
      ],
      "parameters": {
        "width": 580,
        "height": 1280,
        "content": "## 🛠️ 颜色名称API MCP服务器 ✅ 4个操作"
      },
      "typeVersion": 1
    },
    {
      "id": "4f171b0e-b19a-48d1-9811-02b96abb489e",
      "name": "颜色名称API MCP服务器",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -580,
        -140
      ],
      "webhookId": "e63ee384-4bbe-4099-8176-c204c993f82a",
      "parameters": {
        "path": "color-name-api-mcp"
      },
      "typeVersion": 1
    },
    {
      "id": "18e7cb1e-ac5c-4dc8-8477-08e3fa70ba9d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        100
      ],
      "parameters": {
        "color": 2,
        "width": 300,
        "height": 180,
        "content": "##"
      },
      "typeVersion": 1
    },
    {
      "id": "376f8798-4071-4285-846f-7301c756b900",
      "name": "获取默认颜色名称列表的所有颜色",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -780,
        120
      ],
      "parameters": {
        "url": "=https://api.color.pizza/v1//",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "list",
              "value": "={{ $fromAI('list', 'The name of the color name list to use', 'string') }}"
            },
            {
              "name": "values",
              "value": "={{ $fromAI('values', 'The hex values of the colors to retrieve without '#'', 'string') }}"
            },
            {
              "name": "noduplicates",
              "value": "={{ $fromAI('noduplicates', 'Allow duplicate names or not', 'boolean') }}"
            }
          ]
        },
        "toolDescription": "Get all colors of the default color name list\n\nParameters:\n- Query parameters:\n  • list (optional) - The name of the color name list to use\n  • values (optional) - The hex values of the colors to retrieve without '#'\n  • noduplicates (optional) - Allow duplicate names or not"
      },
      "typeVersion": 4.2
    },
    {
      "id": "2d0765fc-10bf-4b29-84aa-3c595241591d",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        400
      ],
      "parameters": {
        "color": 3,
        "width": 300,
        "height": 180,
        "content": "## 列表"
      },
      "typeVersion": 1
    },
    {
      "id": "8226c2ae-b9b1-4d56-bf68-3dd3224d1c35",
      "name": "获取默认颜色名称列表的所有颜色 1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -780,
        420
      ],
      "parameters": {
        "url": "=https://api.color.pizza/v1//lists/",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "toolDescription": "Get all colors of the default color name list"
      },
      "typeVersion": 4.2
    },
    {
      "id": "d3c92726-4bba-416b-abc7-1ab33b57a999",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        680
      ],
      "parameters": {
        "color": 4,
        "width": 300,
        "height": 180,
        "content": "## 名称"
      },
      "typeVersion": 1
    },
    {
      "id": "c0194bb8-670b-4828-886d-a5d30b3fb3ea",
      "name": "获取默认颜色名称列表的所有颜色 2",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -780,
        700
      ],
      "parameters": {
        "url": "=https://api.color.pizza/v1//names/",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "name",
              "value": "={{ $fromAI('name', 'The name of the color to retrieve (min 3 characters)', 'string') }}"
            },
            {
              "name": "list",
              "value": "={{ $fromAI('list', 'The name of the color name list to use', 'string') }}"
            }
          ]
        },
        "toolDescription": "Get all colors of the default color name list\n\nParameters:\n- Query parameters:\n  • name (required) - The name of the color to retrieve (min 3 characters)\n  • list (optional) - The name of the color name list to use"
      },
      "typeVersion": 4.2
    },
    {
      "id": "7539ee10-f262-4b1e-97d9-8ed457f4b468",
      "name": "便签说明4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        960
      ],
      "parameters": {
        "color": 5,
        "width": 300,
        "height": 180,
        "content": "## 色板"
      },
      "typeVersion": 1
    },
    {
      "id": "c18a6447-4697-40c4-a5ff-b33da2c78ed0",
      "name": "为任何颜色生成色板",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -780,
        980
      ],
      "parameters": {
        "url": "=https://api.color.pizza/v1//swatch/",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "color",
              "value": "={{ $fromAI('color', 'The hex value of the color to retrieve without '#'', 'string') }}"
            },
            {
              "name": "name",
              "value": "={{ $fromAI('name', 'The name of the color', 'string') }}"
            }
          ]
        },
        "toolDescription": "Generate a color swatch for any color\n\nParameters:\n- Query parameters:\n  • color (required) - The hex value of the color to retrieve without '#'\n  • name (optional) - The name of the color"
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "shared": [
    {
      "role": "workflow:owner",
      "project": {
        "id": "G5fce9xGuBAsWBXe",
        "icon": null,
        "name": "David Ashby <david.ashby.lds@gmail.com>",
        "type": "personal",
        "createdAt": "2025-06-04T02:55:02.013Z",
        "updatedAt": "2025-06-04T02:56:01.361Z",
        "projectRelations": [
          {
            "role": "project:personalOwner",
            "user": {
              "id": "715c1c00-cb48-4712-9a32-f1f4b6db2b30",
              "role": "global:owner",
              "email": "david.ashby.lds@gmail.com",
              "disabled": false,
              "lastName": "Ashby",
              "settings": {
                "npsSurvey": {
                  "responded": true,
                  "lastShownAt": 1749357655581
                },
                "userActivated": true,
                "userActivatedAt": 1749075994495,
                "easyAIWorkflowOnboarded": true,
                "firstSuccessfulWorkflowId": "3N3vVikZb3MckFYm"
              },
              "createdAt": "2025-06-04T02:55:01.745Z",
              "firstName": "David",
              "isPending": false,
              "updatedAt": "2025-06-08T04:40:58.399Z",
              "mfaEnabled": false,
              "personalizationAnswers": {
                "version": "v4",
                "personalization_survey_n8n_version": "1.95.3",
                "personalization_survey_submitted_at": "2025-06-04T02:56:07.075Z"
              }
            },
            "userId": "715c1c00-cb48-4712-9a32-f1f4b6db2b30",
            "createdAt": "2025-06-04T02:55:02.013Z",
            "projectId": "G5fce9xGuBAsWBXe",
            "updatedAt": "2025-06-04T02:55:02.013Z"
          }
        ]
      },
      "createdAt": "2025-06-30T17:16:52.053Z",
      "projectId": "G5fce9xGuBAsWBXe",
      "updatedAt": "2025-06-30T17:16:52.053Z",
      "workflowId": "mv1y6rH9rcvO6FgN"
    }
  ],
  "pinData": {},
  "settings": {
    "timezone": "America/New_York"
  },
  "createdAt": "2025-06-30T17:16:52.051Z",
  "updatedAt": "2025-06-30T17:20:16.000Z",
  "versionId": "fa8f1f8d-2ceb-49e1-8ed0-8f7b0441b35a",
  "isArchived": false,
  "staticData": null,
  "connections": {
    "Generate a color swatch for any color": {
      "ai_tool": [
        [
          {
            "node": "Color Name API MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get all colors of the default color name list": {
      "ai_tool": [
        [
          {
            "node": "Color Name API MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get all colors of the default color name list 1": {
      "ai_tool": [
        [
          {
            "node": "Color Name API MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get all colors of the default color name list 2": {
      "ai_tool": [
        [
          {
            "node": "Color Name API MCP Server",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "triggerCount": 0
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 工程, AI RAG 检索增强

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量10
分类2
节点类型3
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
David Ashby

David Ashby

@cfomodz

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord

外部链接
在 n8n.io 查看

分享此工作流