Requirements
Choosing the right version
Neo4j ports
Install Java
Install Neo4j
Install APOC libraries
Neo4j Database Configuration
You can install Neo4j on either Windows 10+ or on Linux. Either on local computers or on a virtual machine on ANY cloud.
We test on Debian/Ubuntu and on Windows 11.
As of July 2026, there are 3 versions of Neo4j, two of which are currently supported and available from their Deployment Center page (under "Graph Database Self-Managed"), and the third one is available from their archives:
BrainAnnex supports Neo4j Community versions 4.4 and 5.26. We do NOT support the newest version "2026"
Note that use of the Enterprise version is NOT required for Brain Annex – the Community version will do just fine!
Version 4.4 of the Neo4j database was
supported by the Neo4j company thru the end of Nov. 2025.
It is the very mature end-of-line for major version 4 of Neo4j (perhaps "4" is their lucky number?!?)
If you look at the
Neo4j release history,
you can see that version 4 has been polished in the course of almost 6 full years (2020-2025), 5 minor versions: 4.0 thru 4.4,
from its Jan. 2020 release thru the final update to 4.4 in Oct. 2025.
Similarly, version 5 has been polished in the course of 3 full years (2022-2025) – and a whopping 27 versions –
from its first Oct. 2022 release thru the final update to 5.26 in Dec. 2025.
CAUTION: do not confuse the version of the Neo4j database with the version of the BrainAnnex libraries and web app (currently release candidates of new major version 5)
You may install Neo4j on your local computer, or on a virtual machine on any Cloud (we use the Google cloud, as well as the inexpensive Oracle cloud); or you may use a Neo4j hosting service such as Neo4j Aura (but beware of the version number of the database.)
Note: for installations on a local machine, the "Neo4j Desktop" program is a convenient alternative – BUT be aware that it ties you
to a trial copy of the Enterprise version of Neo4j, and it tries to push you towards products such as "Bloom",
which also require the Enterprise version of Neo4j! At present, we don't support
the "Neo4j Desktop" program; while it provides some convenience, it's largely a marketing tool to corral you towards the paid version of the database...
Also, the "Neo4j Desktop" program may steer you towards the newest - still unsettled, as far as we're concerned - version of Neo4j ("2026"), wich we DON'T support.
CAUTION: the guide below is written in terms of installing version 4.4 of the Neo4j database;
side comments explain the differences in the installation of version 5 of the Neo4j database, whenever there is a difference.
If you're only interested in the BrainAnnex python libraries, simply pip install either brainannex-neo4jv4 or brainannex-neo4jv5, depending on
your version of the database.
If you want to use version 5 of Neo4j with the BrainAnnex web app, make sure to apply the following changes to the files from the repo:
brainannex/__init.py__, comment out the line that mentions intergraph_neo4j_4,
and uncomment the line that mentions intergraph_neo4j_5
requirements.txt, comment out the line that mentions version 4 of Neo4j,
and uncomment the line that mentions version 5
By default, only connections from localhost are permitted, unless the config file is changed, as discussed in the section Neo4j Database Configuration.
Default ports used:
HTTPS: 7473
HTTP: 7474
Bolt Protocol: 7687
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
(More info).The Neo4j database is internally written in the Java programming language – so, Java must be available on the system.
Version 4.4 of the Neo4j database needs the Java 11 SE Development Kit 11; version 5.26 of Neo4j needs Java 21.
If doing your own installation, a Java installation is needed. (Some pre-made VM images already includes Java, but make sure that it's the right version.)
You can check if the needed Java version is already installed by issuing:
java -version
On Ubuntu, Debian and some other Linux versions, Java 11 may be installed, if needed, with:
sudo apt install openjdk-11-jre-headless
On Windows, use this link from Oracle (then
click on the "Windows" tab, and look for the .exe Windows x64 Installer.)
Oracle's website doesn't appear to work correctly from Firefox, but it's fine from Chrome. You'll have to register for an account from Oracle; annoying but free.
After you download the .exe file, double-check on it, to install Java.
If you have any PowerShell windows open, close them to register the change.
neo4j' and the password also 'neo4j'
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -sudo apt-get install wget )
echo 'deb https://debian.neo4j.com stable 4.4' | sudo tee /etc/apt/sources.list.d/neo4j.list
deb https://debian.neo4j.com stable 4.4sudo apt-get updatesudo apt-get install neo4j
apt list -a neo4j
sudo add-apt-repository universe
apt-cache search neo4j
cypher-shell - command line shell for neo4jneo4j - graph database server
ls -alp /usr/bin/neo4j*
neo4j, neo4j-admin and neo4j-import
whereis neo4j
/etc/neo4j
/usr/share/neo4j
/var/log/neo4j (may not be present initially)
man neo4j)
For Other Linux distributions:
For 5.26, use the Neo4j download LINK.
IMPORTANT: make sure to get version 5.26.x
From that page, scroll down to the section on "Graph Database Self-Managed", and
pick the most recent version of the 5.26.x *COMMUNITY* (unless you specifically need Enterprise) branch, for your version of Linux.
Download the file, and follow the directions on the download page.
If you want to use version 4.4, download it
from this archival link
For Neo4j version 5.26:
Use the Neo4j download LINK.
IMPORTANT: make sure to get version 5.26.x
From that page, scroll down to the section on "Graph Database Self-Managed", and
pick the most recent version of the 5.26.x *COMMUNITY* (unless you specifically need Enterprise) branch, for Windows. Download the file.
If you want to verify the checksum on the downloaded zip file (i.e. its integrity), we recommend the free Windows tool Bitser (beware of potentially misleading ads on that download page.)
For version 4.4:
You need to download an archived copy, because this version is no longer listed in the Neo4j download center.
Use this archival link
Afterwards, under either scenario:
Find the zip file you just downloaded and right-click, extract all.
Move all the extracted files to a permanent folder on your machine, for example D:\neo4 . That top-level directory for the Neo4j installation is referred to as NEO4J_HOME. Under that folder, you should see a "README.txt" file (you can double-check the version number inside of it), plus several other files and subfolders.
On Win11, search for the PowerShell and RUN AS ADMINISTRATOR.
Now, in the Windows PowerShell, issue the command:
cd NAME_OF_FOLDER_WHERE_YOU_UNPACKED_NEO4J (example: cd D:\neo4 )
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
.\bin\neo4j install-service
The Neo4j "APOC" libraries add a good deal of extra functionality to the database: they provide a large set of functions that can be incorporated into Cypher queries. Those libraries are created and maintained by the Neo4j company itself, but somehow they're not part of the standard installation.
From the official documentation:
"[APOC procedures] are custom implementations of certain functionality, that can’t be (easily) expressed in Cypher itself.
They are implemented in Java and can be easily deployed into your Neo4j instance, and then be called from Cypher directly."
Currently, the APOC library is needed by several Brain Annex modules. We highly recommend that you install it, though you could do without if you're just using the database by itself thru the Neo4j browser.
Make sure that the database is stopped (see the section Start/Stop the database,
under the "Administer Neo4j" link).
If you just installed it, it will already be in a stopped state.
Locate the most recent version of the 4.4 series or 5.26 of APOC libraries (depending on your version of the Neo4j database)
from this GitHub Releases page.
Make a note of that version number; for example, as of July 2026, the most current version
of the 4.4 series is 4.4.0.40, while the the most current version
of the 5.26 series is 5.26.4
IMPORTANT: after you finish APOC's installation, make sure to change the Neo4j config file, as detailed in the
next section!
To install the APOC libraries on Linux (we tested on Ubuntu and Debian):
cd /var/lib/neo4j/pluginssudo wget https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/4.4.0.40/apoc-4.4.0.40-all.jar
sudo chown -R neo4j:adm apoc-4.4.0.40-all.jar
To install the APOC libraries on Windows (we tested on Win 11), right-click on an empty space in the window where you installed Neo4j (in our examples below, D:\neo4j), and select "Open in Terminal". Then, in the PowerShell that comes up, run:
cd plugins To navigate to the NEO4J PLUGIN FOLDER! Example: D:\neo4j\pluginsInvoke-WebRequest -Uri "https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/4.4.0.40/apoc-4.4.0.40-all.jar" -OutFile "apoc-4.4.0.40-all.jar"
apoc-4.4.0.40-all.jar
Make sure that the database is stopped (see the section Start/Stop the database, under the "Administer Neo4j" link), if you need to edit the configuration file. If you just installed the database, it will already be in a stopped state.
Locate the Neo4j configuration file.
On Linux installations from the repository (we tested on Debian and Debian-derived versions, such as Ubuntu), the configuration file will be: /etc/neo4j/neo4j.conf
If you're having problems finding the Neo4j configuration file, you can get a list of applicable directories with:
whereis neo4j
For Windows installations from a downloaded: NEO4J_HOME\conf\neo4j.conf , where NEO4J_HOME is the folder you chose for your installation
IMPORTANT: By default, the neo4j server only listens to the local machine, and does NOT recognize the APOC libraries, even if installed as directed above!
If you need to make Neo4j accept remote connections (such as from the Neo4j browser interface), as typically done on a server installation, you'll need to edit the config file.
Similarly, if you want to make the APOC libraries available (highly recommended), you'll need to edit the config file.
To edit the config file on Windows, use your favorite text editor, such as notepad.
If you SSH to the server with the awesome client MobaXterm, a handy graphic text editor for remote files is included, though it might run into writing-permission issues.
Or, in the Linux shell:
cd /etc/neo4j (or use the location of your Neo4j config file; see earlier section)
sudo vim neo4j.conf (or use your favorite Linux editor)
# in front of it):
dbms.default_listen_address=0.0.0.0
dbms.security.procedures.unrestricted=apoc.*
cat /etc/neo4j/neo4j.conf | grep dbms.default_listen_address
cat /etc/neo4j/neo4j.conf | grep dbms.security.procedures.unrestricted=apoc.*