@@ -82,11 +82,21 @@ uv sync
8282
8383## Configuration
8484
85- The server uses the following environment variables:
85+ The server supports both Neo4j and FalkorDB as database backends. Use the ` DATABASE_TYPE ` environment variable to choose between them.
86+
87+ #### Neo4j Configuration (default)
8688
8789- ` NEO4J_URI ` : URI for the Neo4j database (default: ` bolt://localhost:7687 ` )
8890- ` NEO4J_USER ` : Neo4j username (default: ` neo4j ` )
8991- ` NEO4J_PASSWORD ` : Neo4j password (default: ` demodemo ` )
92+
93+ #### FalkorDB Configuration
94+ - ` DATABASE_TYPE ` : Set to ` falkordb `
95+ - ` FALKORDB_HOST ` : FalkorDB host (default: ` localhost ` )
96+ - ` FALKORDB_PORT ` : FalkorDB port (default: ` 6379 ` )
97+ - ` FALKORDB_USERNAME ` : FalkorDB username (optional)
98+ - ` FALKORDB_PASSWORD ` : FalkorDB password (optional)
99+
90100- ` OPENAI_API_KEY ` : OpenAI API key (required for LLM operations)
91101- ` OPENAI_BASE_URL ` : Optional base URL for OpenAI API
92102- ` MODEL_NAME ` : OpenAI model name to use for LLM operations.
@@ -115,7 +125,7 @@ uv run graphiti_mcp_server.py
115125With options:
116126
117127``` bash
118- uv run graphiti_mcp_server.py --model gpt-4.1-mini --transport sse
128+ uv run graphiti_mcp_server.py --model gpt-4.1-mini --transport sse --database-type falkordb --port 8001
119129```
120130
121131Available arguments:
@@ -124,6 +134,7 @@ Available arguments:
124134- ` --small-model ` : Overrides the ` SMALL_MODEL_NAME ` environment variable.
125135- ` --temperature ` : Overrides the ` LLM_TEMPERATURE ` environment variable.
126136- ` --transport ` : Choose the transport method (sse or stdio, default: sse)
137+ - ` --database-type ` : Choose database backend (neo4j or falkordb, default: neo4j)
127138- ` --group-id ` : Set a namespace for the graph (optional). If not provided, defaults to "default".
128139- ` --destroy-graph ` : If set, destroys all Graphiti graphs on startup.
129140- ` --use-custom-entities ` : Enable entity extraction using the predefined ENTITY_TYPES
@@ -175,11 +186,30 @@ The Docker Compose setup includes a Neo4j container with the following default c
175186- URI: `bolt://neo4j:7687` (from within the Docker network)
176187- Memory settings optimized for development use
177188
189+ To run only Neo4j with its MCP server:
190+ ```bash
191+ docker compose up
192+ ```
193+ - Neo4j MCP server on port 8000
194+
195+ #### FalkorDB Configuration
196+
197+ The Docker Compose setup includes a FalkorDB container with the following default configuration:
198+ - Host: `falkordb`
199+ - Port: `6379`
200+ - No authentication by default
201+
202+ To run only FalkorDB with its MCP server:
203+ ```bash
204+ docker compose --profile falkordb up
205+ ```
206+ - FalkorDB MCP server on port 8001
207+
178208#### Running with Docker Compose
179209
180210A Graphiti MCP container is available at: `zepai/knowledge-graph-mcp`. The latest build of this container is used by the Compose setup below.
181211
182- Start the services using Docker Compose:
212+ Start the services using Docker Compose For Neo4j :
183213
184214```bash
185215docker compose up
@@ -191,13 +221,25 @@ Or if you're using an older version of Docker Compose:
191221docker-compose up
192222` ` `
193223
194- This will start both the Neo4j database and the Graphiti MCP server. The Docker setup:
224+ For FalkorDB:
225+
226+ ` ` ` bash
227+ docker compose --profile falkordb up
228+ ` ` `
229+
230+ Or if you' re using an older version of Docker Compose:
231+
232+ ```bash
233+ docker-compose --profile falkordb up
234+ ```
235+
236+ This will start the database(s) and the Graphiti MCP server(s). The Docker setup:
195237
196238- Uses `uv` for package management and running the server
197239- Installs dependencies from the `pyproject.toml` file
198- - Connects to the Neo4j container using the environment variables
199- - Exposes the server on port 8000 for HTTP-based SSE transport
200- - Includes a healthcheck for Neo4j to ensure it ' s fully operational before starting the MCP server
240+ - Connects to the database container using the environment variables
241+ - Exposes the server on port 8000 (Neo4j) or 8001 (FalkorDB) for HTTP-based SSE transport
242+ - Includes healthchecks to ensure databases are fully operational before starting the MCP server
201243
202244## Integrating with MCP Clients
203245
0 commit comments