remote-mcp
Qué hace
Esta skill hace que el cerebro de tu ordenador esté disponible mediante MCP, para que tus otros dispositivos y aplicaciones de IA puedan acceder a él. Usa Tailscale como conexión privada por defecto y solo abre un enlace público si tú lo eliges.
Cuándo usarla
- ✓Cuando quieres usar tu cerebro desde otro dispositivo, una aplicación de escritorio o un agente en la nube.
- ✓Cuando una herramienta de IA en la nube necesita acceder a tu cerebro y aceptas un punto de acceso público.
- ✓Cuando quieres dar a una aplicación un acceso limitado a tu cerebro.
Link de la skill
https://github.com/garrytan/gbrain/blob/master/plugin/skills/remote-mcp/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Haz que mi cerebro sea accesible desde mi portátil y mi móvil a través de mi red privada, y dame la dirección de conexión.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente instala e inicia sesión en Tailscale, publica el servidor local en tu red privada y lo mantiene funcionando como un servicio en segundo plano. Después concedes acceso a cada cliente por separado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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: |
Preguntas frecuentes
¿Es público mi cerebro después de esto?
No. Por defecto solo está en tu red privada. El acceso público requiere una elección aparte y explícita.
¿Mueve mis datos a la nube?
No. Tus datos se quedan en tu ordenador, y solo se comparte la conexión.
¿Cambiará mi sistema sin preguntar?
No. Instalar software y cambiar la configuración de red necesitan tu aprobación explícita antes.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 31 mil
- Posición en el ranking
- #9308
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
gbrain
31 milPermite que tu agente busque en un cerebro compartido de conocimiento de la empresa datos sobre personas, proyectos y decisiones, y guarde notas duraderas en él.
brain-ingest-gate
31 milComprueba el contenido nuevo frente a un cerebro de conocimiento existente antes de añadirlo, para evitar duplicados y resolver primero las entidades nombradas.
brain-link-discipline
31 milHace que tu agente incluya un enlace que funcione a cada página del cerebro que menciona, en el mismo mensaje, para que puedas abrirla enseguida.
brain-ops
31 milOfrece a tu agente la rutina básica de un cerebro de conocimiento: consultar primero el contexto, guardar las notas explícitas con su fuente y enlazar páginas relacionadas.
Skills parecidas
mcporter
394 milAyuda a tu agente a listar, llamar e inspeccionar servidores MCP y sus herramientas por HTTP o stdio, y gestionar sus ajustes de inicio de sesión.
fastmcp
260 milTe ayuda a crear, probar e implementar un servidor MCP en Python que da a los asistentes de IA acceso a tu API, base de datos o archivos como herramientas.
mcp-oauth-remote-gateway
260 milTe guía para iniciar sesión con OAuth en un servidor MCP remoto cuando Hermes se ejecuta en un servidor, donde el inicio de sesión normal en el navegador no llega.