AI Stock Analysis & Ranking Tool Server using Danelfin API - n8n Workflow

Deploy an advanced n8n workflow using the Danelfin AI API to provide real-time stock rankings, sector analysis, and industry insights directly to your AI agents via an n8n trigger. Leverage this powerful n8n template for finance automation.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

AI Developers and Prompt Engineers: Those building sophisticated AI agents that require access to specialized, real-time financial market data and predictive scores.
Financial Technology (FinTech) Professionals: Users who need to integrate AI-powered stock analysis directly into their applications or internal systems using a robust n8n workflow.
Algorithmic Traders: Individuals or firms looking to automate the retrieval of Danelfin's AI scores and rankings for use in trading algorithms.
n8n Automation Specialists: Users seeking advanced examples of using the n8n Model Context Protocol (MCP) trigger and dedicated tool nodes.

Overview

This specialized n8n workflow is designed to bridge the gap between AI assistants and proprietary financial data. By utilizing the Model Context Protocol (MCP) feature available within n8n, this system turns three key Danelfin API endpoints into callable tools for any connected AI agent. Danelfin provides explainable AI-driven stock analytics, making these endpoints highly valuable for investment decision-making. Setting up this n8n template allows developers to secure and manage API access centrally via the n8n node infrastructure, enabling their agents to dynamically ask questions like 'What are the top ranked stocks?' or 'Analyze the performance of the tech sector' and receive immediate, data-backed responses from the n8n workflow. This significantly enhances the capabilities of any AI system focused on finance, making it a powerful foundation for a financial analysis n8n node setup.

How it Works

This powerful n8n workflow begins with the Model Context Protocol (MCP) n8n trigger node. This n8n trigger sets up a webhook endpoint (/danelfin-api) that listens for requests from an external AI agent or language model.


  1. AI Agent Request: When the AI agent receives a query related to stock ranking, sectors, or industries, it consults the list of available tools provided by the n8n trigger.

  2. Tool Selection: Based on the user's query, the AI agent selects the appropriate tool: ranking, sectors, or industries.

  3. Execution via n8n Node: The agent sends the request details to the n8n trigger. The n8n workflow then executes the corresponding HTTP Request n8n node (e.g., the ranking node).

  4. API Call: This n8n node sends a properly authenticated request to the Danelfin API (https://apirest.danelfin.com/...).

  5. Data Return: The Danelfin API returns the requested stock data, rankings, or sector analysis, which is then relayed back through the n8n trigger to the originating AI agent for final synthesis and presentation to the user. This structured use of the n8n node architecture ensures robust data access.

Installation Guide

To deploy this comprehensive n8n workflow, follow these steps:


  1. Import the JSON: Copy the provided n8n workflow JSON data and paste it directly into your n8n instance using the 'New' -> 'Import from JSON' option.

  2. Set Up Danelfin Credentials: The workflow requires credentials for the Danelfin API, secured using HTTP Header Authentication.

Click on the red warning icon or the credential field within the 'Danelfin mcp' n8n trigger node.
Create a new 'HTTP Header Auth' credential.
* The Danelfin API typically requires an API Key passed in a header (e.g., X-API-KEY). Configure the header name and paste your unique key as the value.

  1. Activate the Workflow: Ensure all n8n node connections are green and correct, then set the 'Danelfin mcp' n8n trigger node to 'Active'.

  2. Get the Webhook URL: The URL provided by the 'Danelfin mcp' n8n trigger is the endpoint you must provide to your external AI agent or Language Model platform to register these tools.

Node Details

Danelfin mcp (MCP Trigger Node)
Function: Acts as the starting n8n trigger and host for the Model Context Protocol server. It exposes the subsequent HTTP Request tools to the external AI model.
Key Configuration: Path is set to /danelfin-api. It uses HTTP Header Authentication to secure access to the n8n workflow.
ranking (HTTP Request Tool Node)
Function: Provides the AI agent with the ability to query Danelfin's AI-powered stock rankings and ratings. This is a crucial n8n node for fetching high-level investment intelligence.
Key Configuration: Target URL is https://apirest.danelfin.com/ranking. It includes dynamic query parameter fields to accept input from the AI agent.
sectors (HTTP Request Tool Node)
Function: Allows the AI agent to retrieve analysis for US market stocks categorized by market sectors, including AI ratings and technical/fundamental analysis. This n8n node facilitates detailed sectoral performance checks.
Key Configuration: Target URL is https://apirest.danelfin.com/sectors. Uses the same generic HTTP Header Authentication setup as the n8n trigger.
industries (HTTP Request Tool Node)
Function: Offers granular industry-level analysis within market sectors, providing specific stock ratings and performance metrics for industry verticals, enhancing the depth of this n8n workflow analysis.
Key Configuration: Target URL is https://apirest.danelfin.com/industries.

Related n8n Workflows

Free

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

Automation expert & n8n power user. I build advanced workflows combining AI, outbound, and business logic. Grab my templates or reach out for custom builds.

Featured*