MCP NeuroLatch

Tutorials and setup

Local setup No authentication Temporary Bearer token Persistent API keys External OpenAI tunnel Experimental OAuth MCP clients and STDIO Permissions and troubleshooting

Local setup

  1. If you have a Windows distribution, launch mcp-neurolatch-desktop.exe and choose your language. Otherwise build the authorized sources and run the engine in serve mode. Open local administration: 127.0.0.1:8878 by default. Check that the engine is active and that MCP uses a separate port (8877 by default).
  2. In Settings, keep both scopes on Machine only. Use two different free ports, choose an absolute test folder and start read-only. Save and restart if needed. File tools require explicit local activation; on Windows, the native console may request that approval. Do not choose an entire drive. Commands, full unlocked access and remote access are unavailable.
mcp-neurolatch serve
Local setup Local setup
Local setup

Documentation

No authentication

  1. Choose no authentication only for local testing. Save settings and restart. Do not send an Authorization header.
  2. In Settings, keep both scopes on Machine only. Use two different free ports, choose an absolute test folder and start read-only. Save and restart if needed. File tools require explicit local activation; on Windows, the native console may request that approval. Do not choose an entire drive. Commands, full unlocked access and remote access are unavailable.
http://127.0.0.1:8877/mcp
No authentication No authentication
No authentication

Documentation

Temporary Bearer token

  1. Choose Bearer in Settings, save and restart the engine. In AI connections, generate a token, then configure the HTTP client with Authorization: Bearer VOTRE_JETON. The token stays in memory; rotation revokes the previous token and restart renews it. Never publish it or expose the ports. STDIO remains independent. This is not OAuth and does not protect against a local process with the same privileges.
Authorization: Bearer VOTRE_JETON
Temporary Bearer token Temporary Bearer token
Temporary Bearer token

Documentation

Persistent API keys

  1. The MCP key, administration key and OpenAI API key are separate secrets. Never interchange them. An OpenAI key does not replace NeuroLatch authentication.
  2. Create keys from the local console using the following commands, with the same settings file as the engine. Keys are displayed only once. Keep them in a password manager.
  3. The administration key takes effect at the next startup. The browser asks for username neurolatch and the key as password. Remembering it depends on the browser. For MCP, choose Persistent MCP key in settings and restart.
mcp-neurolatch key-create mcp
mcp-neurolatch key-create admin
Persistent API keys Persistent API keys
Persistent API keys

Documentation

External OpenAI tunnel

  1. Follow the official tunnel guide. Configure the local process with the absolute engine path and --stdio argument. Test neurolatch_ping before enabling file tools. Do not expose local ports.
  2. The HTTP server remains local. Build 42 was tested with an external private OpenAI STDIO tunnel; the tunnel is not built into the engine. OAuth introspection remains experimental. Never expose local ports or the administration panel.
mcp-neurolatch --stdio
External OpenAI tunnel External OpenAI tunnel
External OpenAI tunnel

Documentation

OpenAI - Secure MCP tunnels

Experimental OAuth

  1. Prepare the OAuth profile under AI connections. The experimental validator is enabled only at explicit startup with --oauth and the NEUROLATCH_OAUTH_CLIENT_SECRET and NEUROLATCH_OAUTH_SUBJECT environment variables. Read the documentation before use.
  2. Before startup, verify the issuer, HTTPS endpoint and resource in the saved profile. Supply the introspection secret and authorized subject locally through the environment variables below, without writing them to a file, command history or Git.
  3. To enable mixed mode, use --oauth-mixed instead of --oauth, with the same profile and environment variables. Do not combine the two options.
mcp-neurolatch serve --oauth
mcp-neurolatch serve --oauth-mixed
Experimental OAuth Experimental OAuth
Experimental OAuth

Documentation

MCP clients and STDIO

  1. In AI Connections, choose the STDIO client, enter the absolute executable path and optionally the settings path. Generate and copy the configuration into the client's designated file without overwriting other servers. Restart the client and test neurolatch_ping. STDIO starts its own process and does not require the HTTP port. For local HTTP, use the MCP endpoint and active authentication mode.
mcp-neurolatch --stdio
MCP clients and STDIO MCP clients and STDIO
MCP clients and STDIO

Documentation

Permissions and troubleshooting

  1. In Logs, enable logging, select Engine, MCP requests, Authentication, Administration and Errors, then save. Debug adds processing times. Choose a UTC date and inspect recent events. Disable debug after diagnosis; never share a raw log without reviewing its contents.
neurolatch_ping
Permissions and troubleshooting Permissions and troubleshooting
Permissions and troubleshooting

Documentation

Cookie preferences