This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
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
Get your Nansen MCP API key
Create a credential for authentication
Header Auth as the method.NANSEN-API-KEYNansen MCP Credentials).Configure the Nansen MCP tool
https://mcp.nansen.ai/ra/mcp/HTTP StreamableHeader AuthNansen MCP CredentialsAll (or restrict as needed)Configure the AI Agent
Chat Model input.Tool input.Memory block to preserve conversational context.Set up the chat trigger
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.