Repository navigation
v2.0.0
v2.0.0 - 2026-10-28
Major
-
HTTP mode: URL path changed from /mcp to /db/{databaseName}/mcp, which allows targeting specific databases in a multi-database Neo4j instance.
All HTTP mode requests must now include the target database name in the URL path. The previous /mcp endpoint no longer exists.
NEO4J_MCP_DATABASE / --database are rejected in HTTP mode. Setting these in HTTP mode now causes a startup error.
STDIO mode: NEO4J_MCP_DATABASE no longer defaults to "neo4j". This configuration option now needs to be set explicitly when using STDIO. Set NEO4J_MCP_DATABASE=neo4j explicitly to preserve the previous behaviour. -
HTTP mode now accepts X-Neo4j-MCP-URI header to specify which Neo4j instance to connect to per-request. (#278)
NEO4J_MCP_URI env var is no longer required in HTTP mode — URI comes from the header instead.
Requests without a valid X-Neo4j-MCP-URI get 400 Bad Request.
X-Neo4j-MCP-URI added to CORS Access-Control-Allow-Headers.
Bolt URI passwords are now redacted from error messages. -
The Initialize request may now fail when connectivity cannot be verified, required plugins (such as APOC) are missing, or configuration is invalid, with descriptive error messages.
-
Removed deprecated environment-variable aliases and CLI flags. Environment variables are now scoped with the
NEO4J_MCP_prefix, while CLI flags use concise, unscoped names.
Use the following replacements:
| Type | Removed | Replacement |
|---|---|---|
| Environment variable | NEO4J_URI |
NEO4J_MCP_URI |
| Environment variable | NEO4J_USERNAME |
NEO4J_MCP_USERNAME |
| Environment variable | NEO4J_PASSWORD |
NEO4J_MCP_PASSWORD |
| Environment variable | NEO4J_DATABASE |
NEO4J_MCP_DATABASE |
| Environment variable | NEO4J_READ_ONLY |
NEO4J_MCP_READ_ONLY |
| Environment variable | NEO4J_TELEMETRY |
NEO4J_MCP_TELEMETRY |
| Environment variable | NEO4J_LOG_LEVEL |
NEO4J_MCP_LOG_LEVEL |
| Environment variable | NEO4J_LOG_FORMAT |
NEO4J_MCP_LOG_FORMAT |
| Environment variable | NEO4J_SCHEMA_SAMPLE_SIZE |
NEO4J_MCP_SCHEMA_SAMPLE_SIZE |
| Environment variable | NEO4J_TRANSPORT_MODE |
NEO4J_MCP_TRANSPORT_MODE |
| Environment variable | NEO4J_MCP_TRANSPORT |
NEO4J_MCP_TRANSPORT_MODE |
| Environment variable | NEO4J_HTTP_AUTH_HEADER_NAME |
NEO4J_MCP_HTTP_AUTH_HEADER_NAME |
| Environment variable | NEO4J_HTTP_ALLOW_UNAUTHENTICATED_PING |
NEO4J_MCP_HTTP_ALLOW_UNAUTHENTICATED_PING |
| CLI flag | --neo4j-uri |
--uri |
| CLI flag | --neo4j-username |
--username |
| CLI flag | --neo4j-password |
--password |
| CLI flag | --neo4j-database |
--database |
| CLI flag | --neo4j-read-only |
--read-only |
| CLI flag | --neo4j-tools |
--tools |
| CLI flag | --neo4j-telemetry |
--telemetry |
| CLI flag | --neo4j-schema-sample-size |
--schema-sample-size |
| CLI flag | --neo4j-transport-mode |
--transport-mode |
| CLI flag | --neo4j-http-port |
--http-port |
| CLI flag | --neo4j-http-host |
--http-host |
| CLI flag | --neo4j-http-allowed-origins |
--http-allowed-origins |
| CLI flag | --neo4j-http-tls-enabled |
--http-tls-enabled |
| CLI flag | --neo4j-http-tls-cert-file |
--http-tls-cert-file |
| CLI flag | --neo4j-http-tls-key-file |
--http-tls-key-file |
| CLI flag | --neo4j-http-auth-header-name |
--http-auth-header-name |
| CLI flag | --neo4j-http-allow-unauthenticated-ping |
--http-allow-unauthenticated-ping |
| CLI flag | --neo4j-request-timeout |
--request-timeout |
- Removed the option to list tools without authentication in HTTP mode.
tools/listnow always requires authentication.
Removed configuration:
| Type | Removed |
|---|---|
| Environment variable | NEO4J_HTTP_ALLOW_UNAUTHENTICATED_TOOLS_LIST |
| Environment variable | NEO4J_MCP_HTTP_ALLOW_UNAUTHENTICATED_TOOLS_LIST |
| CLI flag | --neo4j-http-allow-unauthenticated-tools-list |
| CLI flag | --http-allow-unauthenticated-tools-list |
Unauthenticated ping (NEO4J_MCP_HTTP_ALLOW_UNAUTHENTICATED_PING) is unaffected.
-
The
list-gds-procedures toolis no longer auto-included and a GDS availability check is done on eachtools/listrequest. Whether it is exposed now depends on server-level and/or per-request configuration settings.
If the tool is only enabled by default and GDS is not installed, it is omitted from thetools/listresponse.
If the tool is explicitly requested and GDS is not installed,tools/listfails with a descriptive error.
If the GDS check cannot be completed because of a different issue,tools/listfails with that underlying error. -
HTTP mode no longer starts without
NEO4J_MCP_HTTP_ALLOWED_URIS(or--http-allowed-uris). STDIO is unaffected.
List the Neo4j hosts clients may target inX-Neo4j-MCP-URI; other hosts are rejected.
Format: comma-separatedhost[:port], no scheme, port defaults to 7687,*.wildcard for subdomains. Port ranges and CIDRs are not supported; an invalid entry stops the server from starting.
Example:NEO4J_MCP_HTTP_ALLOWED_URIS=*.databases.neo4j.io,db.example.com:7688,10.0.0.5
Minor
-
The server now supports selective tool filtering through the "NEO4J_MCP_TOOLS" environment variable or the "--tools" CLI argument.
These values are used to filter the tools returned in the "tools/list" MCP response. If not specified, all tools will be enabled.
You can pass multiple tools at once as a comma-separated list. Example: "--tools 'get-schema,read-cypher'". -
Add per-request tool filtering via two new HTTP headers:
X-Neo4j-MCP-ReadOnly: true|false, restricts the advertised tool list to read-only tools for that request; invalid values return400 Bad RequestX-Neo4j-MCP-Tools: <comma-separated list>, restricts the advertised tool list to the specified subset; unknown tool names return400 Bad Request- When both headers are present they are applied as an intersection (read-only mode takes precedence)
- When neither header is set the behaviour is unchanged
- MCP requests are now bounded by a timeout, 3m by default and 30m at most.
- Set the server limit with
NEO4J_MCP_REQUEST_TIMEOUTor--request-timeout(e.g.45s,5m) - HTTP mode accepts a per-request
X-Neo4j-MCP-Request-Timeoutheader, which can only lower the server limit; larger, non-positive, or malformed values return400 Bad Request - Tool calls and
initializethat run past the limit are cancelled and return arequest timed out after <duration>error
Patch
- Requirement checks now run only on MCP
initialize.