langchain-neo4j
An integration package connecting Neo4j and LangChain
Decision gist · record as of 2026-08-14
Yes, if you are building LangChain applications that need to integrate Neo4j. The package is actively maintained, has low install friction, carries no known vulnerabilities, and provides well-documented abstractions for common graph-LLM patterns. Install only if you have a Neo4j instance available and a use case that benefits from graph storage or reasoning.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Neo4j instance accessible at the specified URL; Python 3.10 or later.
- Low friction install with a pure Python wheel.
- Active maintenance with recent releases; last commit 2026-08-10.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2026-06-10 (65 days) · last repo commit 2026-08-10 · 42 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 252,731 downloads/mo, #8,535 on PyPI
Alternatives
Verify before relying
pip install langchain-neo4j
from langchain_neo4j import Neo4jGraph
graph = Neo4jGraph(url="bolt://localhost:7687", username="neo4j", password="password")
result = graph.query("MATCH (n) RETURN n LIMIT 1;")- Whether Neo4jVector requires external embedding models (e.g., OpenAI) or supports local embeddings.
- Performance characteristics when storing large chat histories or vector indexes in Neo4j.
- Compatibility with Neo4j versions older than the driver's minimum requirement.
What it is and what it does
langchain-neo4j bridges Neo4j graph databases and LangChain's LLM framework, providing high-level abstractions for common patterns. It includes Neo4jGraph for direct Cypher queries, Neo4jChatMessageHistory for persisting conversations, Neo4jVector for semantic search over documents, and GraphCypherQAChain for translating natural language questions into Cypher queries. It also offers Neo4jSaver and AsyncNeo4jSaver as checkpoint backends for LangGraph workflows, and LLMGraphTransformer to extract knowledge graphs from unstructured text.
The package is designed for developers building AI applications that need to store, query, or reason over structured knowledge in a graph. Its main dependencies are langchain-core, langgraph, neo4j, and neo4j-graphrag—all part of the LangChain ecosystem. Installation is straightforward, but you must have a Neo4j instance running and accessible over the network.
Use it for
- Build a chatbot that recalls conversation history from Neo4j across sessions.
- Translate natural language questions into Cypher queries and retrieve graph data via an LLM.
- Store and search document embeddings in Neo4j for semantic similarity retrieval.
- Extract entities and relationships from unstructured text and populate a Neo4j knowledge graph.
- Persist LangGraph agent state and checkpoints in Neo4j for fault tolerance and replay.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building LangChain applications that need to integrate Neo4j.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and provides well-documented abstractions for common graph-LLM patterns. Install only if you have a Neo4j instance available and a use case that benefits from graph storage or reasoning.
Install
langchain-neo4j on PyPI
Before you install
Low friction install with a pure Python wheel. Active maintenance with recent releases; last commit 2026-08-10. Depends on langchain-core, langgraph, neo4j, and neo4j-graphrag, which are established LangChain ecosystem packages.
Requires a running Neo4j instance accessible at the specified URL; Python 3.10 or later.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install langchain-neo4j
from langchain_neo4j import Neo4jGraph
graph = Neo4jGraph(url="bolt://localhost:7687", username="neo4j", password="password")
result = graph.query("MATCH (n) RETURN n LIMIT 1;")
Verify before relying
- Whether Neo4jVector requires external embedding models (e.g., OpenAI) or supports local embeddings.
- Performance characteristics when storing large chat histories or vector indexes in Neo4j.
- Compatibility with Neo4j versions older than the driver's minimum requirement.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <3.15,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packageslangchain-classiclangchain-corelanggraphneo4j-graphragneo4j |
| Maintenance | Actively maintained 65 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 252,731 / month, #8,535 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: langchain_neo4j-0.10.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “neo4j langchain integration”
- langchain-neo4jIntegrates Neo4j graph databases with LangChain, providing wrappers…
- apache-airflow-providers-neo4jIntegrates Neo4j graph database operations into Apache Airflow…
- neo4j-graphragBuilds graph retrieval-augmented generation (GraphRAG) applications…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also neo4j-graphrag · graphlib · ragstack-ai-knowledge-store · neomodel · langchain-postgres · braintrust-langchain · langchain-azure-ai · langgraph-checkpoint · langchain-graph-retriever · py2neo-history