flexible-graphrag-mcp
v0.11.0MCP server for Flexible GraphRAG — connects to the FastAPI backend (status, ingest, hybrid search, AI Q&A) for Claude Desktop and other MCP clients.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_system_status
Get the current status of the flexible-graphrag system
ingest_documents
Ingest documents from filesystem, web, or cloud sources.
| Parameter | Type | Description |
|---|---|---|
alfresco_config | ||
alfresco_ticket | For data_source="alfresco": an Alfresco login ticket (TICKET_...) the caller already holds, used as the whole credential -- no username/password needed. alfresco_config still gives url and path, e.g.… | |
azure_blob_config | ||
box_config | ||
cmis_config | ||
data_source | string | Source type (filesystem, cmis, alfresco, nuxeo, web, wikipedia, youtube, s3, gcs, azure_blob, etc.) |
enable_sync | Enable automatic change detection and incremental updates | |
enabled_graph | Build the property graph (PG_GRAPH_DB); unset = the server's DEFAULT_ENABLED_GRAPH | |
enabled_rdf | Build the RDF graph (RDF_GRAPH_DB); unset = the server's DEFAULT_ENABLED_RDF | |
gcs_config | ||
google_drive_config | ||
nuxeo_config | ||
onedrive_config | ||
paths | File path(s) as JSON array for filesystem source. The backend only accepts paths under uploads/, SOURCE_PATHS or INGEST_ALLOWED_PATHS (its .env); others get a 400. | |
s3_config | ||
sharepoint_config | ||
skip_graph | Skip knowledge graph extraction (faster, vector+search only): both graphs off | |
web_config | ||
wikipedia_config | ||
youtube_config |
get_auth_requirements
Which sign-ins the stored content needs before search_documents / query_documents. Returns {"required": bool, "providers": [{"source": "alfresco" | "nuxeo" | "cmis", "url": ..., "methods": [...], "documents": n, "required": bool}]}, one provider per server. An empty providers list means no sign-in is needed. Documents of a provider whose required is true are only used if the call passes that user's identity for that server (alfresco_ticket or source_auth); ask the user for it rather than guessing.
list_sources
The sources that have documents in the stores, for search_documents / query_documents' sources argument: [{"source", "label", "url", "documents", "login_gated"}], one per data source type and server. login_gated sources (Alfresco, Nuxeo, CMIS) answer only for a caller that passes its identity there (source_auth). available is false without the incremental registry.
sign_in
Sign in to a repository for search_documents / query_documents (and ingest).
| Parameter | Type | Description |
|---|---|---|
password * | string | Their password (s3: their secret access key) -- used once here, never stored |
source * | string | "alfresco", "nuxeo", "cmis" or "s3" |
username * | string | The user's name on that repository (s3: their IAM access key ID) |
url | The server (a CMIS service URL for cmis); default: the backend's configured one |
search_documents
Search documents using hybrid search Repository documents (Alfresco, Nuxeo, and CMIS on Alfresco/Nuxeo servers) are only searched when the caller says who they are on that server (alfresco_ticket or source_auth); results then include only the documents that user may read, checked against each repository at query time. Documents from other sources are always searched.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query string |
alfresco_ticket | The asking user's Alfresco login ticket (TICKET_...) | |
scope | Limit to one repository document or folder, as a JSON object: {"data_source": "alfresco", "path": "/Shared/GraphRAG", "is_folder": true} or {"data_source": "alfresco", "node_id": "<node id>"}. A folde… | |
source_auth | The asking user's identities per data source -- one object or a list (one per server) for each of "alfresco", "nuxeo" and "cmis", e.g. {"alfresco": {"ticket": "TICKET_..."}, "nuxeo": {"token": "..."}}… | |
sources | Answer only from these sources (list_sources names them): "nuxeo,sharepoint", ["alfresco", "filesystem"], or [{"source": "alfresco", "url": "http://a:8080"}] for one server. Omitted = all sources. | |
top_k | integer | Number of results to return |
query_documents
Query documents with AI-generated answers Repository documents (Alfresco, Nuxeo, and CMIS on Alfresco/Nuxeo servers) are only used when the caller says who they are on that server (alfresco_ticket or source_auth); the answer then draws only on the documents that user may read, checked against each repository at query time. Documents from other sources are always used.
| Parameter | Type | Description |
|---|---|---|
query * | string | Question to ask |
alfresco_ticket | The asking user's Alfresco login ticket (TICKET_...) | |
scope | Limit to one repository document or folder, as a JSON object: {"data_source": "alfresco", "path": "/Shared/GraphRAG", "is_folder": true} or {"data_source": "alfresco", "node_id": "<node id>"}. A folde… | |
source_auth | The asking user's identities per data source -- one object or a list (one per server) for each of "alfresco", "nuxeo" and "cmis", e.g. {"alfresco": {"ticket": "TICKET_..."}, "nuxeo": {"token": "..."}}… | |
sources | Answer only from these sources (list_sources names them): "nuxeo,sharepoint", ["alfresco", "filesystem"], or [{"source": "alfresco", "url": "http://a:8080"}] for one server. Omitted = all sources. | |
top_k | integer | Number of source documents to consider |
test_with_sample
Test the system with sample text for quick verification
| Parameter | Type | Description |
|---|---|---|
enabled_graph | Build the property graph (PG_GRAPH_DB); unset = the server's DEFAULT_ENABLED_GRAPH | |
enabled_rdf | Build the RDF graph (RDF_GRAPH_DB); unset = the server's DEFAULT_ENABLED_RDF | |
skip_graph | boolean | Skip knowledge graph extraction (both graphs off) |
ingest_text
Ingest raw text content into the knowledge graph
| Parameter | Type | Description |
|---|---|---|
content * | string | Text content to ingest |
enabled_graph | Build the property graph (PG_GRAPH_DB); unset = the server's DEFAULT_ENABLED_GRAPH | |
enabled_rdf | Build the RDF graph (RDF_GRAPH_DB); unset = the server's DEFAULT_ENABLED_RDF | |
skip_graph | boolean | Skip knowledge graph extraction (faster, vector+search only): both graphs off |
source_name | string | Name/identifier for this text source |
check_processing_status
Check the status of an async processing operation
| Parameter | Type | Description |
|---|---|---|
processing_id * | string | The processing ID returned from ingest_text |
get_python_info
Get information about the Python environment of the backend
health_check
Check if the backend is healthy and responsive