---
title: "Deploy firmament-openbrain"
description: "Per-user AI memory server over MCP - memories follow users across tools."
category: "Starters"
url: https://railway.com/deploy/firmament-openbrain
---

# Deploy firmament-openbrain

Per-user AI memory server over MCP - memories follow users across tools.

**[Deploy firmament-openbrain on Railway](https://railway.com/template/firmament-openbrain)**

- **Creator:** tswic-highdesert's Projects
- **Category:** Starters
- **Total deploys:** 1

## Template content

### openbrain

- **Source:** https://github.com/tswic-highdesert/openbrain-railway
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

# Deploy and Host Open Brain on Railway

Open Brain is a per-user AI memory server over MCP (Model Context Protocol). Each team member gets a personal token URL; their memories are fully isolated and follow them across Claude Desktop, claude.ai, Claude Code, and Cursor.

## About Hosting Open Brain

One Node.js MCP service plus one Postgres database. The service auto-creates its schema on boot, exposes a streamable-HTTP MCP endpoint per user token, and an admin API for minting users. Search is Postgres full-text - no embedding API keys required. Source: https://github.com/tswic-highdesert/openbrain-railway

## Why Deploy Open Brain?

Give a whole team persistent AI memory without a SaaS subscription. Memories are private per user, stored in your own Postgres, and tokens are stored hashed.

## Common Use Cases

- Team knowledge that follows each person across AI tools
- Persistent project context between Claude/Cursor sessions
- A self-hosted alternative to per-app AI memory silos

## Dependencies for Open Brain Hosting

- Postgres (included in this template)

### Deployment Dependencies

- An MCP-capable AI client (Claude Desktop, claude.ai, Claude Code, Cursor)

## Setup after deploy

1. On the openbrain service set ADMIN_TOKEN to a long random string if empty (openssl rand -hex 24).
2. If prompted for Postgres variables use: PGDATA=/var/lib/postgresql/data/pgdata, PGPORT=5432, POSTGRES_DB=railway, POSTGRES_USER=postgres, SSL_CERT_DAYS=820, RAILWAY_DEPLOYMENT_DRAINING_SECONDS=60.
3. Create users: POST /admin/users with Authorization: Bearer  and body {"name": "Jane"}.
4. Send each person their returned MCP URL - they paste it into their AI tool as a custom connector.


## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/firmament-openbrain
