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
Get your Nansen MCP API key
Visit: https://app.nansen.ai/account?tab=api
Generate and copy your personal API key.
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).
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)
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.
Set up the chat trigger
Use the "When chat message received" node to start the flow when a message is received.
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.
Related Templates
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Send structured logs to BetterStack from any workflow using HTTP Request
Send structured logs to BetterStack from any workflow using HTTP Request Who is this for? This workflow is perfect for...
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments