How to Connect Neo4j to Tableau

Cody Schneider8 min read

Bringing your graph data from Neo4j into a powerful visualization tool like Tableau opens up a new world of analysis. Instead of being limited to specialized graph tools, you can leverage Tableau's user-friendly interface to build rich, interactive dashboards from your highly-connected data. This article provides a clear, step-by-step guide on how to connect Neo4j to Tableau using the official ODBC driver.

Why Connect Neo4j and Tableau?

Neo4j is a leading native graph database, expertly designed to store and navigate data based on its relationships. It’s perfect for modeling complex systems like social networks, fraud detection rings, supply chains, or recommendation engines. Tableau, on the other hand, is a premier business intelligence tool for creating stunning and intuitive data visualizations, reports, and dashboards. It excels at summarizing large datasets into easy-to-understand charts and graphs.

By connecting the two, you can get the best of both worlds:

  • Visualize Complex Relationships: Untangle intricate networks and patterns from your Neo4j database and present them in familiar formats like bar charts, heatmaps, and tables in Tableau.
  • Empower Business Users: Allow team members who are comfortable with Tableau to explore graph data without needing to learn Neo4j’s query language, Cypher.
  • Integrate with Other Data: Combine your graph data with other enterprise data sources already in Tableau (like sales data from a SQL database or marketing data from a SaaS platform) for a holistic view of your business.

For example, imagine a retail company using Neo4j to model a "Customer 360" view. A Cypher query could traverse relationships between customers, orders, products, reviews, and support tickets. By pulling this structured data into Tableau, a marketing analyst could easily build a dashboard to see which products are most frequently purchased together or identify high-value customers who have also logged support issues, all without writing a single line of Cypher themselves.

Prerequisites: What You’ll Need Before You Start

Before diving into a setup, make sure you have the following ready. This quick checklist will ensure the process goes smoothly.

  • Tableau Desktop: You'll need an active installation of Tableau Desktop. This method won't work with the free Tableau Public version.
  • A Running Neo4j Instance: You need an accessible Neo4j database. This can be a local instance running on your machine via Neo4j Desktop, a self-hosted server, or a cloud instance like Neo4j AuraDB.
  • Neo4j Credentials: Have your server's Bolt address (e.g., neo4j://localhost:7687 or neo4j+s://xxxx.databases.neo4j.io), database name, username, and password handy.
  • The Neo4j ODBC Driver: This is the key component that acts as a translator between Neo4j and Tableau. You'll need to download it directly from Neo4j.

Step-by-Step Guide: How to Connect Neo4j to Tableau

Connecting Neo4j to Tableau involves installing and configuring the ODBC driver, which then allows Tableau to see Neo4j as a standard data source. Let's walk through each step.

Step 1: Download and Install the Neo4j ODBC Driver

The first task is to get the necessary middleware. Neo4j provides an official ODBC (Open Database Connectivity) driver that makes this connection possible.

  1. Navigate to the Neo4j ODBC Driver Download Page.
  2. Select your operating system (Windows or macOS) and download the appropriate installer.
  3. Run the installer and follow the on-screen prompts. The standard installation process is straightforward and typically just requires clicking "Next" a few times.

Once installed, the driver is ready to be configured to point to your specific Neo4j database.

Step 2: Configure the ODBC Data Source Name (DSN)

A DSN is a saved configuration that contains all the information needed to connect to a database - like the server address, credentials, and driver settings. Tableau uses this DSN to connect.

For Windows users:

  1. Open the Start Menu and search for "ODBC Data Sources." Be sure to open the ODBC Data Source Administrator (64-bit) application.
  2. In the administrator window, go to the System DSN tab. A System DSN is available to all users on the computer, which is generally recommended. Click Add....
  3. A new window will appear. Scroll through the list of drivers and select "Neo4j ODBC Driver" and click Finish.
  4. Now, you'll see the configuration window for the driver. Fill in the following fields:

Before saving, click the Test Connection button. If everything is configured correctly, you should see a "Connection Successful" message. If not, double-check your server address and credentials.

Click OK to save the DSN.

For Mac users:

Mac installation uses a manager app. Once the driver .dmg is installed, use the included ODBC Manager to create a new DSN. The connection properties you need to fill in (Server, User, Password, etc.) are the same as listed above for Windows.

Step 3: Connect to Neo4j from Tableau

With the DSN configured, it's time to open Tableau and establish the connection.

  1. Launch Tableau Desktop.
  2. On the start page, under the "Connect" section in the left pane, click on Other Databases (ODBC).
  3. A small connection dialog box will open. In the DSN dropdown menu, you should now see the DSN you created in the previous step (e.g., "Neo4j_Production_DB"). Select it.
  4. Click the Connect button. Tableau will use the settings you saved in your DSN to attempt a connection.
  5. Because our driver setup is password-based, you won't need to enter credentials here again. Just click Sign In.

If the connection is successful, you will be taken to Tableau’s Data Source screen. Congratulations, Tableau is now connected to your Neo4j database!

Step 4: Prepare Your Data with a Cypher Query

Tableau thinks in terms of tables (rows and columns), not graphs (nodes and relationships). This means you can't just drag your entire graph into Tableau. You need to write a Cypher query to flatten your graph data into a tabular format that Tableau can understand.

In the Tableau Data Source screen, you will see a list of available “Tables”. These are not actual database tables, but rather representations of your graph's node labels and relationship types. Instead of dragging these onto the canvas, it’s far more powerful to use a Custom SQL query.

  1. Find the New Custom SQL option on the left pane and drag it onto the canvas area.
  2. An "Edit Custom SQL" window will pop up. Here is where you will write your Cypher query.
  3. Write a Cypher query that returns a flat list of columns. Your goal is to shape the data for your intended analysis. For instance, if you want to analyze product sales, your query could look like this:
MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:CONTAINS]->(p:Product)
WHERE o.orderDate > date("2023-01-01")
RETURN
  c.companyName AS CustomerName,
  o.orderID AS OrderID,
  p.productName AS ProductName,
  p.unitPrice AS UnitPrice,
  o.orderDate AS OrderDate

After pasting your Cypher query, click OK. Tableau will execute the query against Neo4j and show you a preview of the resulting tabular data. You can now go to a worksheet and start building your visualizations!

Best Practices for Visualizing Graph Data in Tableau

Just because you can connect the two systems doesn't mean every visualization will be useful. Keep a few key principles in mind.

1. Let Cypher Do the Heavy Lifting

Your Cypher query is not just a data-pulling tool, it's a data-shaping tool. Don’t pull raw, unprocessed graph data. Design your queries to return the exact columns and rows required for your visualization. Perform calculations, aggregations, and filtering within the Cypher query whenever possible, as Neo4j is optimized for this kind of traversal and processing.

2. Think Aggregates, Not Individual Nodes

Tableau excels at showing summaries and trends, not drawing node-link diagrams. Avoid writing queries that pull thousands of individual relationship rows. Instead, use Cypher's aggregation functions to pre-summarize the data.

Poor Query: Pulls every single 'PURCHASED' relationship.

MATCH (c:Customer)-[:PURCHASED]->(o:Order) RETURN c.id, o.id

Good Query: Aggregates the number of orders per customer.

MATCH (c:Customer)-[:PURCHASED]->(o:Order) RETURN c.companyName as Customer, count(o) as NumberOfOrders

This second query provides instant material for a clean bar chart in Tableau.

3. Be mindful of Performance

Large, complex Cypher queries can be slow. Test your query's performance in the Neo4j Browser or using an EXPLAIN or PROFILE plan before plugging it into Tableau. For large datasets, consider creating summary nodes or relationships within Neo4j to streamline data retrieval for your dashboards.

Final Thoughts

Connecting Neo4j to Tableau bridges the worlds of graph data and traditional BI, allowing you to leverage the powerful visualization capabilities of Tableau to analyze complex relationships. By setting up the ODBC driver and writing thoughtful Cypher queries, you can transform your intricate graph data into actionable business dashboards.

While this direct connection is effective, we know that configuring drivers, setting up DSNs, and perfecting Cypher queries can add friction to the analysis process. To make a modern data stack truly effortless, we built Graphed to remove this friction. We provide one-click integrations for your most important data sources and allow you to build real-time reports and dashboards just by describing what you need in plain English - no technical setup, complex query languages, or platform-hopping headaches required.

Related Articles

How to Connect Facebook to Google Data Studio: The Complete Guide for 2026

Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.

Appsflyer vs Mixpanel​: Complete 2026 Comparison Guide

The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.