remote-mcp
What it does
This skill makes the brain on your computer available over MCP, so your other devices and AI apps can reach it. It uses Tailscale as a private connection by default and only opens a public link when you choose to.
When to use it
- ✓When you want to use your brain from another device, a desktop app, or a cloud agent.
- ✓When a cloud AI tool needs to reach your brain and you accept a public endpoint.
- ✓When you want to give one app limited access to your brain.
Skill link
https://github.com/garrytan/gbrain/blob/master/plugin/skills/remote-mcp/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Make my brain reachable from my laptop and phone over my private network, and give me the connection address.”
5 new skills a week. 1 minute to read.
How it works
The agent installs and signs in to Tailscale, publishes the local server on your private network, and keeps it running as a background service. You then grant access to each client separately.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Remote MCP — use your brain from anywhere
The brain already runs on the user's computer. This skill makes it reachable over MCP from their other devices and from the agents they use elsewhere, without moving the data and without putting a database on the public internet. Tailscale is the default transport; publishing is one command, access is one scoped grant per client.
Contract
This skill guarantees:
- Tailscale by default.
gbrain mcp exposepublishes the local server withtailscale serve(HTTPS on the tailnet, nothing public). ngrok and cloud hosts stay documented alternatives, never the first suggestion. - Funnel is explicit. Cloud agents whose runtime is not on the tailnet
(Grok Bot, Muse, ChatGPT, Claude.ai / Cowork, Perplexity) need
--funnel, which makes the same*.ts.netname publicly reachable. Say so before running it; the endpoint is then protected by gbrain's OAuth / bearer auth and scoped grants, not by the network. - Consent before system changes. Installing Tailscale, running
tailscale up, writing a serve/funnel config and creating a user service are host-state changes. Show the operator the printed plan and get a yes before passing--yes. - Engine-free.
gbrain mcp exposenever opens the database. On a PGLite brain the running server owns the single-writer lock, so every later provisioning step goes through the server's authenticated admin API (--admin-token-file), never a second process on the database. - No secrets in chat. The admin token lives in
the receipt's
admin_token_file(normally~/.gbrain/serve/admin-token); machine and confidential OAuth credentials land in a private--credentials-outfile. Public PKCE has no secret. Quote redacted receipts; deliver a requested owner login link privately and unopened. - Owner authority is separate. The expose-managed wrapper loads its
token file as
GBRAIN_ADMIN_BOOTSTRAP_TOKEN; that file authorizesgbrain mcp adminandmcp grantagainst that server. An ordinary MCP token, client secret, or OAuthadminscope does not. With--no-service, use the independently running server's actual configured owner credential; creating an expose token file does not configure that process. - Least privilege. One client per consumer,
memory-writerfor ordinary memory use ormemory-readerfor read-only access. Broader access requires the user's request. Neveroperator/full/adminto make a convenience check pass. - Server checks are not native activation.
gbrain mcp verifyaccepts a private machine handoff and checks the access that grant permits. Native OAuth is verified through the native client's authenticated connection. A generated file or server probe does not prove that client loaded its tools.
Decision table — who is connecting?
| Client | Shape | Command |
|---|---|---|
| Your own devices: Claude Desktop, Claude Code / Codex / opencode on another laptop, phone apps joined to the tailnet | tailnet-only HTTPS (default) | gbrain mcp expose --dry-run (preview; the run itself is Phase 2, after consent) |
| Cloud agents running in a vendor's cloud: Grok Bot, Muse, ChatGPT connector, Claude.ai / Cowork, Perplexity Computer | public HTTPS on the same *.ts.net name |
gbrain mcp expose --funnel --dry-run (preview; Phase 2 after consent) |
Cloud agent whose runtime you can join to your tailnet (userspace tailscaled, ephemeral auth key) |
tailnet-only | Advanced, unverified, not automated — see the remote MCP guide |
| Local agents on the same machine (Claude Code, Codex, opencode) | loopback — no Tailscale needed | Postgres: gbrain bootstrap harness --yes --port 3131. PGLite: mint the token BEFORE the service runs (gbrain auth create local-agents --scopes read,write — before gbrain mcp expose, or while the service is briefly stopped) and pass gbrain bootstrap harness --yes --port 3131 --token <value>; OR use the scoped path gbrain mcp grant <name> --harness <id> --profile memory-writer --source default --url http://127.0.0.1:3131/mcp --admin-token-file ~/.gbrain/serve/admin-token --credentials-out /private/<name>.json then gbrain connect http://127.0.0.1:3131/mcp --harness <id> --credentials-file /private/<name>.json --install (MCP wiring only, no per-turn hooks) |
| Thin client only (this machine has no brain) | — | Stop: |
FAQ
Is my brain public after this?
No. By default it is only on your private network. Public access needs a separate, explicit choice.
Does it move my data to the cloud?
No. Your data stays on your computer, and only the connection is shared.
Will it change my system without asking?
No. Installing software and changing the network setup need your explicit approval first.
Details
Original description by the author
Publish the user's own gbrain over MCP so other devices, desktop apps and cloud agents can reach it. `gbrain mcp expose` installs and signs in Tailscale, publishes the running `gbrain serve --http` on the tailnet (HTTPS, tailnet-only by default; Funnel only when a client lives in a vendor cloud), keeps the server alive as a user service, and hands back the MCP URL. Then register one least-privilege client per consumer, choose native OAuth/PKCE or a private machine handoff for that client, and verify the connection inside the intended harness.
repo: garrytan/gbrain
Popularity
- GitHub stars
- 31k
- Ranking position
- #9308
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
gbrain
31kLets your agent search a shared company knowledge brain for facts about people, projects and decisions, and save durable notes to it.
brain-ingest-gate
31kChecks new content against an existing knowledge brain before it is added, to avoid duplicates and resolve named entities first.
brain-link-discipline
31kMakes sure your agent includes a working link to each brain page it reports, in the same message, so you can open it right away.
brain-ops
31kGives your agent the core routine for a knowledge brain: check existing context first, save explicit notes with their source, and link related pages.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.