/marketing-os:os-mcpfrom Marketing OS
Deploys a Relay MCP server to the user's Railway account, granting Claude read/write access to their Obsidian vault via the Relay.md sync protocol. Bundled source ships inside the skill; user only provides a Railway token.
Ships in Marketing OS. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill deploys the Relay MCP v2 server to the user's own Railway account. The MCP source is bundled at ${CLAUDE_PLUGIN_ROOT}/skills/os-mcp/reference/relay-mcp-server/ — copy from there, do not fetch from anywhere else. The deployed server lets Claude clients (Claude Code or claude.ai) read/write the user's Obsidian vault by talking to the Relay.md sync protocol.
One thing: a Railway account token — created at https://railway.com/account/tokens.
That's it. After deploy, the user signs in with their Relay.md credentials via OAuth; the MCP then auto-discovers their relay vault and the folders inside it via PocketBase. No vault GUIDs, no folder maps.
| Var | Source | Value |
|---|---|---|
RELAY_API_URL | preset | https://api.system3.md |
PB_AUTH_URL | preset | https://auth.system3.md |
PB_COLLECTION | preset | users |
DATA_DIR | preset | /data |
PORT | preset | 3000 |
JWT_SECRET | auto-generated | openssl rand -hex 32 |
STATIC_MCP_BEARER | auto-generated | openssl rand -hex 24 |
ALLOWED_EMAILS | preset | blank (any authenticated Relay.md user) |
RELAY_AUTH_TOKEN | preset | blank (OAuth-only; no static fallback) |
RELAY_ID | not set | auto-discovered at runtime per user |
PUBLIC_URL | derived | from railway domain after first deploy |
Save the generated STATIC_MCP_BEARER in the chat for the user — they'd use it for any CLI/script access bypassing OAuth.
If the user has multiple Relay vaults, the MCP auto-picks the first one. They can call the vault_relays tool after connecting to see which is active and pin a different one by setting RELAY_ID in railway variables.
Execute in order. Confirm each step before moving on.
railway --version
If missing:
brew install railwaynpm i -g @railway/cliRe-run to confirm.
Tell the user:
Open
https://railway.com/account/tokens, click Create Token, name itos-mcp-deploy, copy the value, and paste it here.
When pasted:
export RAILWAY_API_TOKEN="<paste>"
railway whoami
railway whoami should print the user's Railway email. If it errors, the token is wrong — ask them to regenerate.
cd "${CLAUDE_PLUGIN_ROOT}/skills/os-mcp/reference/relay-mcp-server"
# Create a new Railway project (interactive — let user pick name)
railway init
# Persistent volume for clients.json + sessions.enc
railway volume add --mount-path /data
# Upload source, build via Dockerfile, deploy
railway up
Wait for the deploy. Tail logs if useful: railway logs.
Generate the secrets:
JWT_SECRET=$(openssl rand -hex 32)
STATIC_MCP_BEARER=$(openssl rand -hex 24)
Set everything in one shot (note: RELAY_ID is intentionally NOT set — it auto-discovers):
railway variables \
--set "RELAY_API_URL=https://api.system3.md" \
--set "PB_AUTH_URL=https://auth.system3.md" \
--set "PB_COLLECTION=users" \
--set "DATA_DIR=/data" \
--set "PORT=3000" \
--set "JWT_SECRET=$JWT_SECRET" \
--set "STATIC_MCP_BEARER=$STATIC_MCP_BEARER"
Service auto-redeploys after --set. Wait for it to come back up.
railway domain # assigns + prints public domain
Copy the URL, then:
railway variables --set "PUBLIC_URL=https://<the-domain>"
railway up # final redeploy so OAuth issuer/audience match
curl https://<the-domain>/health
Expect 200 OK with JSON {"status":"ok","version":"2.0.0",...}.
Print these for the user:
Claude Code:
claude mcp add --transport http vault https://<the-domain>/mcp
Claude.ai (web): Settings → Connectors → Add custom connector → paste https://<the-domain>/mcp. Sign in with their Relay.md credentials when the OAuth window opens.
Also tell them: their STATIC_MCP_BEARER is <value> — keep it for any CLI/script access that needs to bypass OAuth.
In a fresh Claude conversation, ask Claude to call vault_relays (or have the user say "list my Relay vaults"). Expect at least one vault, with * next to the active one.
Then call vault_folders — expect a non-empty list of folder names. If empty, the user may not have folder access in that relay.
If the user has multiple relays and the wrong one is active, pin the right one:
railway variables --set "RELAY_ID=<the-vault-guid-from-vault_relays>"
(One redeploy and the next OAuth session will use that relay.)
railway whoami fails after pasting Railway token. Token expired or wrong scope. Regenerate at https://railway.com/account/tokens.
Build fails with TypeScript errors. Don't modify the bundled package.json / tsconfig.json. Re-copy fresh from ${CLAUDE_PLUGIN_ROOT}/skills/os-mcp/reference/relay-mcp-server/.
/health returns 5xx. railway logs will name the missing env var (assertRequiredConfig lists what's missing on boot).
vault_relays returns "No relays accessible to this user". The signed-in Relay.md account doesn't own or belong to any relay. Have them create one in the Relay.md Obsidian plugin first.
vault_folders returns empty but vault_relays shows the vault. Folders are stored in the shared_folders PocketBase collection — the user may not have any folders in that relay yet, or the active relay isn't the one they meant. Check vault_relays output for the active marker.
OAuth sign-in loops. PUBLIC_URL doesn't match the actual Railway domain. Re-run Step 5.
Want to gate access to specific emails. railway variables --set "[email protected],[email protected]" then redeploy.
Want to start over. railway down to tear down, then re-run from Step 3.
reference/relay-mcp-server/AUTH.md (opens in a new tab)reference/relay-mcp-server/Dockerfile (opens in a new tab)reference/relay-mcp-server/package-lock.json (opens in a new tab)reference/relay-mcp-server/package.json (opens in a new tab)reference/relay-mcp-server/railway.json (opens in a new tab)reference/relay-mcp-server/src/auth/clients.ts (opens in a new tab)reference/relay-mcp-server/src/auth/codes.ts (opens in a new tab)reference/relay-mcp-server/src/auth/jsonfile.ts (opens in a new tab)reference/relay-mcp-server/src/auth/pending.ts (opens in a new tab)reference/relay-mcp-server/src/auth/pocketbase.ts (opens in a new tab)reference/relay-mcp-server/src/auth/provider.ts (opens in a new tab)reference/relay-mcp-server/src/auth/refresh-loop.ts (opens in a new tab)reference/relay-mcp-server/src/auth/sessions.ts (opens in a new tab)reference/relay-mcp-server/src/auth/tokens.ts (opens in a new tab)reference/relay-mcp-server/src/config.ts (opens in a new tab)reference/relay-mcp-server/src/index.ts (opens in a new tab)reference/relay-mcp-server/src/relay-client.ts (opens in a new tab)reference/relay-mcp-server/tsconfig.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
railway-deploy, obsidian-mcp, relay-md, self-hosted-mcp, mcp-server
npx claudepluginhub benaios/benai-skills --plugin marketing-os12 skills in this plugin
/instant-uiBuild a BenAI-branded HTML page in the neo-brutalist instant-ui design language (cream background, near-black ink, 3px hard borders, 6px zero-blur shadows, a blue/green/amber gradient stripe, system font plus SF Mono, weight-900 headings). Use for any BenAI landing page, offer, sales, or pricing page, onboarding or intake form, partner page, case study, playbook, toolkit, or internal doc that must look like it came off the same line as the BenAI Champion Offer assets. Reproduces that visual language 1:1 with a fixed token set and a 20-component library. Triggers include "instant-ui", "benai ui", "benai brand page", "build a benai page", "make this look like benai", "on-brand landing page", "branded form", "benai landing", "champion offer page". Not for dark HUD dashboards (route to personal-ui) or non-BenAI clients (route to client-docs)./marketing-os-carouselBuild an image-first social carousel from an asset already filed in the Marketing OS, export it as a PDF, and record it back as a real channel asset. Brand palette, typography, the logo pointer and the never-black-background rule all resolve from Context/brand/brand-kit.md. Source is a filed newsletter edition, published pillar asset, or pipeline brief, so it provably says what the parent said. Fans out parallel readers over the OS before planning, renders every slide with Higgsfield, QAs every slide with one agent each, prompted to reject rather than pass, composites the footer in code, assembles the PDF, then writes the repurposed-channel asset pointing at the PDF, updates the parent's repurpose tree, logs, and always closes by rendering a run report. Use when the user says 'build a carousel', 'turn this newsletter into a carousel', or runs /marketing-os-carousel.\"
disable-model-invocation: true
argument-hint: \"[source, e.g. a broadcast slug, a published pillar slug, or 'latest newsletter']/marketing-os-dashboardBuild, rebuild, and deploy the Marketing OS control center: a self-contained single-page dashboard rendered from the OS files, eleven pages in six nav groups (Core, Calendar, Content, Campaigns, Funnel, Performance, Learnings, Audience, Intelligence, Team, System). Interviews the user on first build to decide which pages earn a place, then reads the OS, assembles one inline JSON data block, swaps it into the fixed page shell, verifies the page opens with no external requests, deploys to a live URL and records it in config. Renders gaps as 'not pulled' rather than zero, flags any routine that should have run and did not, and renders correctly in both light and dark palettes. Bundled shell ships with the skill. Run from the Marketing OS root. Use when the user says 'build my marketing dashboard', 'rebuild the control center', 'update the marketing OS dashboard', 'deploy my marketing dashboard', 'my dashboard is stale', 'marketing os dashboard', or runs /marketing-os-dashboard./marketing-os-market-intelRun a market intelligence brief against the Marketing OS, score every find, and turn the ones that clear the bar into scored ideas in the backlog. The watchlist, competitor roster, lookback window and connectors all come from the OS, and what counts as a signal comes from the positioning file, so the brief reports the translation gap rather than generic AI news. Fans out one agent per stream in a single batch across official sources, practitioners, the competitor roster, search demand and the wider web, with an effort floor and distinct sources so a run cannot conclude from one search. Reads existing daily scan files and pulls live only for the window they miss. Writes a dated standing brief to Intelligence/market/, seeds scored ideas, logs, and always closes by rendering the brief. Use when the user says 'run market intel', or runs /marketing-os-market-intel.\"
disable-model-invocation: true
argument-hint: \"[optional focus, e.g. 'agents', 'a competitor name', or a lookback like 'last 7 days']/marketing-os-newsletterWrite a newsletter edition from the Marketing OS, gated step by step, then file it as a real asset. Reads the ICP, voice register, offer and live price, measured patterns and swipe file from the OS, never from bundled copies. Sources from a pillar asset, the values doc, a community post or a raw idea. Fans out five parallel readers over the OS before the first gate, and verifies the draft with independent agents against the voice register and offer facts. Seven gates with options at each; the edition is written only after the angle, insight, outcome, outline, subject line and hook are confirmed. On approval it writes Channels/newsletter/broadcasts/YYYY-MM-DD-slug.md, appends the shipped subject line to the swipe file, updates the parent's repurpose tree, logs, and always closes by rendering the edition. Use when the user says 'write a newsletter', or runs /marketing-os-newsletter.\"
disable-model-invocation: true
argument-hint: \"[source, e.g. a published video slug, 'values doc', or a raw idea]/marketing-os-researchAnswer an open question the Marketing OS already wrote down, then promote it to a finding. Takes its queue from the OS itself: files with status open-question in Intelligence/research/, open questions and untested beliefs in Analytics/what-works.md, and ideas with no established pain. Fans out one agent per stream in a single batch across papers, forums, the web and creators, with an effort floor, distinct sources and full-text reads, fact-checks every hard claim with a verifier prompted to refute rather than confirm, then writes Intelligence/research/topic-slug.md and updates the question file in place with a dated status change. Routes findings about our own performance to Analytics, and graduates recurring customer language to the segment files. Always closes by rendering the report. Use when the user says 'research this', 'deep dive on', or runs /marketing-os-research.\"
disable-model-invocation: true
argument-hint: \"[a topic, or an open-question file to close, or nothing to be shown the queue]7 plugins in 2 repositories ship this exact skill · first indexed Sep 18, 2026
Showing 6 of 7 plugins, one per repository first
Other plugins' skills for the same job