Flexible Graphrag

Data and AIDatabases

GraphRAG, RAG, LlamaIndex, LangChain, 15 Prop Graph, 4 RDF, 10 Vector, 3 Search DBs. 14 data srcs, auto sync, Alfresco, Nuxeo, SharePoint, Box, CMIS, S3,GCS,Azure, web. KG auto-bld, Ontologies, 13 LLM providers, Docling, LlamaParse, LiteParse, Hybrid Search, AI Chat. TypeScript React, Vue, Angular, Python, REST, MCP, OpenArch, Langflow, CocoIndex.

Your AI app calls the Flexible Graphrag MCP server, which does the data and AI and databases work and sends the result back to the chat.

About Flexible Graphrag

Flexible Graphrag is a community MCP server from stevereiner, filed in our directory under data and ai and databases. GraphRAG, RAG, LlamaIndex, LangChain, 15 Prop Graph, 4 RDF, 10 Vector, 3 Search DBs. 14 data srcs, auto sync, Alfresco, Nuxeo, SharePoint, Box, CMIS, S3,GCS,Azure, web. KG auto-bld, Ontologies, 13 LLM providers, Docling, LlamaParse, LiteParse, Hybrid Search, AI Chat. TypeScript React, Vue, Angular, Python, REST, MCP, OpenArch, Langflow, CocoIndex.

At a glance

Publisher
stevereiner (community)
Runs
See the README for setup
Written in
Python
License
Apache-2.0
GitHub stars
205

How to set up Flexible Graphrag

  1. Follow the install steps in the Flexible Graphrag README; it is written in Python, so have that toolchain ready.
  2. Check the Flexible Graphrag README for keys or settings; the registry lists none that Flexible Graphrag requires.
  3. Add Flexible Graphrag to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Flexible Graphrag tools to confirm the connection.
  5. Run one read-only task with Flexible Graphrag first, and keep your app asking before each tool call until the results look right.

Flexible Graphrag compared with similar servers

  • Guardian by eqtylab has fewer GitHub stars than Flexible Graphrag (205 against 205); both are community servers, and both run locally.
  • Gis by mahdin75 has more GitHub stars than Flexible Graphrag (210 against 205); both are community servers, and both run locally.
  • Exstruct by harumiWeb has fewer GitHub stars than Flexible Graphrag (204 against 205); both are community servers, and both run locally.

Before you connect Flexible Graphrag

  • Give Flexible Graphrag its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Flexible Graphrag tool call until you trust what it does with them.
  • Treat text that Flexible Graphrag fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Flexible Graphrag on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Flexible Graphrag

How marketing and sales teams put Flexible Graphrag to work, by company size. Pick the size closest to yours and start Flexible Graphrag on one use case.

Small business

  • A small team can use Flexible Graphrag to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Owners can ask Flexible Graphrag to sort feedback, reviews or survey answers into themes and see what customers mention most.
  • A small business with its own app can ask Flexible Graphrag plain questions about customers and orders, without writing SQL.
  • Flexible Graphrag runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Flexible Graphrag to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Content and research teams can use Flexible Graphrag to analyze transcripts and surveys at scale and pull the quotes worth using.
  • Marketing analysts can connect Flexible Graphrag to answer campaign questions from the warehouse directly, instead of waiting on the data team's queue.
  • Start Flexible Graphrag on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Flexible Graphrag inside their own cloud and data boundary, so models and data stay where governance requires.
  • Large teams can use Flexible Graphrag in batch pipelines with evaluation and logging, so AI output is measured before it reaches customers.
  • Enterprises should point Flexible Graphrag at a read replica with a read-only role, so agents query freely without risk to production data.
  • Flexible Graphrag is a community server, so have security review the code and pin a version before Flexible Graphrag touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Flexible Graphrag README

From stevereiner/flexible-graphrag on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Flexible GraphRAG

Langflow pipeline mode, a SharePoint auto-sync data source (MS Graph delta query) ingesting and targeting Qdrant vector, Elasticsearch, Neo4j, and Graphwise Ontotext GraphDB, with ontology-mode, AI chat drawing context from all four.

Can use 1 of 3 ingest pipelines with same configured data sources and database targets, with same UI and same REST / MCP APIs

Flexible GraphRAG is an open source AI context platform supporting a document processing pipeline (Docling, LlamaParse, or LiteParse), knowledge graph auto-building, ontologies, schemas, many LLM providers, GraphRAG and RAG, hybrid semantic search (fulltext, vector, property graph, RDF/SPARQL), AI query, and AI chat. The backend is Python with LlamaIndex and LangChain as peer frameworks. LlamaIndex is the default for each pipeline stage; LangChain can be selected per stage in environment configuration. The API is a REST FastAPI service. Angular, React, and Vue TypeScript frontends and an MCP server are included. The stack supports 14 data sources (10 with incremental auto-sync), 15 property graph databases, 4 RDF triple stores (Apache Jena Fuseki, Ontotext GraphDB, Oxigraph, Amazon Neptune RDF), 10 vector databases, OpenSearch / Elasticsearch / BM25 search, Alfresco, and Nuxeo. Databases and dashboards can be enabled with the provided Docker Compose layout. Optionally, the ingest pipeline, hybrid search, and AI query can run through customizable Langflow visual flows (12 custom Langflow components). As a further option, ingest can run on a CocoIndex (Rust engine) pipeline that reuses the same sources, targets, parsers and KG extractors, adding step-level memoization and automatic delete reconciliation. And optionally, Hyland OpenArch, an AI-ready content repository for documents with their extracted text and vector embeddings, can be the search + vector store and the store for data sources and document state.

New 11/16/26, v0.11.0 release: an early version of a Desktop App (Tauri/Rust) around the React, Vue or Angular UI with the 5 Flexible GraphRAG tabs, that adds browsing, ingesting, searching and graph viewing (5th tab) of local files and folders (can auto-sync) along with all the other data sources (desktop app); in the desktop and web UIs, Browse... shows a file/folder browser in the Alfresco, Nuxeo, CMIS, SharePoint, OneDrive, Box, S3, Azure Blob, GCS, Google Drive data source forms; an optional lighter Docker-free config (e.g. for the desktop app): SQLite as the auto-sync incremental update state store (INCREMENTAL_STATE_STORE=sqlite) along with embedded stores such as LanceDB, BM25, LadybugDB; Federated Flexible GraphRAG Backends: search and AI query/chat that fuse results e.g. from a personal backend, plus a team one, plus a company one (REMOTE_FG_BACKENDS).

New 11/10/26, v0.10.0 release: a Graph tab in the React, Vue and Angular UIs showing the entities and relationships extracted from an ingest, search results, or AI answer sources, and from a document or folder in KG Spaces. Also an Ollama fix that keeps models on the GPU (new OLLAMA_CONTEXT_WINDOW, default 8192) (see Ollama configuration).

New 11/3/26, v0.9.1 release: OpenArch in the Flexible GraphRAG Docker Compose stack (docker/includes/openarch.yaml, not just in KG Spaces Deployment); faster KG extraction by raising KG_EXTRACTION_WORKERS (default 4; 8-16 with cloud LLMs); security fixes (see SECURITY.md for reporting and the deployment model): REST / MCP filesystem ingest only reads paths under uploads/, SOURCE_PATHS or the new INGEST_ALLOWED_PATHS; query injection fixed in the Memgraph, Apache AGE, ArcadeDB, Ladybug, Gremlin / Cosmos DB and NebulaGraph adapters and the RDF converter; and graph Q&A now runs only read queries, so a question can't get the LLM to change or delete graph data. Also preparatory work for Python 3.15 and free-threaded 3.15t (see Python 3.15).

New 10/23/26, v0.9.0 release: Optional Hyland OpenArch as the search + vector store (ENABLE_OPENARCH) and as the store for data sources and document state, with no PostgreSQL (INCREMENTAL_STATE_STORE=openarch) (see usage); separate Graph and RDF choices per row and ingest; a per-user Jobs list; a title bar with Dark / Light theme in the Angular UI library; and KG Spaces for Nuxeo (Add to KG Spaces and Ask from Nuxeo Web UI).

New 10/19/26, v0.8.6 release: Sign-in and permission-aware search for every repository and cloud source: Alfresco, Nuxeo, CMIS, SharePoint / OneDrive, Box, Google Drive / Cloud Storage, Azure Blob and Amazon S3, with one sign-in pill in the header whose drop-down signs you in and out of each data source and server, and a Sources picker, in the React, Vue and Angular UIs and in KG Spaces; S3 and Azure Blob results open the file through short-lived signed links; per-row Processing columns for every data source and a Deep (subfolders) checkbox; MCP permission levels and browser sign-in. See the Sign-In Guide.

New 10/17/26, v0.8.5 release: Sign in to Alfresco in the React, Vue and Angular UIs: search and AI chat answer only from Alfresco documents you may read (with a server picker in the sign-in dialog when several Alfresco servers are in the stores), and the Alfresco source form can ingest using the sign-in. The MCP server's search and query tools filter by Alfresco permissions too (pass the user's ticket or credentials). Data-source forms no longer pre-fill credentials or get autofilled by the browser, and KG Spaces can ingest from another Alfresco server (in Other Sources, after adding alfresco to its enabledSources config; KG Spaces search still covers only the Alfresco server ACA is signed in to).

New 10/10/26, v0.8.4 release: Hybrid search results (graph and RDF too) and AI query / AI chat answers now name the documents they came from, as links: Alfresco documents open in the Alfresco Content App viewer over their folder (or Share), Nuxeo in its Web UI, web pages and Wikipedia at their URL, and YouTube at the transcript segment's time. In KG Spaces, closing ACA's viewer returns to your search results and chat. KG Spaces hybrid search returns full results again, and ArcadeDB moves to 26.10.1.

New 10/8/26, v0.8.3 release: The Processing tab now has per-row Search+Vector, Graphs and Auto Sync checkbox columns (Alfresco, Nuxeo and file uploads initially), so in addition to ingest, can toggle having vector+search, graphs, and auto sync, row by row, Jobs sub-tab and Run in background. KG Spaces adds Ask KG Spaces about this document / folder (then ask in AI chat). Hybrid search, AI query, and AI chat, return only from documents the signed-in Alfresco user may read.

New 10/2/26, v0.8.2 release: The Flexible GraphRAG Angular frontend's tab components are now a shared library project, published on npm as @flexible-graphrag/angular-ui, and also used by the new KG Spaces for Alfresco Content App (kg-spaces-aca), redone as a real Apache 2.0 ACA extension. Besides using multi-select of Alfresco files and folders (any mix) from ACA's regular file list views, wherever they are, it now has the data sources tab (renamed there OTHER SOURCES) for choosing additional data sources supported by Flexible GraphRAG. AI context can be kept up to date with auto change sync from Alfresco, Nuxeo, SharePoint, Box, Amazon S3, Azure Blob Storage, Google Cloud Storage, Google Drive and OneDrive, and ingested without auto sync from File Upload, CMIS, Web Pages, Wikipedia and YouTube.

New 9/16/26, v0.8.1 release: Alfresco Docker stack upgraded to Community 26.2.0, support for Alfresco OpenSearch and Elasticsearch (shared with the Flexible GraphRAG app or dedicated), and a file upload data source path-traversal fix.

New 8/18/26, v0.8.0 release: Optional CocoIndex integration, Rust-backed CocoIndex pipeline mixed with Flexible GraphRAG sources (incl. detectors), functions, and targets (more PG/vector/RDF/search); same UI/REST/MCP. Standalone app.py also supported. Now with custom KG extractors (bring your own, or fall back to the built-in one per document) and entity resolution. New meeting-notes example (examples/cocoindex/meeting_notes_graph_any/), a CocoIndex example ported to run against any configured graph store and source. See CocoIndex Integration.

New 8/8/26, v0.7.2 release: Nuxeo added as a data source, all 3 UIs (React/Vue/Angular) plus REST/MCP, with basic / token / OAuth2 auth and real-time incremental sync via the Nuxeo audit event stream (Kafka). Alfresco OAuth2 and ticket authentication added across the source, all 3 UIs, initial ingest, and real-time sync. Alfresco Community 26.1 Docker upgrade. The MCP server gained optional OAuth2 on its transport (bearer token via your IdP) and moved to FastMCP 3. Requires python-alfresco-api >= 1.2.1.

New 7/20/26, v0.7.1 release: Document processing now supports LiteParse in addition to the previous Docling and LlamaParse support. Langflow integration ships with fixes and an optional Langflow Docker image bundling the 12 "Flexible" components. MS Graph delta query support was added for more efficient incremental updating with SharePoint and OneDrive data sources.

New 7/5/26: Optional Langflow visual flows, the app can run its ingest pipeline, hybrid search, and AI query through customizable Langflow flows (12 custom Flexible GraphRAG components), using your existing .env config. See Langflow Integration.

New 5/6/26: 15 property graph databases total: 8 supported on both LlamaIndex and LangChain, 1 LI-only (Google Cloud Spanner Graph), 6 LC-only (ArangoDB, Apache AGE, Azure Cosmos DB for Gremlin, Apache HugeGraph, SurrealDB, TigerGraph). AWS Neptune RDF/SPARQL added. All 10 vector databases, all 3 search engines, and all LLM/embedding providers work with both LlamaIndex and LangChain. Every pipeline stage (chunking, KG extraction, graph write, vector write, search write, and retrieval fusion) can be configured independently. (Data source reading is LlamaIndex only; RDF stores use framework-independent adapters with LangChain Text-to-SPARQL retrieval.)

New: Flexible GraphRAG now supports RDF-based ontologies for both property graph databases and RDF triple store databases (Graphwise Ontotext GraphDB, Fuseki, and Oxigraph). Document ingestion with KG extraction, auto incremental data source change detection, and UI search (hybrid search, AI query, and AI chat) are all supported with both database types.

New: Flexible GraphRAG supports automatic incremental updates (Optional) from most data sources, keeping your Vector, Search and Graph databases synchronized in real-time or near real-time.

New: KG Spaces Integration of Flexible GraphRAG in Alfresco ACA Client

New in v0.6.0: Version 0.6.0 broadened framework and database choice: LangChain is a full peer to LlamaIndex (per-stage env pickers for chunking, vector, search, property graph, KG extraction, fusion). 15 property graph backends: 8 on both frameworks, Google Cloud Spanner (LlamaIndex-only), 6 LangChain-only (ArangoDB, Apache AGE, Azure Cosmos DB for Gremlin, HugeGraph, SurrealDB, TigerGraph). RDF includes Apache Jena Fuseki, Ontotext GraphDB, Oxigraph, and Amazon Neptune RDF. Incremental delete, LangChain adapters, and cleanup paths were extended across stores.

Features

  • Hybrid Search: Configurable hybrid search combining vector search, full-text search, property-graph GraphRAG, and SPARQL against RDF stores.
  • Knowledge Graph GraphRAG: Extracts entities and relationships from documents to build graphs in property graph databases and RDF stores. Optional schemas and ontologies guide extraction or act as a starting point for the LLM to extend.
  • RDF/Ontology Support: Load OWL/RDFS ontologies to guide KG extraction into any property graph or RDF store; SPARQL 1.1 queries; RDF 1.2 triple annotations; full UI pipeline (ingest, hybrid search, AI query/chat, incremental auto-sync). See Ontology and RDF Support below.
  • 15 Property Graph Databases: 9 on both LI+LC (Neo4j, ArcadeDB, FalkorDB, Ladybug, Memgraph, NebulaGraph, Amazon Neptune, Neptune Analytics, Google Cloud Spanner), 6 LC-only (ArangoDB, Apache AGE, Cosmos Gremlin, HugeGraph, SurrealDB, TigerGraph), with KG extraction, hybrid search, and AI query/chat
  • 4 RDF Triple Stores: Apache Jena Fuseki, Ontotext GraphDB, Oxigraph, Amazon Neptune RDF.
  • 10 Vector Databases: Qdrant, Elasticsearch, OpenSearch, Neo4j, Chroma, Milvus, Weaviate, Pinecone, PostgreSQL pgvector, LanceDB, for semantic similarity search
  • 3 Search Databases: Elasticsearch, OpenSearch, BM25 (built-in), for full-text search and hybrid ranking
  • Hyland OpenArch (optional): Hyland OpenArch, an AI-ready content repository for documents with their extracted text and vector embeddings, as a combined search + vector store (ENABLE_OPENARCH=true) and/or as the auto-sync state store in place of PostgreSQL (INCREMENTAL_STATE_STORE=openarch), with per-folder / per-document scope rules, see docs/DATABASES/OPENARCH/OPENARCH.md
  • LLM providers (KG extraction & chat): Ollama, OpenAI, Azure OpenAI, Google Gemini, Anthropic Claude, Google Vertex AI, Amazon Bedrock, Groq, Fireworks AI, OpenAI-compatible endpoints (openai_like), OpenRouter, LiteLLM proxy, and vLLM, configurable via LLM_PROVIDER; see Supported LLM Providers
  • Embedding providers: OpenAI, Ollama, Azure OpenAI, Google GenAI, Vertex AI, Bedrock, Fireworks, OpenAI-like (EMBEDDING_KIND=openai_like), and LiteLLM, see LLM Configuration
  • Dual-framework pipeline: LlamaIndex and LangChain are first-class choices for chunking, vector and search adapters, property graphs, KG extraction, RDF text-to-SPARQL retrieval, and hybrid fusion, each stage can be set independently (LlamaIndex defaults). See Framework Configuration.
  • Document Processing: Docling (default), LlamaParse (cloud API), or LiteParse (local, lightweight) document parsing.
  • 14 Data Sources: 10 with incremental auto sync (Alfresco, Nuxeo, SharePoint, OneDrive, Box, Google Drive, Amazon S3, Google Cloud Storage, Azure Blob Storage, Filesystem) and 4 without (CMIS, Web Pages, Wikipedia, YouTube).
  • Sign-In and Permission-Aware Search: One sign-in pill in the header whose drop-down signs users in and out of each repository and cloud service; hybrid search, AI query and AI chat then use only the documents that user may read, and a Sources picker limits a question to chosen sources.
  • Observability: Built-in OpenTelemetry instrumentation with automatic LlamaIndex tracing, Prometheus metrics, Jaeger traces, and Grafana dashboards for production monitoring
  • FastAPI Server with REST API: Python based FastAPI server with REST APIs for document ingesting, hybrid search, AI query, and AI chat.
  • MCP Server: MCP server providing Claude Desktop and other MCP clients with tools for document/text ingesting (all 14 data sources with 10 supporting incremental auto sync), hybrid search, and AI query. Uses FastAPI backend REST APIs.
  • UI Clients: Angular, React, and Vue UI clients support choosing the data source (filesystem, Alfresco, CMIS, etc.), ingesting documents, performing hybrid searches, AI queries, and AI chat. The UI clients use the REST APIs of the FastAPI backend.
  • Docker Deployment Flexibility: Supports both standalone and Docker deployment modes. Docker infrastructure provides modular database selection via docker-compose includes - vector, graph, search engines, and Alfresco can be included or excluded with a single comment. Choose between hybrid deployment (databases in Docker, backend and UIs standalone) or full containerization.
  • Langflow Visual Flows (optional): Run the ingest pipeline, hybrid search, and AI query through customizable Langflow flows built from 12 custom Flexible GraphRAG components, the same backend machinery (all database, LLM, and framework .env config applies), orchestrated visually. See Langflow Integration.
  • CocoIndex Integration (optional): Optional Rust-backed CocoIndex ingest (PIPELINE_BACKEND=cocoindex) mixing CocoIndex connectors with Flexible GraphRAG sources (incl. event detectors), parsers, chunkers, embeddings, LI/LC KG extractors, and broader targets (all 15 PG + 10 vector + RDF + search), same UI / REST / MCP. Mutually exclusive with ENABLE_INCREMENTAL_UPDATES=true and ENABLE_LANGFLOW_FLOWS=true. Standalone app.py also supported. See CocoIndex Integration.

Frontend Screenshots

Angular Frontend - Tabbed Interface
Click to view Angular UI screenshots (Light Theme)
Sources Tab Processing Tab Search Tab Chat Tab
React Frontend - Tabbed Interface
Click to view React UI screenshots (Dark Theme)
Sources Tab Processing Tab Search Tab Chat Tab
Click to view React UI screenshots (Light Theme)
Sources Tab Processing Tab Search Tab Chat Tab
Vue Frontend - Tabbed Interface
Click to view Vue UI screenshots (Light Theme)
Sources Tab Processing Tab Search Tab Chat Tab

System Components

FastAPI Backend (/flexible-graphrag)
  • REST API Server: Provides endpoints for document ingestion, search, and AI query/chat
  • Hybrid Search Engine: Combines vector similarity (RAG), fulltext (BM25), and graph traversal (GraphRAG)
  • Document Processing: Advanced document conversion with Docling, LlamaParse, and LiteParse integration
  • Configurable Architecture: Environment-based configuration for all components
  • Async Processing: Background task processing with real-time progress updates
MCP Server (/flexible-graphrag-mcp)
  • MCP Client support: Model Context Protocol server for Claude Desktop and other MCP clients
  • Full API Parity: Tools like ingest_documents() support all 14 data sources with source-specific configs: filesystem, repositories (Alfresco, SharePoint, Box, CMIS, Nuxeo), cloud storage, web; skip_graph flag for all data sources; paths parameter for filesystem/Alfresco/CMIS; Alfresco also supports nodeDetails list (multi-select for KG Spaces)
  • Additional Tools: search_documents(), query_documents(), ingest_text(), system diagnostics, and health checks
  • Dual Transport: HTTP mode for debugging, stdio mode for production
  • Tool Suite: 12 tools for document processing, search, sign-in and system management (14 with MCP_BROWSER_SIGN_IN=true); search and query can be permission-filtered per user (three levels)
  • Multiple Installation: pipx system installation or uvx no-install execution
UI Clients (/flexible-graphrag-ui)
  • Angular Frontend: Material Design with TypeScript
  • React Frontend: Modern React with Vite and TypeScript
  • Vue Frontend: Vue 3 Composition API with Vuetify and TypeScript
  • Unified Features: All clients support the 4 tab views, async processing, progress tracking, and cancellation
Docker Infrastructure (/docker)
  • Modular Database Selection: Include/exclude vector, graph, and search engines, and Alfresco with single-line comments
  • Flexible Deployment: Hybrid mode (databases in Docker, apps standalone) or full containerization
  • NGINX Reverse Proxy: Unified access to all services with proper routing
  • Built-in Database Dashboards: Most server dockers also provide built-in web interface dashboards (Neo4j browser, ArcadeDB, FalkorDB, OpenSearch, etc.)
  • Separate Dashboards: Additional dashboard dockers are provided: including Kibana for Elasticsearch and optional Ladybug Explorer (see docker/includes/ladybug-explorer.yaml).

Data Sources

Flexible GraphRAG supports 14 different data sources for ingesting documents into your knowledge base (Nuxeo missing from older screenshots):

Flexible GraphRAG data sources, processing tab, auto-sync document states in Postgres (default pipeline, with auto incremental update system enabled), Neo4j shown (Qdrant, Elasticsearch not shown)

File & Upload Sources
  1. File Upload - Direct file upload through web interface with drag & drop support
Cloud Storage Sources
  1. Amazon S3 - AWS S3 bucket integration
  2. Google Cloud Storage (GCS) - Google Cloud storage buckets
  3. Azure Blob Storage - Microsoft Azure blob containers
  4. OneDrive - Microsoft OneDrive personal/business storage
  5. Google Drive - Google Drive file storage
Enterprise Repository Sources
  1. Alfresco - Alfresco ECM/content repository with two integration options:
    • KG Spaces ACA Extension - Integrates the Flexible GraphRAG Angular UI as an extension plugin within the Alfresco Content Application (ACA), enabling multi-select document/folder ingestion with nodeIds directly from the Alfresco interface. Its title bar has a sign-in pill for the other sources and servers (Angular lib option searchSignIn), so KG Spaces search and chat can also use other sources' documents the user may read
    • Flexible GraphRAG Alfresco Data Source - Direct integration using Alfresco paths (e.g., /Shared/GraphRAG, /Company Home/Shared/GraphRAG, or /Shared/GraphRAG/cmispress.txt)
  2. Nuxeo - Nuxeo content repository (File and Note documents); basic / token (X-Authentication-Token) / OAuth2 auth, path or node selection, and real-time incremental sync via the Nuxeo audit event stream (Kafka)
    • KG Spaces for Nuxeo - A Nuxeo Web UI add-on (a KG Spaces menu with "Add to KG Spaces" and "Ask KG Spaces about this document / folder") plus an Angular app on the same shared Angular UI library, sharing the Web UI session; ingest and answers use the Web UI user's Nuxeo token, so only documents that user may read
  3. SharePoint - Microsoft SharePoint document libraries
  4. Box - Box.com cloud storage
  5. CMIS (Content Management Interoperability Services) - Industry-standard content repository interface
Web Sources
  1. Web Pages - Extract content from web URLs
  2. Wikipedia - Ingest Wikipedia articles by title or URL
  3. YouTube - Process YouTube video transcripts

Each data source includes:

  • Configuration Forms: Easy-to-use interfaces for credentials and settings
  • Progress Tracking: Real-time per-file progress indicators
  • Flexible Authentication: Support for various auth methods (API keys, OAuth, service accounts)
  • Per-user sign-in (Alfresco, Nuxeo, CMIS, SharePoint, OneDrive, Box, Google Drive, GCS, Azure Blob, S3): search and chat answer only from documents the signed-in user may read. See Sign-In and Permission-Aware Search
Incremental Updates & Auto-Sync

NEW! Flexible GraphRAG supports automatic incremental updates (Optional) from most data sources, keeping your Vector, Search and Graph databases synchronized in real-time or near real-time:

Data Source Auto-Sync Support Detection Method Status Notes
Alfresco ✅ Real-time Apache ActiveMQ Ready
Nuxeo ✅ Real-time Nuxeo audit stream (Kafka) Ready
Amazon S3 ✅ Real-time SQS event notifications Ready
Azure Blob Storage ✅ Real-time Change feed Ready
Google Cloud Storage ✅ Real-time Pub/Sub notifications Ready
Google Drive ✅ Near real-time Changes API (polling) Ready
OneDrive ✅ Near real-time MS Graph delta query Ready
SharePoint ✅ Near real-time MS Graph delta query Ready
Box ✅ Near real-time Events API (polling) Ready
Local Filesystem ✅ Real-time OS events (watchdog) Ready REST API and MCP Server only
File Upload UI, CMIS, Web Pages, Wikipedia, YouTube ➖ Not supported - - No support for incremental updates

Features:

  • Modification Date Tracking: Uses file modification timestamps (ordinal) to detect changes
  • Content Hash Optimization: Skips reprocessing when file modification date changed but content hasn't
  • Dual Mechanism: Event-driven streams (real-time) + periodic polling fallback
  • LlamaIndex Integration: Uses proper abstractions for all databases
  • UI, REST API, MCP Server: Setting up an auto update data source location can be done thru the 3 UIs, with the REST API, or with the MCP server

Setup Requirements:

Enable incremental updates in your .env file:

ENABLE_INCREMENTAL_UPDATES=true

# PostgreSQL database for state management
# By default, uses the pgvector database from docker-compose.yaml
POSTGRES_INCREMENTAL_URL=postgresql://postgres:password@localhost:5433/postgres

Note: The incremental updates system uses PostgreSQL to track document state. The docker-compose.yaml includes a pgvector container that can be used both as a vector database option and for incremental updates state management. The database connection creates the necessary tables automatically on first use. Or keep the state in OpenArch instead, with no PostgreSQL (INCREMENTAL_STATE_STORE=openarch, v0.9.0+): see docs/DATABASES/OPENARCH/OPENARCH-STATE-STORE.md.

Usage:

  • Tick the Auto Sync column for the row(s) in the Processing tab (with the incremental registry on, every data source has per-row Search+Vector / Graph / RDF / Auto Sync columns (one Graphs column before v0.9.0); the older "Enable auto change sync" checkbox appears only when the registry is off)
  • Deep on the Alfresco, Nuxeo and Box forms includes subfolders (recursive) in the ingest and its auto sync; it starts at the backend's DEFAULT_RECURSIVE (true unless set)
  • A new row's Graph and RDF checkboxes start at the backend's DEFAULT_ENABLED_GRAPH and DEFAULT_ENABLED_RDF (true unless set; env-sample.txt sets both to false: search + vector first, a row's graphs added when wanted). A REST or MCP ingest that doesn't say enabled_graph / enabled_rdf uses them too
  • For S3: Also provide the "SQS Queue URL" for event notifications
  • For GCS: Also provide the "Pub/Sub Subscription Name" for real-time updates

PostgreSQL for State Management:

The docker/includes/postgres-pgvector.yaml sets up two databases automatically on first start: flexible_graphrag (for optional pgvector vector storage) and flexible_graphrag_incremental (for incremental update state management, with its schema created automatically). pgAdmin is also configured at http://localhost:5050 with both databases pre-registered (no master password), use password for the server connection and save it. See docs/DATABASES/POSTGRES-SETUP.md for details.

Documentation:

Scripts:

  • scripts/incremental/sync-now.sh|.ps1|.bat - Trigger immediate synchronization
  • scripts/incremental/set-refresh-interval.sh|.ps1|.bat - Configure polling interval
  • scripts/incremental/TIMING-CONFIGURATION.md - Timing configuration details
  • scripts/incremental/README.md - Script usage documentation
Document Processing Options

All data sources support three document parser options (full per-parser format matrix in Supported File Formats):

Docling (Default):

  • Open-source, local processing
  • Free with no API costs
  • GPU acceleration supported (CUDA/Apple Silicon) for 5-10x faster processing
  • Built-in OCR for scanned documents and images, DOCLING_OCR=true + DOCLING_OCR_ENGINE=auto|rapidocr|easyocr|tesseract_cli|tesserocr|ocrmac
  • Multi-language support (English, German, French, Spanish, Czech, Russian, Chinese, Japanese, etc.)
  • Configured via: DOCUMENT_PARSER=docling
  • DOCLING_DEVICE=auto|cpu|cuda|mps, control GPU vs CPU processing
  • SAVE_PARSING_OUTPUT=true, save intermediate parsing results for inspection (works for all three parsers)
  • PARSER_FORMAT_FOR_EXTRACTION=auto|markdown|plaintext, control format used for knowledge graph extraction
  • See Docling GPU + OCR Configuration Guide for setup details | Quick Reference

LlamaParse:

  • Cloud-based API service with advanced AI
  • Multimodal parsing with Claude Sonnet 3.5
  • Three modes available:
    • parse_page_without_llm - 1 credit/page
    • parse_page_with_llm - 3 credits/page (default)
    • parse_page_with_agent - 10-90 credits/page
  • Configured via: DOCUMENT_PARSER=llamaparse + LLAMAPARSE_API_KEY
  • Get your API key from LlamaCloud
  • New: SAVE_PARSING_OUTPUT=true - Save parsed output and metadata for inspection
  • New: PARSER_FORMAT_FOR_EXTRACTION=auto|markdown|plaintext - Control format used for knowledge graph extraction

LiteParse:

  • Open-source, local processing (Rust/PyO3), free, no API key
  • Natively parses PDFs with bundled Tesseract OCR; .txt/.md read directly
  • Office formats need LibreOffice, images need ImageMagick, see Supported File Formats
  • Optional complexity-based routing of scanned/complex docs to Docling or LlamaParse via LITEPARSE_COMPLEX_ROUTING
  • Configured via: DOCUMENT_PARSER=liteparse; install uv pip install liteparse
  • Supports SAVE_PARSING_OUTPUT and PARSER_FORMAT_FOR_EXTRACTION like the other parsers

Supported File Formats

Flexible GraphRAG processes documents, images, and audio across its three parsers:

  • Documents: PDF (.pdf); Microsoft Office + legacy (.docx/.xlsx/.pptx, .doc/.xls/.ppt); web (.html/.htm/.xhtml); data (.csv/.tsv/.json/.xml); documentation (.md/.markdown/.asciidoc/.rtf/.txt/.epub)
  • Images: .png/.jpg/.jpeg/.gif/.bmp/.webp/.tiff/.tif
  • Audio: .wav/.mp3/.mp4/.m4a (speech recognition / transcription)

Capabilities vary by parser, Docling and LlamaParse handle all of the above natively (advanced layout/table/formula analysis, configurable OCR, VLM/multimodal, ASR); LiteParse parses PDFs natively and needs LibreOffice for Office formats / ImageMagick for images. Both markdown and plaintext are saved, and the best is auto-selected for knowledge-graph extraction, embeddings, and search (markdown for tables, plaintext for text-heavy docs; override with PARSER_FORMAT_FOR_EXTRACTION).

Full per-parser matrix, OCR/VLM options, and output formats: Supported File Formats.

Database Configuration

Flexible GraphRAG uses three types of databases for its hybrid search capabilities. Each can be configured independently via environment variables.

Search Databases (Full-Text Search)

Set SEARCH_DB to select the store and SEARCH_BACKEND=llamaindex or langchain for the framework.

  • BM25 (Built-in): Local in-memory BM25 full-text search with TF-IDF ranking

    • Dashboard: None (file-based)
    • Configuration:
      SEARCH_DB=bm25
      BM25_SEARCH_DB_CONFIG={"persist_dir": "./bm25_index"}
      
  • Elasticsearch: Enterprise search engine with advanced analyzers, faceted search, and real-time analytics

    • Dashboard: Kibana (http://localhost:5601)
    • Configuration:
      SEARCH_DB=elasticsearch
      ELASTICSEARCH_SEARCH_DB_CONFIG={"hosts": ["http://localhost:9200"], "index_name": "hybrid_search"}
      
  • OpenSearch: AWS-led open-source fork with native hybrid scoring (vector + BM25) and k-NN algorithms

    • Dashboard: OpenSearch Dashboards (http://localhost:5601)
    • Configuration:
      SEARCH_DB=opensearch
      OPENSEARCH_SEARCH_DB_CONFIG={"hosts": ["http://localhost:9201"], "index_name": "hybrid_search"}
      
  • None: Disable full-text search (vector search only)

    • Configuration:
      SEARCH_DB=none
      

Read the rest of the Flexible Graphrag README on GitHub

Questions about Flexible Graphrag

What is the Flexible Graphrag MCP server?

GraphRAG, RAG, LlamaIndex, LangChain, 15 Prop Graph, 4 RDF, 10 Vector, 3 Search DBs. 14 data srcs, auto sync, Alfresco, Nuxeo, SharePoint, Box, CMIS, S3,GCS,Azure, web. KG auto-bld, Ontologies, 13 LLM providers, Docling, LlamaParse, LiteParse, Hybrid Search, AI Chat. TypeScript React, Vue, Angular, Python, REST, MCP, OpenArch, Langflow, CocoIndex. Flexible Graphrag is maintained by stevereiner on GitHub at stevereiner/flexible-graphrag, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Flexible Graphrag MCP server?

Flexible Graphrag doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (stevereiner/flexible-graphrag). Like most servers, Flexible Graphrag ends with a command or URL you paste into your AI app's MCP config.

Does Flexible Graphrag need an API key?

The registry lists no required keys for Flexible Graphrag. Check the Flexible Graphrag README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Flexible Graphrag an official MCP server?

No. Flexible Graphrag is a community server maintained by stevereiner. Community servers can be excellent; read the code and the open issues before you give Flexible Graphrag access to company data.

What license is Flexible Graphrag under?

Flexible Graphrag is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Flexible Graphrag; the service it connects to has its own terms.