flexible-graphrag-mcp

v0.11.0
flexible-graphrag-mcp Checked 4 hours ago Published 10 days ago

MCP 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.

ParameterTypeDescription
alfresco_config
alfresco_ticketFor 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_sourcestringSource type (filesystem, cmis, alfresco, nuxeo, web, wikipedia, youtube, s3, gcs, azure_blob, etc.)
enable_syncEnable automatic change detection and incremental updates
enabled_graphBuild the property graph (PG_GRAPH_DB); unset = the server's DEFAULT_ENABLED_GRAPH
enabled_rdfBuild the RDF graph (RDF_GRAPH_DB); unset = the server's DEFAULT_ENABLED_RDF
gcs_config
google_drive_config
nuxeo_config
onedrive_config
pathsFile 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_graphSkip 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).

ParameterTypeDescription
password *stringTheir password (s3: their secret access key) -- used once here, never stored
source *string"alfresco", "nuxeo", "cmis" or "s3"
username *stringThe user's name on that repository (s3: their IAM access key ID)
urlThe 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.

ParameterTypeDescription
query *stringSearch query string
alfresco_ticketThe asking user's Alfresco login ticket (TICKET_...)
scopeLimit 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_authThe 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": "..."}}…
sourcesAnswer 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_kintegerNumber 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.

ParameterTypeDescription
query *stringQuestion to ask
alfresco_ticketThe asking user's Alfresco login ticket (TICKET_...)
scopeLimit 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_authThe 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": "..."}}…
sourcesAnswer 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_kintegerNumber of source documents to consider

test_with_sample

Test the system with sample text for quick verification

ParameterTypeDescription
enabled_graphBuild the property graph (PG_GRAPH_DB); unset = the server's DEFAULT_ENABLED_GRAPH
enabled_rdfBuild the RDF graph (RDF_GRAPH_DB); unset = the server's DEFAULT_ENABLED_RDF
skip_graphbooleanSkip knowledge graph extraction (both graphs off)

ingest_text

Ingest raw text content into the knowledge graph

ParameterTypeDescription
content *stringText content to ingest
enabled_graphBuild the property graph (PG_GRAPH_DB); unset = the server's DEFAULT_ENABLED_GRAPH
enabled_rdfBuild the RDF graph (RDF_GRAPH_DB); unset = the server's DEFAULT_ENABLED_RDF
skip_graphbooleanSkip knowledge graph extraction (faster, vector+search only): both graphs off
source_namestringName/identifier for this text source

check_processing_status

Check the status of an async processing operation

ParameterTypeDescription
processing_id *stringThe 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