Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. Could not connect to your MCP server

Could not connect to your MCP server

Scheduled Pinned Locked Moved N8N
13 Posts 7 Posters 5.8k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #4

    @zonzonzon are you able to try just the below instead of adding /mcp route ? This is more generic and I hope it works across all routes.

        # compression chunking logic will interfere with SSE packet flushing
        gzip_disable "text/event-stream";
    
        # what responses are proxied
        gzip_proxied no-cache no-store private expired auth;
    
    
    1 Reply Last reply
    1
    • BrutalBirdieB BrutalBirdie referenced this topic on
    • Z Offline
      Z Offline
      zonzonzon
      wrote on last edited by zonzonzon
      #5

      @girish I added your code snippet above, and it doesn't work. But when I add a block like mine, it works.

      location /mcp {
          gzip off;
          proxy_buffering off;
          proxy_cache off;
          
          proxy_http_version 1.1;
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header X-Forwarded-Host $host;
          
          proxy_pass http://172.18.20.102:5678;
      }
      
      1 Reply Last reply
      4
      • B Offline
        B Offline
        basiliolp
        wrote on last edited by
        #6

        I also tested both solutions, and only yours worked properly.
        Thank you for the help @zonzonzon

        1 Reply Last reply
        3
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #7

          The correct fix needs to come from n8n - https://github.com/n8n-io/n8n/issues/14546#issuecomment-2858048370 . I guess if they don't fix it upstream , the package can bundle it's own nginx as a workaround .

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zonzonzon
            wrote on last edited by
            #8

            @girish It seems that every time the app restarts, the nginx configuration resets to default, right? Is there any way to keep it fixed so it doesn’t change when the app restarts? Thank you.

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #9

              @zonzonzon it will be fixed in Cloudron 9 . The intermediate release (8.3.2) didn't have this fix and thus you hit the issue .

              firmansiF 1 Reply Last reply
              2
              • girishG girish

                @zonzonzon it will be fixed in Cloudron 9 . The intermediate release (8.3.2) didn't have this fix and thus you hit the issue .

                firmansiF Offline
                firmansiF Offline
                firmansi
                wrote on last edited by
                #10

                @girish Any ETA for Cloudron 9?

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  edwardsalfred
                  wrote on last edited by
                  #11

                  Any updates on the Cloudron 9 update?

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jkammerer
                    wrote last edited by
                    #12

                    is this still an issue in the current versions of cloudron/n8n?
                    if i want to apply the suggested fix - on which level ist this done? root access to server?

                    1 Reply Last reply
                    0
                    • jamesJ Online
                      jamesJ Online
                      james
                      Staff
                      wrote last edited by
                      #13

                      Hello @jkammerer
                      It should be working.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better đź’—

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search