AI代理获取收盘市场数据 - Marketstack工具MCP服务器
中级
这是一个AI领域的自动化工作流,包含 8 个节点。主要使用 MarketstackTool、McpTrigger 等节点,结合人工智能技术实现智能自动化。 AI代理通过Marketstack工具MCP服务器获取收盘市场数据
前置要求
- •AI 服务 API Key(如 OpenAI、Anthropic 等)
使用的节点 (8 个)
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "cd59eaaeb7b34d06e24511380db94cdb7fbce6037cc4de22e539c5158ab9cdfc"
},
"nodes": [
{
"id": "72c021e9-b1a5-48d5-98e3-c59278dc8d66",
"name": "工作流概览 0",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1460,
-60
],
"parameters": {
"width": 420,
"height": 820,
"content": "## 🛠️ Marketstack Tool MCP 服务器"
},
"typeVersion": 1
},
{
"id": "bf56d816-478e-4745-9f63-8d4cb063ab74",
"name": "Marketstack Tool MCP 服务器",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"position": [
-700,
-60
],
"webhookId": "a69e1598-9069-4e24-b62b-c6bd02d3ceaa",
"parameters": {
"path": "marketstack-tool-mcp"
},
"typeVersion": 1
},
{
"id": "40a928b6-95be-46ec-b836-1acffdf482eb",
"name": "获取多个日终数据",
"type": "n8n-nodes-base.marketstackTool",
"position": [
-800,
140
],
"parameters": {
"limit": "={{ $fromAI('Limit', ``, 'number') }}",
"filters": {},
"symbols": "={{ $fromAI('Symbols', ``, 'string') }}",
"returnAll": "={{ $fromAI('Return_All', ``, 'boolean') }}"
},
"credentials": {},
"typeVersion": 1
},
{
"id": "e9760cd3-5040-4540-8d80-e454c91a8685",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
120
],
"parameters": {
"color": 4,
"width": 400,
"content": "## Endofdaydata"
},
"typeVersion": 1
},
{
"id": "1d1009d4-2550-40f1-8898-9f852a51ebf8",
"name": "获取交易所",
"type": "n8n-nodes-base.marketstackTool",
"position": [
-800,
380
],
"parameters": {
"exchange": "={{ $fromAI('Exchange', ``, 'string') }}",
"resource": "exchange"
},
"credentials": {},
"typeVersion": 1
},
{
"id": "a9486b80-8efe-4f31-ac1c-d63c5ad71d30",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
360
],
"parameters": {
"color": 5,
"width": 400,
"content": "## Exchange"
},
"typeVersion": 1
},
{
"id": "c9927486-c562-4224-9644-c1e99e3e7bdd",
"name": "获取股票代码",
"type": "n8n-nodes-base.marketstackTool",
"position": [
-800,
620
],
"parameters": {
"symbol": "={{ $fromAI('Symbol', ``, 'string') }}",
"resource": "ticker"
},
"credentials": {},
"typeVersion": 1
},
{
"id": "61be9fc7-6369-4fec-91ef-1c158df8316c",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1000,
600
],
"parameters": {
"color": 6,
"width": 400,
"content": "## Ticker"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Get a ticker": {
"ai_tool": [
[
{
"node": "Marketstack Tool MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get an exchange": {
"ai_tool": [
[
{
"node": "Marketstack Tool MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get many EoD data": {
"ai_tool": [
[
{
"node": "Marketstack Tool MCP Server",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
TheHive 工具 MCP 服务器
TheHive 工具 MCP 服务器
The Hive Tool
Mcp Trigger
7 节点David Ashby
AI
SyncroMSP 工具 MCP 服务器
SyncroMSP 工具 MCP 服务器 - 支持全部 20 种操作
Syncro Msp Tool
Mcp Trigger
26 节点David Ashby
AI
Strava 工具 MCP 服务器
Strava 工具 MCP 服务器 - 支持全部 9 种操作
Strava Tool
Mcp Trigger
12 节点David Ashby
AI
Strapi 工具 MCP 服务器
Strapi 工具 MCP 服务器 - 支持 5 种操作
Strapi Tool
Mcp Trigger
8 节点David Ashby
AI
Storyblok 工具 MCP 服务器
Storyblok 工具 MCP 服务器 - 支持全部 7 种操作
Storyblok Tool
Mcp Trigger
8 节点David Ashby
AI
Spotify 工具 MCP 服务器
Spotify 工具 MCP 服务器 - 支持全部 30 种操作
Spotify Tool
Mcp Trigger
39 节点David Ashby
AI
工作流信息
难度等级
中级
节点数量8
分类1
节点类型3
作者
David Ashby
@cfomodzA 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 上查看 →
分享此工作流