# factstore

> factstore is an open-source MCP server. A fact store for AI agents, on Postgres: registered attributes, every write citing its evidence. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/victor-eu/factstore/tree/HEAD/factstore
- **MCP Registry name:** io.github.Victor-EU/factstore
- **Listing updated:** 2026-10-04

## About

A fact store for AI agents, on Postgres: registered attributes, every write citing its evidence.

## Install

### Claude Code (Terminal)

```sh
claude mcp add factstore --env FACTSTORE_DSN='<FACTSTORE_DSN>' --env FACTSTORE_EXCISE_DSN='<FACTSTORE_EXCISE_DSN>' -- uvx factstore
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "factstore": {
      "command": "uvx",
      "args": [
        "factstore"
      ],
      "env": {
        "FACTSTORE_DSN": "<FACTSTORE_DSN>",
        "FACTSTORE_EXCISE_DSN": "<FACTSTORE_EXCISE_DSN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "factstore": {
      "command": "uvx",
      "args": [
        "factstore"
      ],
      "env": {
        "FACTSTORE_DSN": "<FACTSTORE_DSN>",
        "FACTSTORE_EXCISE_DSN": "<FACTSTORE_EXCISE_DSN>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "factstore": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "factstore"
      ],
      "env": {
        "FACTSTORE_DSN": "<FACTSTORE_DSN>",
        "FACTSTORE_EXCISE_DSN": "<FACTSTORE_EXCISE_DSN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "factstore": {
      "command": "uvx",
      "args": [
        "factstore"
      ],
      "env": {
        "FACTSTORE_DSN": "<FACTSTORE_DSN>",
        "FACTSTORE_EXCISE_DSN": "<FACTSTORE_EXCISE_DSN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "factstore": {
      "command": "uvx",
      "args": [
        "factstore"
      ],
      "env": {
        "FACTSTORE_DSN": "<FACTSTORE_DSN>",
        "FACTSTORE_EXCISE_DSN": "<FACTSTORE_EXCISE_DSN>"
      }
    }
  }
}
```

## FAQ

### Is factstore free?

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

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

Run this command in your terminal: claude mcp add factstore --env FACTSTORE_DSN='<FACTSTORE_DSN>' --env FACTSTORE_EXCISE_DSN='<FACTSTORE_EXCISE_DSN>' -- uvx factstore

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

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