Hosting the mcp server locally on another server in the network #582
Replies: 1 comment
-
|
Hey @maly-miller — few things going on. Lets unstick you. First, the URL. You wrote
Second, the token. You generate it yourself, it is not given to you. Something like: openssl rand -base64 32Save the output, pass it to the server as Third, starting the server. On 192.168.1.185: AUTH_TOKEN=your-long-token-here npm run start:httpIt binds to Fourth, Claude Desktop. This is the part the docs could explain better: Claude Desktop only speaks stdio natively. For an HTTP MCP on another machine, you use {
"mcpServers": {
"n8n-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://192.168.1.185:3000/mcp",
"--header",
"Authorization: Bearer your-long-token-here"
]
}
}
}Restart Claude Desktop and the tools should appear. Full HTTP deployment guide lives in Ping me if something still does not connect — paste the output of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am hosting the mcp server in my local network in a different sever than my n8n instance and also different from my workstation that has Claude Desktop. Can someone help me with a the json to connect. I am a bit confused as all what is provided in the repo is doesnt really provide any context about using a url and a bearer token and how to generate them.
My n8n-mco server is running on server with IP 192.168.1.185. tried to use https://1923.168.1.185/mcp but i cant even reach it
Beta Was this translation helpful? Give feedback.
All reactions