# Veritasgraph

> Veritasgraph is an open-source MCP server for knowledge and memory. Offline, citation-grounded GraphRAG over a local knowledge graph, run via Ollama. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://bibinprathap.github.io/VeritasGraph/
- **Repository:** https://github.com/bibinprathap/veritasgraph
- **MCP Registry name:** io.github.bibinprathap/veritasgraph
- **Categories:** knowledge and memory, AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

VeritasGraph is a GraphRAG framework meant to run entirely on your own hardware. The MCP server is a Python package that talks to a local Ollama model (default qwen3) and keeps its graph in a SQLite store shared with the Studio app and the CLI, so nothing has to leave the machine.

Its selling point is answers that can be checked. Responses carry fields for whether they are grounded, which citations were unknown and whether the system abstained; if no entity matches, it says so rather than guessing. A governed mode answers only when certified ontology terms cover the question, and each answer gets an id so it can be replayed later with its citations. Ingestion has a PII policy (off, tag, redact before extract, or reject).

The `VERITASGRAPH_MCP_MODE` variable limits the client to read, write or admin tools. Beyond MCP the README lists audit logging with a hash chain, snapshots, role-based tokens and read-only connectors to databases such as Postgres and Snowflake. The project is MIT licensed.

## Features

- **Local-only operation:** Uses a local Ollama model and a SQLite store.
- **Cited answers:** Responses flag grounding, unknown citations and abstention.
- **Governed mode:** Answers only when certified vocabulary covers the question.
- **Answer receipts:** Each answer has an id for later replay.
- **PII handling:** Choose to tag, redact or reject sensitive data on ingest.
- **Tiered tool access:** Limit a client to read, write or admin tools.

## Good for

- Query private documents without sending them to a cloud API
- Audit why an agent gave a particular answer
- Build a governed business glossary for retrieval
- Connect read-only structured data to a question-answering layer

## Install

### Claude Code (Terminal)

```sh
claude mcp add veritasgraph -- uvx veritasgraph-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "veritasgraph": {
      "command": "uvx",
      "args": [
        "veritasgraph-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "veritasgraph": {
      "command": "uvx",
      "args": [
        "veritasgraph-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "veritasgraph": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "veritasgraph-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "veritasgraph": {
      "command": "uvx",
      "args": [
        "veritasgraph-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "veritasgraph": {
      "command": "uvx",
      "args": [
        "veritasgraph-mcp"
      ]
    }
  }
}
```

## FAQ

### What model does it use?

A local Ollama model; the default is qwen3:latest.

### Where is data stored?

In a SQLite graph store, whose path is set by VERITASGRAPH_DB or STUDIO_DATA_DIR.

### Can I restrict what an agent does?

Yes, VERITASGRAPH_MCP_MODE sets read, write or admin tiers.

### What is the licence?

MIT, per the README badge.

### Is Veritasgraph free?

Yes. Veritasgraph is open source, so you can use and self-host it for free.

### How do I add Veritasgraph to Claude Code?

Run this command in your terminal: claude mcp add veritasgraph -- uvx veritasgraph-mcp

### What are the best alternatives to Veritasgraph?

The closest alternatives to Veritasgraph are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and note1.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [note1](https://ai-powered.com/mcp/note1): note1 is an MCP server for productivity.
- [MedXpert 图书馆连接器（通用版）](https://ai-powered.com/mcp/medxpert): MedXpert 图书馆连接器（通用版） is an open-source MCP server for knowledge and memory.
- [Context Nest](https://ai-powered.com/mcp/context-nest): Context Nest is a freemium MCP server for knowledge and memory.
- [Tulsa Ecosystem Map](https://ai-powered.com/mcp/tulsa-ecosystem-map): Tulsa Ecosystem Map is a free MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/veritasgraph
