0

Created an mcp server which calls another local server, trying to fetch this server using its local address (localhost:8000) but then I got this response from the mcp server:

{"type": "text", "text": "fetch failed"}

1 Answer 1

1

Solved the problem by replacing localhost with my actual local ip address (e.g http://192.168.2.32:8000).

Seems like there's a problem for ClaudeDesktop to call localhost addresses by security reasons.

you can get your local ip address on macOS/unix using this command:

ifconfig | grep "inet " | grep -v 127.0.0.1

Just to make it more clear:

// replace
fetch(localhost:8000)
// with (your local ip address)
fetch(http://192.168.2.32:8000)
Sign up to request clarification or add additional context in comments.

1 Comment

claude desktop is full of bugs , from messageBox error which disapear in 1 second to unability to retreive data of mcp server of size > 1MB. i would not be surpised it has been generated with ai without code review. also they have no support platform for bug report .... frustrating !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.