Skip to content

Fresh install fails to connect: "x509: certificate signed by unknown authority" against local MATLAB connector #100

Description

@procect-ojm

Description

Environment

  • OS: Windows 11 Home (Build 26200)
  • MATLAB: R2025b (25.2.0.2998904), Home License
  • MATLAB MCP Server: v0.11.1 (freshly reinstalled from matlab-mcp-server.mcpb)
  • Client: Claude Desktop

Summary

After a completely fresh reinstall of the MCP server extension (uninstall old
"MATLAB MCP Core Server", full Claude Desktop restart, install new
"MATLAB MCP Server" v0.11.1), every tool call still fails with
"MATLAB session is not alive". Server logs show the underlying cause is a
TLS certificate trust failure when the Go server tries to reach the MATLAB
connector on localhost:

error: failed to send request: Post "https://localhost:31516/messageservice/json/state":
tls: failed to verify certificate: x509: certificate signed by unknown authority

This repeats continuously until the discovery timeout, then the watchdog
kills the MATLAB process and retries, indefinitely, with the same error.

Steps to reproduce

  1. Install matlab-mcp-server.mcpb in Claude Desktop (fresh install)
  2. Set Initial Working Folder and Log Folder in extension settings
  3. Restart Claude Desktop
  4. Call any tool (e.g. detect_matlab_toolboxes) from Claude

Observed

  • MATLAB itself launches fine from command line (matlab -batch "disp('hello')" works)
  • The MATLAB connector does start and does write out a
    connector.securePort file in the session directory
  • The MCP server's own TLS client rejects the connector's self-signed
    certificate as "signed by unknown authority"
  • Disabling all Norton 360 protection (Auto-Protect, Firewall, etc.) for
    15 minutes did NOT change this result — same error persists
  • This started after a system memory upgrade (8GB→32GB) and, separately,
    after renaming/regenerating %APPDATA%\MathWorks\MATLAB to troubleshoot
    an unrelated browser-side certificate warning
    (ERR_CERT_AUTHORITY_INVALID when opening MATLAB's own web UI feature)

Expected

The MCP server should be able to trust the MATLAB connector's own
self-signed certificate for localhost communication, or provide a
documented way to configure/regenerate this trust relationship.

Logs available

Full JSON server/watchdog logs available on request (large — contain
repeated identical TLS errors during the discovery retry loop).

Metadata

Metadata

Assignees

Labels

needs-triageThis issue is awaiting review by the team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions