Skip to main content

AgensGraph AI

Integrations, tools and starter material for building AI applications on AgensGraph, the PostgreSQL-based graph database. Every integration here runs on the agensgraph-python 2.0 driver.

Integration Package What it gives you
LangChain langchain-agensgraph a graph store and a vector store, three retrievers, a text2cypher chain, a LangGraph checkpointer and long-term memory store, chat message history
LlamaIndex llama-index-agensgraph a property graph store for PropertyGraphIndex and a vector store for VectorStoreIndex
LightRAG lightrag-agensgraph all four LightRAG storages — graph, vectors, key-value, document status — in one database
cognee cognee-agensgraph cognee's graph store and vector store in one database
MCP mcp-agensgraph-cypher, mcp-agensgraph-memory, mcp-agensgraph-data-modeling three Model Context Protocol servers: Cypher over a graph, a knowledge-graph memory, and graph data modeling

Each directory has a README of its own with setup and usage, and an examples/demos/ suite that runs on real datasets.

Installation

The agensgraph-ai package installs any combination of the integrations under one name. Pick the ones you need:

pip install "agensgraph-ai[langchain]"
pip install "agensgraph-ai[langchain,lightrag]"
pip install "agensgraph-ai[all]"
Extra Installs Import
langchain langchain-agensgraph langchain_agensgraph
llama-index llama-index-agensgraph llama_index_agensgraph
lightrag lightrag-agensgraph lightrag_agensgraph
cognee cognee-agensgraph cognee_agensgraph
mcp the three mcp-agensgraph-* servers run as commands
all all of the above

Name at least one extra. pip install agensgraph-ai on its own installs no integrations, and an extra that is misspelled installs none either — pip warns about that, uv does not.

Each integration is also released on its own, so it can be installed by name instead. The two forms produce the same environment — agensgraph-ai ships no code, and is a convenience rather than a layer:

pip install langchain-agensgraph
pip install llama-index-agensgraph
pip install lightrag-agensgraph
pip install cognee-agensgraph

The MCP servers are commands rather than libraries, and an MCP client normally launches them itself with uvx, which needs no install at all:

"mcpServers": {
  "agensgraph-cypher": {
    "command": "uvx",
    "args": ["mcp-agensgraph-cypher", "--transport", "stdio"]
  }
}

The mcp extra is for the other case: hosting a server yourself over HTTP or SSE.

Requirements

  • Python 3.11 or later.
  • A running AgensGraph 2.17 or later; the driver refuses an older server at connect. SHOW agversion tells you which you have. From 2.18 a release reports four numbers, such as 2.18.4.0, with -rc1 on a release candidate; the first two are the line, so 2.18.6.0-rc1 is a 2.18 server.
  • The vector-backed features need the pgvector extension, and schema introspection is faster with the meta extension. AgensGraph bundles neither; see how to build them.

License

Apache License 2.0 — see LICENSE.

Contact

Open an issue or a pull request.

Release files for agensgraph-ai 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agensgraph-ai 0.3.1
File Size Uploaded
agensgraph_ai-0.3.1.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agensgraph-ai 0.3.1
File Interpreter ABI Platform
agensgraph_ai-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.0 kB

Release files / agensgraph_ai-0.3.1.tar.gz

Download URL agensgraph_ai-0.3.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
21a015922275db5ec296468cef8f58dcc4ef4e4cc1ec1524af7e5c2ac3584c3f
BLAKE2b-256 checksum
How to use checksums
1640d7df4edeabd4205195caa7a98c8eb201fefcc3a86ed2a318f5fe2a13fe09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / agensgraph_ai-0.3.1-py3-none-any.whl

Download URL agensgraph_ai-0.3.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1045c0d83ad5e0ef07779c127e6bde3e77edfafbef58ba6e0a0d2d7fcc7bc88e
BLAKE2b-256 checksum
How to use checksums
0bd86932f5b0975eef31ccbd82d1cf0ca9f925f760933f9243b875ff164c29ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release 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