Unrecognized node type @n8n/n8n-nodes-langchain.mcpserverlangchain

hey all i am running into this error unrecognized node type @n8n/n8n-nodes-langchain.mcpserverlangchain

from what ive been told or able to find out but havent fully followed through with is to run node.js 18 rather than 20 in my docker. I’m running this via digital ocean cloud and cannot chat with my ai agents what so ever when connected to mcp clients. which are connected to their respective mcp servers. all my credentials for the needed tools are in order and appear to be working.
please help with whatever recommendations that you have. I saw a similar error in another post. but i am the only one working within this project. So that chat was at a loss for me.
thanks for you time!


Information on your n8n setup

  • n8n version: 1.89.2

I am not personally sure, but if you think changing the node version would work, I would give it a try.

Hello @Kaegan_McDaniel

Open a separate workflow and test this suggestion below.

Remember to check the credentials and adjust as needed

If you find any part in Portuguese, translate it to your language, because I don’t speak English. So I need to take your message, translate it to Portuguese, understand the problem, see if I can help in any way, answer the question, translate it to English and then post it to the community. I wish you all the best!

Suggestions

Fix the Node.js Version on DigitalOcean

# Acesse seu Droplet via SSH
ssh root@seu-ip

# Instale o Node.js 18
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
apt-get install -y nodejs

# Verifique a versão
node -v  # Deve mostrar v18.x.x

Reconfigure the N8N Container

# Pare o container atual
docker stop n8n
docker rm n8n

# Execute com a versão correta do Node.js
docker run -d \
  --name n8n \
  -p 5678:5678 \
  -e NODE_VERSION=18 \
  -e N8N_HOST=seu-dominio.com \
  -e N8N_PROTOCOL=https \
  -v ~/.n8n:/home/node/.n8n \
  -e N8N_ENCRYPTION_KEY=sua-chave-segura \
  --restart unless-stopped \
  n8nio/n8n:latest

Update the Workflow

In the N8N dashboard, add

MCP_ID=seu-id-mcp
MCP_TOKEN=seu-token-mcp
MCP_SERVER_URL=https://n8n.automation.doctor

Remember to test in a separate workflow.

If this suggestion solved your problem, mark my post as a solution (blue box with check mark) so that this ongoing discussion does not distract others who want to find the answer to the original question and click the heart. Thank you

1 Like

Hi so I posted this a little early. I updated the n8n version to 1.89.2 and also nodejs to 20.x.x went through added the entire langchain library. And the community mcp tools. I will check these suggestions out when I get a chance later today