N8n Connector for Claude Code

Hey, I have an issue with connecting the instance mcp server to claude code. Claude only accepts OAuth, but n8n only provides an Access Token, so I always get an error message.

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Welcome to the n8n community @tmwieczorek

This is a limitation/compatibility issue between the authentication model expected by Claude Code for remote MCP and the type of authentication currently provided by the n8n MCP server.
You could put an OAuth-supporting proxy in front of the n8n MCP endpoint. Claude Code would authenticate to the proxy using OAuth, and the proxy would forward MCP requests to n8n using the n8n Bearer token. Without this type of proxy, this may not work directly unless Claude Code supports custom Authorization headers/Bearer tokens for remote MCP servers.

Hi @tmwieczorek Welcome!
Follow this:

Hey @tmwieczorek
Welcome to the n8n community!

Firstly i wanna make sure you have the claude desktop app and also have a paid plan which gives you access to claude code.

And then you can navigate to claudecode</> → customize → browse connectors → Then search for n8n there an official connector would come up and then you just have to enter the name of your choice and then navigate to n8n activate the instance level MCP then collect the MCP server URL and paste it below the enter name field.

You would only get 2 fields like this :

And then you just have to click add and it will be connected, once it is then just configure some permissions and in your n8n instance enable the workflows you wanna integrate with claude code with MCP.

If you face any problems with this let me know, I hope this helps.

Also this would you help you as well, Official video from n8n : https://youtu.be/qgoGuwRpndU?si=OBc8UtJOy4yYjjiY

Unfortunately, that’s exactly what doesn’t work and triggers the error message in Claude.

Did you try setting the proxy @tmwieczorek?

Hey @tmwieczorek
Can you show me the error message or the details, so that i can assist you better

Authorization with the MCP server failed. You can check your credentials and permissions. If this persists, share this reference with support: “ofid_c88d502ebb7de64c”

Hey @tmwieczorek , Thanks for sharing the error message.

And since you have an access token can you try running this via CLI :

claude mcp add --transport http n8n-mcp https:///mcp-server/http
–header “Authorization: Bearer <YOUR_N8N_MCP_TOKEN>”

And you can check out this as well for that probably this is going to help you out :

Let me know if this works or the issue still persists.

@tmwieczorek I am not sure why this is getting flagged, but I developed a workaround to this exact problem that is really useful. If you want to skip the OAuth issue entirely, I built a Python MCP server that connects Claude to n8n over stdio instead. No OAuth negotiation, no proxy needed; just your n8n API key. Might be worth a try: https://github.com/DerJams/n8n-mcp-server-python

In that way, it’s way easier to add MCP via the Claude CLI, as was stated above. Or via the ~/.claude.json file:

"mcpServers": {
  "n8n-mcp": {
    "type": "http",
    "url": "https://your_n8n_instance/mcp-server/http",
    "headers": {
      "Authorization": "Bearer your_n8n_mcp_token"
    }
  }
}