Skip to main content

Get blockchain insights from chat using GPT-4 and Nansen MCP

Workflow preview

Workflow preview
100%
Get blockchain insights from chat using GPT-4 and Nansen MCP preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. How it works This workflow listens for an incoming chat message and routes it to an AI Agent . T...

Best for

  • Crypto Trading automation workflows
  • AI Chatbot automation workflows
  • beginner n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.mcpclienttool, @n8n/n8n-nodes-langchain.chattrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Nansen.

Original n8n.io source

1.1 Workflow description

Title
Get blockchain insights from chat using GPT-4 and Nansen MCP
Workflow name
Get blockchain insights from chat using GPT-4 and Nansen MCP

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

How it works

This workflow listens for an incoming chat message and routes it to an AI Agent. The agent is powered by your preferred Chat Model (such as OpenAI or Anthropic) and extended with the Nansen MCP tool, which enables it to retrieve onchain wallet data, token movements, and address-level insights in real time.

The Nansen MCP tool uses HTTP Streamable transport and requires API Key authentication via Header Auth.

Read the Documentation: https://docs.nansen.ai/nansen-mcp/overview

Set up steps

  1. Get your Nansen MCP API key

  2. Create a credential for authentication

    • From the homepage, click the dropdown next to "Create Workflow" → "Create Credential".
    • Select Header Auth as the method.
    • Set the Header Name to: NANSEN-API-KEY
    • Paste your API key into the Value field.
    • Save the credential (e.g., Nansen MCP Credentials).
  3. Configure the Nansen MCP tool

    • Endpoint: https://mcp.nansen.ai/ra/mcp/
    • Server Transport: HTTP Streamable
    • Authentication: Header Auth
    • Credential: Select Nansen MCP Credentials
    • Tools to Include: Leave as All (or restrict as needed)
  4. Configure the AI Agent

    • Connect your preferred Chat Model (e.g., OpenAI, Anthropic) to the Chat Model input.
    • Connect the Nansen MCP tool to the Tool input.
    • (Optional) Add a Memory block to preserve conversational context.
  5. Set up the chat trigger

    • Use the "When chat message received" node to start the flow when a message is received.
  6. Test your setup
    Try sending prompts like:

    • What tokens are being swapped by 0xabc...123?
    • Get recent wallet activity for this address.
    • Show top holders of token XYZ.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Nansen MCP

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1.1

Block 4 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.3

3. Summary Table

Workflow Get blockchain insights from chat using GPT-4 and Nansen MCP
Complexity beginner
Nodes 4
Categories Crypto Trading, AI Chatbot
Author Nansen
Published 23 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6303/6303.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Get blockchain insights from chat using GPT-4 and Nansen MCP do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. How it works This workflow listens for an incoming chat message and routes it to an AI Agent . T...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Chatbot use case.