VeritasGraph
Lets your AI agent build a knowledge graph from your documents and answer questions with citations, fully on your own machine.
326 stars on GitHubby bibinprathapLicense MITUpdated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add veritasgraph -- uvx veritasgraph-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
VERITASGRAPH_MODEL | Default local Ollama model for ingest/query (e.g. qwen3:latest). | No |
OLLAMA_HOST | Local Ollama endpoint. | No |
STUDIO_DATA_DIR | Directory where the knowledge-graph snapshot is persisted. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Ingest these policy documents and build a knowledge graph.
Which teams are connected to the payment outage? Cite your sources.
What it is
VeritasGraph is a GraphRAG framework with an MCP server. It reads your own data, builds a knowledge graph, and answers multi-hop questions with source citations. It can run fully offline with a local Ollama model or use cloud APIs.
What it can do
- Build a knowledge graph from your own documents
- Answer multi-hop questions with [doc#chunk] citations
- Return insufficient evidence instead of guessing when graph edges are missing
- Studio: a local workspace to build agents with memory, guardrails and tools
- Run the MCP server with python -m veritasgraph_mcp
When to use
- βΊWhen you want answers about your documents that point to exact sources
- βΊWhen your data must stay on your own machine and not go to a cloud service
- βΊWhen plain vector search misses how facts connect to each other
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
rag-implementationEnables your agent to use external information sources to answer questions. It's useful for building document Q&A systems or connecting AI to knowledge bases.xerj-knowledgeHelps your agent search your own local documents, notes, PDFs, spreadsheets and mail, and cite the file and page each answer came from.weknora-rag-searchGuides your agent to search a WeKnora knowledge base, choosing between a written answer, raw text passages, document matches, or session lookup.Frequently asked questions
Is it open source?
Yes. The readme shows an MIT license badge and it is free to use.
Can it run offline?
Yes, with --mode=local it uses Ollama and works fully offline. The lite mode uses cloud APIs.
What does it need to install?
pip install veritasgraph, then run the demo. The MCP server starts with python -m veritasgraph_mcp from the repo root and needs a local Ollama for ingest and query.
What are the three modes?
lite (quick demo with an OpenAI or Anthropic key), local (Ollama, offline) and full (Docker and Neo4j, for production).
Does it make up answers?
The readme says the agent returns insufficient evidence when graph edges are missing, and answers carry citations.
Does it need a GPU?
The quick start says lite mode needs no GPU. Local mode lists Ollama and 8GB RAM.
If it does not work
- βΊFor ingest and query, start Ollama first and pull a chat model, for example ollama pull qwen3:latest.
- βΊRun python -m veritasgraph_mcp from the repository root.
- βΊFor lite mode, set OPENAI_API_KEY before starting the demo.
5 new skills a week. 1 minute to read.