You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
inspector v2 fails to connect to MCP server at https://localhost #1936
Error observed (No any HTTP requests enter the OAUTH2 or MCP server )
Brave
OAuth authorization failed for "localhost"
Remote fetch failed (401): {"error":"Unauthorized","message":"Authentication required. Use the x-mcp-remote-auth header with Bearer token."}
http 2025 & 2026 : OK
Chrome:
Error Fetch failed
http 2025 & 2026 : OK
Firefox:
Known issue that it hangs (see other posts)
Vivaldi
Error Fetch failed
http 2025 & 2026 : OK
Note: when using http:
Error Fetch failed
http 2025 & 2026 : OK
Expected behavior
Connect to the MCP server at localhost
Actual behavior
Does not connect , failed
Logs, errors, or screenshots
No response
Already prototyped a fix?
No response
Before you submit
I searched existing issues and this is not a duplicate.
This is not a security vulnerability report (those go through the private advisory process).
changed the title [-]V2 faild to connect to MCP server at https://localhost[/-][+]V2 failsto connect to MCP server at https://localhost[/+]on Aug 6, 2026
changed the title [-]V2 failsto connect to MCP server at https://localhost[/-][+]V2 fails to connect to MCP server at https://localhost[/+]on Aug 6, 2026
changed the title [-]V2 fails to connect to MCP server at https://localhost[/-][+]inspector v2 fails to connect to MCP server at https://localhost[/+]on Aug 6, 2026
What server are you running here? Your steps to reproduce seem to expect that we have an mcp server at https://localhost/api/mcp/mcp We have no idea if this is the correct endpoint for whatever you're running.
nvm use 21
npx @modelcontextprotocol/inspector
Also note that the inspector requires node 22.19.0.
@symdeb Also, do you have a certificate installed enabling you to run https on localhost? Otherwise you should probably try this with http://
Can you post a screenshot of what you get when you do:
In short: the web client connects to MCP servers from its Node backend, not from the browser, so trusting the certificate in the browser does not help. Two options:
Preferred:NODE_EXTRA_CA_CERTS=/path/to/your-ca.pem (or the self-signed certificate itself). It trusts that certificate and keeps verification on for every other connection.
Local development only:NODE_TLS_REJECT_UNAUTHORIZED=0, which is what worked above. It disables certificate verification for every TLS connection the Inspector makes, including OAuth servers, so don't leave it in a shell profile.
Activity
[-]V2 faild to connect to MCP server at https://localhost[/-][+]V2 failsto connect to MCP server at https://localhost[/+][-]V2 failsto connect to MCP server at https://localhost[/-][+]V2 fails to connect to MCP server at https://localhost[/+][-]V2 fails to connect to MCP server at https://localhost[/-][+]inspector v2 fails to connect to MCP server at https://localhost[/+]cliffhall commentedon Aug 10, 2026
@symdeb
What server are you running here? Your steps to reproduce seem to expect that we have an mcp server at
https://localhost/api/mcp/mcpWe have no idea if this is the correct endpoint for whatever you're running.Also note that the inspector requires node 22.19.0.
package.jsoncliffhall commentedon Aug 11, 2026
@symdeb Also, do you have a certificate installed enabling you to run
httpson localhost? Otherwise you should probably try this withhttp://Can you post a screenshot of what you get when you do:
curl https://localhost/api/mcp/mcpsymdeb commentedon Aug 11, 2026
Indeed, this server uses a self signed certificate. AWebsites are hosted using https on apache2 and work fine.
docs: add the six-month Inspector roadmap (Aug 2026 → Feb 2027)
1 remaining item
symdeb commentedon Aug 19, 2026
using Linux
export NODE_TLS_REJECT_UNAUTHORIZED=0before starting inspector worked.
cliffhall commentedon Sep 14, 2026
Closing since we've found the solution. Documenting in #2365.
cliffhall commentedon Sep 14, 2026
This is now documented in Environment variables → Connecting to a server with a self-signed certificate (#2365, #2366).
In short: the web client connects to MCP servers from its Node backend, not from the browser, so trusting the certificate in the browser does not help. Two options:
NODE_EXTRA_CA_CERTS=/path/to/your-ca.pem(or the self-signed certificate itself). It trusts that certificate and keeps verification on for every other connection.NODE_TLS_REJECT_UNAUTHORIZED=0, which is what worked above. It disables certificate verification for every TLS connection the Inspector makes, including OAuth servers, so don't leave it in a shell profile.Both must be set before launching the Inspector.
docs: add an environment-variable reference (modelcontextprotocol#2365)
docs: address Copilot round 5 on the roadmap realignment (#2401 review)