Neo4j GDS Agent

v1.2.2
io.github.neo4j-contrib/gds-agent Checked 5 days ago Published 24 days ago

Neo4j Graph Data Science MCP server

Values you need

VariableWhat it is
NEO4J_URIrequired Neo4j connection URI (neo4j:// or neo4j+s://)
NEO4J_USERNAMErequired Neo4j username
NEO4J_PASSWORDrequired secret Neo4j password
NEO4J_DATABASEoptional Neo4j database name
NEO4J_READ_ONLYoptional Set to false to expose write_neo4j_cypher. The write tool stays hidden otherwise.
AURA_API_CLIENT_IDoptional Aura API client ID (enables Aura Graph Analytics session mode)
AURA_API_CLIENT_SECREToptional secret Aura API client secret
AURA_API_PROJECT_IDoptional Aura project ID (only if the API client can access multiple projects)

PyPI (uvx)

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add gds-agent -e 'NEO4J_PASSWORD=<NEO4J_PASSWORD>' -e 'NEO4J_URI=<NEO4J_URI>' -e 'NEO4J_USERNAME=<NEO4J_USERNAME>' -- uvx gds-agent==1.2.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "gds-agent": {
      "args": [
        "gds-agent==1.2.2"
      ],
      "command": "uvx",
      "env": {
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "gds-agent": {
      "args": [
        "gds-agent==1.2.2"
      ],
      "command": "uvx",
      "env": {
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "NEO4J_PASSWORD",
      "id": "neo4j-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "NEO4J_URI",
      "id": "neo4j-uri",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "NEO4J_USERNAME",
      "id": "neo4j-username",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "gds-agent": {
      "args": [
        "gds-agent==1.2.2"
      ],
      "command": "uvx",
      "env": {
        "NEO4J_PASSWORD": "${input:neo4j-password}",
        "NEO4J_URI": "${input:neo4j-uri}",
        "NEO4J_USERNAME": "${input:neo4j-username}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.gds-agent]
command = "uvx"
args = ["gds-agent==1.2.2"]
env = { "NEO4J_PASSWORD" = "<NEO4J_PASSWORD>", "NEO4J_URI" = "<NEO4J_URI>", "NEO4J_USERNAME" = "<NEO4J_USERNAME>" }

For AI agents

  1. Ask the user for: NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json