Give your AI a small database of your own context on Railway

Ops · ContextChecked 2026-10-21

Let your assistant answer from your own tasks, decisions and notes instead of guessing.

View 6 steps
On this page

Independent review. Unpaid; no partnership with the tools on this page. Based on public documentation and research. Trademarks identify their owners’ products. Disclosure.

Steps

Confirmed steps have vendor documentation. The full workflow still needs testing.

  1. You

    List what you wish your assistant could see, then pick one table to start (tasks or decisions)

    Human stepConfirmed
  2. Railway

    Adds a Postgres database from + New or Cmd/Ctrl+K and exposes DATABASE_URL

    Built-in integrationConfirmedSource ↗
  3. Railway

    Deploys n8n from a one-click template

    Built-in integrationConfirmedSource ↗
  4. Your AI platform

    Uses a compatible local/stdio or SSE client to connect through Postgres MCP Pro and propose the table design

    Unrestricted mode allows reads and writes; restricted mode limits the server to read-only transactions.

    MCPConfirmedSource ↗
  5. You

    Approve the schema before anything is created

    Human stepConfirmed
  6. n8n

    Syncs one source into the table on a schedule with the Postgres node

    APIConfirmedSource ↗

Human approval

You approve every schema change; agents that only read get a read-only connection.

Watch out for

A database with write access is a real system. Enable backups and verify a restore, give read-only agents a restricted connection, and don't store anything you couldn't afford to leak.

Compare options

For implementing a scoped context store.

Coding environments are not databases; hosting and credential controls remain separate. Choose one for implementing and reviewing code changes; switching may need setup changes.

Unpaid picks. No partnership with OpenAI Codex, Cursor, Google Antigravity.

  1. Primary pick

    OpenAI Codex

    Used by Ion — Used by Ion for its own work. This is separate from recommendation rank and is not a claim that every feature was tested.

    Why it fits: A coding workspace supports edits, tests and reviewable repository changes.

    Tradeoff: A development environment and capable reviewer remain necessary.

    When to choose it

    Choose it when the result should be a small patch with test evidence.

    Review and sources · 2026-11-23 · Product reference ↗

  2. Second option

    Cursor

    Why it fits: An AI code editor keeps implementation close to interactive developer review.

    Tradeoff: The team must work with code; model availability depends on the plan.

    When to choose it

    Prefer it when a developer wants to steer changes while navigating the editor.

    Review and sources · 2026-10-21 · Product reference ↗

  3. Third option

    Google Antigravity

    Why it fits: Development-agent surfaces offer another route for code and tool-assisted implementation.

    Tradeoff: Capabilities differ across desktop, CLI and other surfaces.

    When to choose it

    Prefer it when the team already uses its environment and can validate the needed tools.

    Review and sources · 2026-10-18 · Product reference ↗

How this shortlist was chosen

Rank reflects editorial judgment for this role. Used by Ion records personal use separately. Vendors did not pay for, request or approve these positions.

Inspectable file changes come before editor convenience.

Setup and portability: Use scoped repositories, tests and human review. Switching agents does not migrate settings, credentials or model access.

Documentation reviewed 2026-10-21. Check current plan terms and test the pairing for your setup.

See our review method, MCP connections and portability and switching costs.

Notes and storage

  1. Top pick

    Notion

    Used by Ion — Used by Ion. The creator currently prefers Notion for note-taking; this is a personal use signal, not a universal ranking.

    Ion’s top pick for hosting personal context without running a database: pages and databases that AI clients read through Notion’s hosted MCP server.

    Tradeoff: Cloud workspace: a connected AI client reaches whatever the connected user can open. Notion Agent, AI Meeting Notes and full MCP search need Business or Enterprise.

    Selection evidence for Notion

    Ion editorial selection by IonBin’s founder, confirmed 2026-10-21: Notion and Obsidian are the top options for organizing notes and hosting context. Not sponsored; no vendor partnership. Capabilities are described on the linked tool pages.

  2. Top pick

    Obsidian

    Ion’s top pick for keeping the same context as local Markdown files that an agent reads directly.

    Tradeoff: A desktop and mobile app, not a shared browser editor. No official MCP server; the CLI needs the app running, and Sync is a paid add-on.

    Selection evidence for Obsidian

    Ion editorial selection by IonBin’s founder, confirmed 2026-10-21: Notion and Obsidian are the top options for organizing notes and hosting context. Not sponsored; no vendor partnership. Capabilities are described on the linked tool pages.

Starter prompt

Using the Postgres MCP connection, propose a schema for two tables: decisions (what, why, date, status) and tasks (title, due, status, linked decision). Explain each column and index. Do not create anything until I say go.

Review and adapt the prompt before use.

Tools in this workflow

Connections · Built-in integration · MCP · API

ToolRoleOfficial site
RailwayBuilt-in integration railway.com ↗
n8nAPI n8n.io ↗
ClaudeMCP claude.ai ↗

AI platform fit

PlatformStatusWhy
Claude (incl. Claude Code) To verify Your AI platform: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; n8n: verify the API caller, network access and credentials; platform code execution alone does not establish this connection
OpenAI Codex To verify Your AI platform: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; n8n: verify the API caller, network access and credentials; platform code execution alone does not establish this connection
Google Antigravity To verify Your AI platform: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; n8n: verify the API caller, network access and credentials; platform code execution alone does not establish this connection
ChatGPT To verify Your AI platform: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; n8n: verify the API caller, network access and credentials; platform code execution alone does not establish this connection
Gemini To verify Your AI platform: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; n8n: verify the API caller, network access and credentials; platform code execution alone does not establish this connection
Perplexity To verify Your AI platform: MCP pairing needs route-specific evidence; a named plugin or CLI does not establish it; n8n: verify the API caller, network access and credentials; platform code execution alone does not establish this connection
What the platform statuses mean

Confirmed means documented access meets the requirements. Inferred means the pairing is plausible and needs a test. To verify marks an unresolved step or connection. Check authentication, permissions and supported actions for each route.

What we checked (2026-10-18)

  • Railway. You add Postgres from the Cmd/Ctrl+K menu or + New on the project canvas, and other services in the project use DATABASE_URL. The database is private by default. Adding public access creates a TCP proxy and a DATABASE_PUBLIC_URL, and egress through that proxy is billed.
  • n8n on Railway. Railway’s guide covers a one-click n8n template, or a manual setup from the official Docker image with a volume. n8n’s Postgres node can insert, update and query rows.
  • MCP servers. Postgres MCP Pro (Crystal DBA) has an unrestricted read/write mode and a restricted, read-only mode. n8n-MCP helps an agent work with n8n node documentation and design workflows. These are third-party projects, not official PostgreSQL or n8n products. A star count is not evidence of reliability.
  • Connecting your assistant. Claude’s custom connectors use remote MCP servers, available on Claude, Cowork and Claude Desktop (Free accounts get one). Postgres MCP Pro’s documented setup uses local stdio or SSE. That does not establish a hosted Claude connector or support in clients that require Streamable HTTP. Keep the database private and use a compatible local client or an authenticated server deployment with private database access.
  • Alternatives. Supabase offers an official MCP server with project scoping and read-only SQL mode. Restrict feature groups too; read-only SQL is not a blanket promise that every other exposed tool has no side effects.

Set it up

  1. Start with one table, and add more once you use it.
  2. Approve each schema in writing before the agent creates it.
  3. Add one sync at a time, and watch it for a week.

Credit: the idea comes from a Substack podcast episode about a personal database by creator Angus Sewell. IonBin reviewed the cited technical documentation. The assembled workflow has not been tested end to end; the inspiration link is credit, not evidence of performance.

Verification limits and implementation checks

The page is documentation-reviewed; the complete workflow has not been run by IonBin.

  • Test the selected client transport and authentication before exposing a remote server.
  • Inspiration article could not be retrieved during this audit; it is not used to establish technical claims.

Where the notes live: Ion’s top picks

A self-hosted database is the right tool when you need SQL queries or strict row-level control. For most personal context, Notion and Obsidian are simpler top picks: Notion’s hosted MCP server avoids running infrastructure, and an Obsidian vault is just a folder of Markdown files. Start there and move to this database only when you outgrow them.

Notion and Obsidian are editorial top picks for organizing notes and hosting context. Neither vendor sponsored or approved this page, and IonBin has no partnership with either.

Sources

Related workflows

No affiliate links on this page. No paid placements in workflows. How IonBin makes money.