Skip to content
MCP server

Neo4j GDS Agent

MCP server giving LLM clients access to Neo4j Graph Data Science algorithms on your graph

Runs locally

Neo4j GDS Agent is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, API
Runs
Locally
Access
Needs a secret key or token
Version
1.2.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add gds-agent --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' --env AURA_API_CLIENT_SECRET='<AURA_API_CLIENT_SECRET>' -- uvx gds-agent

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "gds-agent": {
      "command": "uvx",
      "args": [
        "gds-agent"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
        "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "gds-agent": {
      "command": "uvx",
      "args": [
        "gds-agent"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
        "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "gds-agent": {
      "command": "uvx",
      "args": [
        "gds-agent"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
        "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "gds-agent": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "gds-agent"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
        "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add gds-agent --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' --env AURA_API_CLIENT_SECRET='<AURA_API_CLIENT_SECRET>' -- uvx gds-agent

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.gds-agent]
command = "uvx"
args = ["gds-agent"]
env = { NEO4J_URI = "<NEO4J_URI>", NEO4J_USERNAME = "<NEO4J_USERNAME>", NEO4J_PASSWORD = "<NEO4J_PASSWORD>", AURA_API_CLIENT_SECRET = "<AURA_API_CLIENT_SECRET>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "gds-agent": {
      "command": "uvx",
      "args": [
        "gds-agent"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
        "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "gds-agent": {
          "command": "uvx",
          "args": [
            "gds-agent"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
            "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e NEO4J_URI='<NEO4J_URI>' -e NEO4J_USERNAME='<NEO4J_USERNAME>' -e NEO4J_PASSWORD='<NEO4J_PASSWORD>' -e AURA_API_CLIENT_SECRET='<AURA_API_CLIENT_SECRET>' gds-agent uvx -- gds-agent

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "gds-agent": {
          "command": "uvx",
          "args": [
            "gds-agent"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
            "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "gds-agent": {
          "command": "uvx",
          "args": [
            "gds-agent"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
            "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "gds-agent": {
          "command": "uvx",
          "args": [
            "gds-agent"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
            "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "gds-agent": {
          "command": "uvx",
          "args": [
            "gds-agent"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
            "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "gds-agent": {
          "command": "uvx",
          "args": [
            "gds-agent"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
            "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "gds-agent": {
          "command": "uvx",
          "args": [
            "gds-agent"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
            "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "gds-agent": {
          "command": "uvx",
          "args": [
            "gds-agent"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
            "AURA_API_CLIENT_SECRET": "<AURA_API_CLIENT_SECRET>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • NEO4J_URINeo4j connection URI (neo4j:// or neo4j+s://)Required
  • NEO4J_USERNAMENeo4j usernameRequired
  • NEO4J_PASSWORDNeo4j passwordRequired
  • NEO4J_DATABASENeo4j database name
  • NEO4J_READ_ONLYSet to false to expose write_neo4j_cypher. The write tool stays hidden otherwise.
  • AURA_API_CLIENT_IDAura API client ID (enables Aura Graph Analytics session mode)
  • AURA_API_CLIENT_SECRETAura API client secret
  • AURA_API_PROJECT_IDAura project ID (only if the API client can access multiple projects)

About Neo4j GDS Agent

The README says the server exposes Neo4j Graph Data Science algorithms such as centrality, community detection, path finding, similarity, node embeddings and ML pipelines to MCP-capable clients. It runs over stdio by default, with an optional streamable HTTP mode, and is installed from PyPI via uvx.

The server connects to either a self-managed Neo4j instance with the GDS plugin or a GDS Aura Graph Analytics session on AuraDB. In session mode it adds tools to create, list and delete sessions, and the README notes that Aura sessions are billed separately from the database.

It is aimed at people who keep connected data in Neo4j and want an assistant to run graph analysis on it. A companion agent skill covers GDS workflow practices, and Cypher read and schema tools are included, with a write tool hidden unless explicitly enabled.

What it does

Graph algorithm tools
Exposes GDS algorithms for centrality, community detection, path finding, similarity and node embeddings.
Aura session mode
Detects AuraDB and runs projections and algorithms in managed Graph Analytics sessions.
Read-only by default
The Cypher write tool stays hidden unless NEO4J_READ_ONLY is set to false.
Stdio and HTTP transport
Runs over stdio for local clients or as a streamable HTTP server.
Companion agent skill
A neo4j-graph-data-scientist skill teaches the agent when and how to use the tools.

Good for

  • Asking natural-language questions about a Neo4j graph from an assistant client
  • Running community detection or centrality analysis on connected data without writing GDS code
  • Projecting graphs into an Aura Graph Analytics session for heavier workloads
  • Letting an agent inspect a Neo4j schema and run read-only Cypher queries

Pricing

Open source

Open-source server; Aura Graph Analytics sessions are billed separately by Neo4j.

Neo4j GDS Agent FAQ

Which Neo4j setups does Neo4j GDS Agent support?

The README says it works with self-managed Neo4j that has the GDS plugin installed, and with GDS Aura Graph Analytics sessions on AuraDB.

How do I install Neo4j GDS Agent?

For most local clients the README says to run uvx gds-agent over stdio with the Neo4j environment variables set, or use the Claude Code, Claude Desktop, Codex, Cursor, VS Code and Gemini CLI setup guides.

Can the agent modify my database?

Write Cypher is hidden unless NEO4J_READ_ONLY is set to false, according to the README.

Is Neo4j GDS Agent free?

Yes. Neo4j GDS Agent is open source, so you can use and self-host it for free.

How do I add Neo4j GDS Agent to Claude Code?

Run this command in your terminal: claude mcp add gds-agent --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' --env AURA_API_CLIENT_SECRET='<AURA_API_CLIENT_SECRET>' -- uvx gds-agent

What are the best alternatives to Neo4j GDS Agent?

The closest alternatives to Neo4j GDS Agent are Galactus DB, DBGorilla, SynapCores, ArcadeDB and Baserow.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers