AIエージェントによる終値市場データ取得 - MarketstackツールMCPサーバー

中級

これはAI分野の自動化ワークフローで、8個のノードを含みます。主にMarketstackTool, McpTriggerなどのノードを使用、AI技術を活用したスマート自動化を実現。 AIエージェントがMarketstackツールMCPサーバーを通じて終値市場データを取得します

前提条件
  • AIサービスAPIキー(OpenAI、Anthropicなど)

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下の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 Server\n\n### 📋 Available Operations (3 total)\n\n**Endofdaydata**: get all\n**Exchange**: get\n**Ticker**: get\n\n### ⚙️ Setup Instructions\n\n1. **Import Workflow**: Load this workflow into your n8n instance\n\n1. **🔑 Add Credentials**: Configure Marketstack Tool authentication in one tool node then open and close all others.\n2. **🚀 Activate**: Enable this workflow to start your MCP server\n3. **🔗 Get URL**: Copy webhook URL from MCP trigger (right side)\n4. **🤖 Connect**: Use MCP URL in your AI agent configurations\n\n### ✨ Ready-to-Use Features\n\n• Zero configuration - all 3 operations pre-built\n• AI agents automatically populate parameters via `$fromAI()` expressions\n• Every resource and operation combination available\n• Native n8n error handling and response formatting\n• Modify parameter defaults in any tool node as needed\n\n### 💬 Need Help?\nCheck the [n8n documentation](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolmcp/) or ping me on [discord](https://discord.me/cfomodz) for MCP integration guidance or customizations."
      },
      "typeVersion": 1
    },
    {
      "id": "bf56d816-478e-4745-9f63-8d4cb063ab74",
      "name": "Marketstackツール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": {
    "c9927486-c562-4224-9644-c1e99e3e7bdd": {
      "ai_tool": [
        [
          {
            "node": "bf56d816-478e-4745-9f63-8d4cb063ab74",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "1d1009d4-2550-40f1-8898-9f852a51ebf8": {
      "ai_tool": [
        [
          {
            "node": "bf56d816-478e-4745-9f63-8d4cb063ab74",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "40a928b6-95be-46ec-b836-1acffdf482eb": {
      "ai_tool": [
        [
          {
            "node": "bf56d816-478e-4745-9f63-8d4cb063ab74",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - 人工知能

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数8
カテゴリー1
ノードタイプ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で表示

このワークフローを共有

カテゴリー

カテゴリー: 34