Deploy scholia-template
Self-hosted second brain for Claude and AI agents, over MCP
pgvector
Just deployed
/var/lib/postgresql
scholia-mcp
Just deployed
Deploy and Host scholia on Railway
scholia is a self-hosted second brain for AI agents. Claude (on claude.ai, mobile or Claude Code) saves distilled notes from your conversations — decisions, data with sources, positions, open questions — and searches them before answering in new ones, citing the note it used.
About Hosting scholia
This template runs two services: Postgres with pgvector, and the scholia MCP server, built from github.com/daniel-bernardino747/scholia-mcp. claude.ai connects to it as a custom connector and logs in with GitHub; only the GitHub accounts you list get in.
Before deploying, get an embedding API key from Voyage AI or OpenAI.
- Deploy. Fill the GitHub fields with placeholders for now; the server will refuse to start and say which variable is missing.
- Copy the service's public URL. Create a GitHub OAuth App at github.com/settings/applications/new with that URL as homepage and
/auth/callbackas Redirect URI. - Set
GITHUB_CLIENT_ID,GITHUB_CLIENT_SECRETandALLOWED_GITHUB_USERS(your numeric GitHub ID) and redeploy. - In claude.ai → Settings → Connectors, add a custom connector with
/mcp, and paste the preference instructions into your profile.
Turn on Backups for the pgvector service.
Common Use Cases
- Keep what you concluded with Claude across conversations, on web, mobile and Claude Code
- Track how your opinions change: new notes supersede old ones without erasing them
- Search your notes by meaning and by exact terms or acronyms, in your own language
Dependencies for scholia Hosting
- Postgres with the pgvector extension (included)
- A Voyage AI or OpenAI API key for embeddings
- A GitHub OAuth App for login
Deployment Dependencies
Why Deploy scholia on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying scholia on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
pgvector
pgvector/pgvector:pg18PGDATA
Data directory inside the volume. Don't change.
POSTGRES_DB
Database name. Default railway.
POSTGRES_USER
Database superuser name.
PGPORT_PRIVATE
Private network port, used by the scholia server.
scholia-mcp
daniel-bernardino747/scholia-mcpGITHUB_CLIENT_ID
From a GitHub OAuth App whose Redirect URI is <this service's URL>/auth/callback.
ALLOWED_GITHUB_USERS
Your numeric GitHub ID (https://api.github.com/users/ → id). Comma-separate several.
GITHUB_CLIENT_SECRET
From the same OAuth App.
