Hello everyone,
I’m setting up the n8n-mcp server to connect Claude Desktop with my n8n Cloud instance, and I’ve hit a final wall with the API authentication. I’m hoping someone who has connected to n8n Cloud from an external tool can point me in the right direction.
My Setup & The Issue:
I’m following the n8n-mcp setup guide, which requires an N8N_API_URL and N8N_API_KEY to be configured.
When I go to my n8n Cloud dashboard and generate a key from Settings > API, the key I receive is in a JWT format (it starts with eyJ...). I’ve seen some other community discussions that mention this key format, so it seems to be standard for some accounts.
However, when I use this JWT-style key, the n8n-mcp tool is unable to connect.
The Specific Error:
When I test the connection manually in my terminal (using npx n8n-mcp with the credentials set as environment variables), the tool immediately fails with the error: failed to do n8n health check.
This seems to confirm that the n8n-mcp tool cannot authenticate with my n8n instance using this type of key.
My Question:
For connecting to an n8n Cloud instance from an external application like this, what is the correct procedure?
- Is there a different method or a different screen to generate a long-lived, permanent static API key?
- Or, is there a specific configuration I need to use for
n8n-mcpto make it compatible with this JWT-style key?
I’ve already tried regenerating the key multiple times using different browsers and incognito mode, but the result is always the same eyJ... key. Any help or clarification on how n8n Cloud authentication is supposed to work for these external tools would be greatly appreciated!
Summary of My Setup:
- Goal: Connect Claude Desktop to n8n Cloud.
- Tool:
n8n-mcpfrom GitHub. - n8n Instance: Cloud (
https://jonahabis.app.n8n.cloud) - API Key Format I Receive: JWT (starts with
eyJ...) - Error Message:
failed to do n8n health check
Thank you!