# Neo4j GDS Agent

> Neo4j GDS Agent is an open-source MCP server for databases. MCP server giving LLM clients access to Neo4j Graph Data Science algorithms on your graph. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, API, macOS, Linux, Windows
- **Repository:** https://github.com/neo4j-contrib/gds-agent
- **MCP Registry name:** io.github.neo4j-contrib/gds-agent
- **Categories:** [databases](https://ai-powered.com/categories/databases), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

```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 Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
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
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```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>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```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>"
      }
    }
  }
}
```

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## 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.

## Alternatives

- [Galactus DB](https://ai-powered.com/mcp/galactus-db): Galactus DB is a free MCP server for databases.
- [DBGorilla](https://ai-powered.com/mcp/dbgorilla): DBGorilla is a freemium MCP server for databases.
- [SynapCores](https://ai-powered.com/mcp/synapcores): SynapCores is a free MCP server for databases.
- [ArcadeDB](https://ai-powered.com/mcp/arcadedb): ArcadeDB is an open-source MCP server for databases.
- [Baserow](https://ai-powered.com/mcp/baserow): Baserow is a freemium MCP server for databases.
- [Db Conn MCP](https://ai-powered.com/mcp/db-conn-mcp): Db Conn MCP is an MCP server for databases.
- [Purple8 — AI-Native Application Backend](https://ai-powered.com/mcp/purple8-ai-native-application-backend): Purple8 — AI-Native Application Backend is a freemium MCP server for databases.
- [GaussDB Read-Only MCP](https://ai-powered.com/mcp/gaussdb-read-only-mcp): GaussDB Read-Only MCP is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/neo4j-gds-agent
