Skip to main content
Glama
jamestomasino

MCP DocGraph

MCP DocGraph

MCP server for building knowledge graphs from documents.

Ingest PDF/PPTX/DOCX files, transcribe to Markdown, bootstrap domain-specific entity patterns via LLM, and build a JSONL knowledge graph with RAG chunks — all configurable per project.

Quick Start

pipx install .

Add to your MCP client config:

{
  "mcpServers": {
    "docgraph": {
      "command": "python",
      "args": ["-m", "mcp_docgraph.server"]
    }
  }
}

Set LLM credentials:

export DOCGRAPH_LLM_API_KEY="your-key"
export DOCGRAPH_LLM_PROVIDER="anthropic"  # or "openai"

Related MCP server: pymupdf4llm-mcp

Tools

Tool

Description

ingest_files

Transcribe PDF/PPTX/DOCX → Markdown

bootstrap_config

LLM proposes entity patterns from docs

build_graph

Build knowledge graph + RAG chunks

query_graph

Query graph, get LLM-synthesized answer

validate_graph

Check graph integrity

Workflow

  1. Place documents in a folder

  2. ingest_files → transcribed Markdown

  3. bootstrap_config → proposed config.yaml (review, edit if needed)

  4. build_graph → JSONL nodes, edges, chunks

  5. validate_graph → check integrity

  6. query_graph → ask questions

Design Spec

See docs/superpowers/specs/

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for exporting PDF to markdown, optimized for LLM consumption.
    1,390 PyPI
    71
    AGPL 3.0
  • A
    license
    A
    quality
    C
    maintenance
    MCP server that indexes Markdown, Word, HTML, and PDF documents into a SQLite knowledge graph with CJK+Latin full-text search and cross-document reference tracking. Runs drift audits to surface stale policies, conflicting research claims, superseded ADRs, and undocumented code exports.
    10
    8
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A local-first MCP server that transforms crypto whitepapers into a knowledge graph and vector corpus, enabling entity-filtered RAG question answering with optional knowledge graph enrichment.
    -