mcp-agensgraph-data-modeling

v0.3.1
mcp-agensgraph-data-modeling Checked 2 hours ago Published 2 months ago

AgensGraph data-modeling MCP server (validate models, generate ingest/constraint Cypher, Arrows/Mermaid).

Integrations, tools and starter material for building AI applications on AgensGraph, the PostgreSQL-based graph database. Every integration here runs on the agensgraph-python driver: LangChain on 2.1, the others on 2.0 or later. Each directory has a README of its own with setup and usage, and an examples/demos/ suite that runs on real datasets. The agensgraph-ai package installs any combination of the integrations under one name. Pick the ones you need:

Summary extracted from the README.

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 driver: LangChain on 2.1, the others on 2.0 or later.

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.14.1 or later for LangChain, 2.17 or later for the others. 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. AgensGraph does not bundle it; see how to build it.

License

Apache License 2.0 — see LICENSE.

Contact

Open an issue or a pull request.