Skip to main content

GDS Agent

This MCP Server includes toolings from Neo4j Graph Data Science (GDS) library, which allows you to run all common graph algorithms, node embeddings, and machine learning pipelines.

Once set up, you can ask any graph question about your Neo4j graph and get answers. You can collaborate with the agent as a graph data scientist to solve complex tasks. LLMs equipped with GDS agent can decide and execute the appropriate parameterised graph algorithms over the graph you have in your Neo4j database.

Usage guide

If you have uvx installed, add the following config to your claude_desktop_config.json

{
    "mcpServers": {
      "neo4j-gds": {
      "command": "/opt/homebrew/bin/uvx",
      "args": [ "gds-agent" ],
      "env": {
        "NEO4J_URI": "bolt://localhost:7687",
        "NEO4J_USERNAME": "neo4j",
        "NEO4J_PASSWORD": ""
      }
    }
    }
}

Replace command with your uvx location. Find out by running which uvx in the command line. Replace NEOJ_URI, NEO4J_USERNAME, NEO4J_PASSWORD with your database login details. You can also optionally specify NEO4J_DATABASE.

By default the server uses STDIO transport. For HTTP-native clients, run:

gds-agent --transport http --host 127.0.0.1 --port 8000 --path /mcp

You can also set GDS_AGENT_TRANSPORT, GDS_AGENT_HOST, GDS_AGENT_PORT, and GDS_AGENT_PATH. The Neo4j MCP-style NEO4J_TRANSPORT and NEO4J_MCP_SERVER_* names are also supported.

GDS Aura Graph Analytics (sessions)

The server detects whether the connected Neo4j has the GDS plugin installed or whether to use a GDS Aura Graph Analytics session. Detection runs gds.session.list() on startup; if it succeeds, session mode is used and graph projections fall back to gds.graph.project.remote.

Session mode requires Aura API credentials. Add them to the same env block (or .env file) used for the database credentials:

"AURA_API_CLIENT_ID": "...",
"AURA_API_CLIENT_SECRET": "...",
"AURA_API_PROJECT_ID": "...",
"SESSION_MEMORY_GB": "8",
"SESSION_TTL_HOURS": "24"

AURA_API_PROJECT_ID is optional (needed only if your Aura API client has access to multiple projects), as are SESSION_MEMORY_GB (default 8) and SESSION_TTL_HOURS (default 24). Sessions are managed explicitly by the agent: three extra tools become available in session mode (list_sessions, create_session, and delete_session). A session must first be created with create_session, project_graph_cypher then projects each graph into the session named by its required sessionName parameter, and algorithm calls are routed to the right session automatically by graphName. Most workflows need a single session holding all graphs; multiple sessions allow running analyses in parallel. To resize a session (e.g. after an OOM), delete it and create it again with a larger memoryGB. All sessions created by the server are named with an mcp_ prefix.

Other clients and the graph-analysis skill

This package is one half of the GDS Agent: the repository also ships a neo4j-graph-data-scientist Agent Skill and one-step installers for Claude Code (plugin), Claude Desktop (MCPB bundle), OpenAI Codex, Cursor, VS Code/Copilot, and Gemini CLI. See the per-harness setup guides: https://github.com/neo4j-contrib/gds-agent#install.

Full documentation

For complete documentation and development guidelines, please refer to: https://github.com/neo4j-contrib/gds-agent.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gds_agent-1.0.1.tar.gz (137.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gds_agent-1.0.1-py3-none-any.whl (65.9 kB view details)

Uploaded Python 3

File details

Details for the file gds_agent-1.0.1.tar.gz.

File metadata

  • Download URL: gds_agent-1.0.1.tar.gz
  • Upload date:
  • Size: 137.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for gds_agent-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1ee759dae60e3ec26ad36361731d5076fc5b803ca495f2176e6558e5f1c12ff0
MD5 da14a8eea9f382d513921858de15dcd3
BLAKE2b-256 3f082efef2da07afbf82c351d098c5a60f217f74d65b1a9cb9924399b44070b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gds_agent-1.0.1.tar.gz:

Publisher: release.yml on neo4j-contrib/gds-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gds_agent-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gds_agent-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 65.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for gds_agent-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36f77dcf70f0cca0a9871fe242de284bf8af85f51870a3c44feb8cff3a6e416d
MD5 485554456dd80adf46747a74c502460f
BLAKE2b-256 c6976ea0f54abbf86ebcd78f628aa218faad7eeeaff7b15e4e298c43f9664154

See more details on using hashes here.

Provenance

The following attestation bundles were made for gds_agent-1.0.1-py3-none-any.whl:

Publisher: release.yml on neo4j-contrib/gds-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page