Blockchain Insight Agent using Nansen MCP and GPT - n8n Workflow

Deploy a specialized conversational AI agent using this n8n workflow. The agent connects GPT-4 with the Nansen MCP tool to deliver advanced, real-time blockchain intelligence via a simple chat interface. Get instant access to powerful n8n templates.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Blockchain analysts and researchers needing quick access to Nansen data.
Developers implementing AI agents in production.
Users looking for advanced examples of n8n templates utilizing Langchain and specialized tools.
Automation specialists deploying custom n8n workflows that combine proprietary data with LLMs.

Overview

Leveraging specialized AI tools to access real-time financial or blockchain data can significantly accelerate analysis. This powerful n8n workflow demonstrates how to construct a specialized AI agent that is purpose-built to interact with the Nansen Market Cap (MCP) service.

Instead of manually navigating dashboards or writing complex API calls, you simply ask a question via chat. This specific n8n workflow uses the capabilities of an advanced Langchain n8n node, powered by GPT-4, which utilizes the specialized Nansen MCP Client tool to retrieve relevant, up-to-the-minute blockchain data, returning clear, conversational answers directly to the user. This approach ensures your n8n automation is efficient, accurate, and highly responsive.

How it Works

This comprehensive n8n workflow initiates upon the reception of an incoming chat message, acting as the primary n8n trigger.


  1. Trigger Activation: The process begins with the When chat message received n8n trigger. This node captures the user's inquiry and passes the prompt to the AI core.

  2. Agent Processing: The user input flows into the AI Agent n8n node. This agent, configured as a helpful assistant, is given explicit instructions (a system message) stating that it has access to the Nansen MCP Tool for understanding blockchain activity.

  3. Reasoning and Tool Selection: The AI Agent n8n node is connected to two critical components: the OpenAI Chat Model (using a GPT-4 variant for complex reasoning) and the MCP Client (the specialized tool).

  4. Data Retrieval: Based on the user's question, the agent determines if it needs external data. If so, it executes the MCP Client tool, leveraging the configured endpoint and header authentication to query Nansen's data.

  5. Response Generation: The agent receives the data back, integrates it with its reasoning capabilities (via the LLM), and formulates a final, cohesive, and insightful answer.

  6. Final Output: The result is delivered back to the user via the original chat interface initiated by the n8n trigger.

Installation Guide

To set up this powerful n8n workflow using the provided n8n templates, follow these steps:


  1. Import the JSON: Copy the n8n workflow JSON provided and import it into your n8n instance.

  2. Set up OpenAI Credentials: Locate the OpenAI Chat Model n8n node and set up or select your existing OpenAI API credential. This requires an API key for access to the specified GPT model.

  3. Set up Nansen MCP Credentials: Locate the MCP Client n8n node. This connection requires setting up an HTTP Header Authentication credential containing the necessary API key or token required to access the Nansen MCP endpoint (https://mcp.nansen.ai/ra/mcp/).

  4. Configure the Chat Trigger: The When chat message received n8n trigger will automatically generate a webhook ID. Configure your external chat application (e.g., Telegram, Slack, custom webhook chat interface) to send messages to this specific n8n endpoint.

  5. Activate: Save and activate the n8n workflow. Your custom AI agent is now ready to respond to blockchain inquiries.

Node Details

When chat message received (n8n trigger): This is the Langchain chat n8n trigger that initiates the entire flow upon receiving a user's prompt via a configured webhook. It handles the initial input to the n8n workflow.
AI Agent (n8n node): The core intelligence hub. It uses a custom system message to define its role as a helpful assistant specializing in blockchain analysis using the Nansen MCP Tool. This n8n node orchestrates the decision-making process.
OpenAI Chat Model (n8n node): Provides the language and reasoning capability for the agent. Configured to use a GPT-4 variant, ensuring high-quality, nuanced responses. It requires an OpenAI credential.
MCP Client (n8n node): A dedicated Langchain tool specifically configured to communicate with the Nansen MCP API endpoint. This tool grants the AI Agent access to live blockchain data, using an essential HTTP Header Authentication credential for secure access.

Related n8n Workflows

Free

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

Leading onchain analytics platform for top crypto teams and investors

Featured*