remote-mcp
O que ela faz
Esta skill disponibiliza o cérebro no seu computador por MCP, para que seus outros dispositivos e apps de IA possam acessá-lo. Usa o Tailscale como conexão privada por padrão e só abre um link público quando você escolhe.
Quando usar
- ✓Quando você quer usar seu cérebro a partir de outro dispositivo, de um app de desktop ou de um agente na nuvem.
- ✓Quando uma ferramenta de IA na nuvem precisa acessar seu cérebro e você aceita um endpoint público.
- ✓Quando quer dar a um app acesso limitado ao seu cérebro.
Link da skill
https://github.com/garrytan/gbrain/blob/master/plugin/skills/remote-mcp/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Torne meu cérebro acessível pelo meu notebook e pelo meu celular pela minha rede privada, e me dê o endereço de conexão.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente instala e entra no Tailscale, publica o servidor local na sua rede privada e o mantém rodando como serviço em segundo plano. Depois você concede acesso a cada cliente separadamente.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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: |
Perguntas frequentes
Meu cérebro fica público depois disso?
Não. Por padrão ele fica apenas na sua rede privada. O acesso público exige uma escolha separada e explícita.
Meus dados vão para a nuvem?
Não. Seus dados continuam no seu computador, e só a conexão é compartilhada.
Ele altera meu sistema sem perguntar?
Não. Instalar software e mudar a configuração de rede exigem sua aprovação explícita antes.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 31 mil
- Posição no ranking
- #9308
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
gbrain
31 milPermite que seu agente pesquise em um cérebro de conhecimento compartilhado da empresa, buscando fatos sobre pessoas, projetos e decisões, e salve notas duráveis nele.
brain-ingest-gate
31 milVerifica um novo conteúdo contra um cérebro de conhecimento existente antes de adicioná-lo, para evitar duplicatas e resolver entidades nomeadas primeiro.
brain-link-discipline
31 milGarante que seu agente inclua um link funcional para cada página do cérebro que relatar, na mesma mensagem, para que você possa abri-la logo.
brain-ops
31 milOferece ao seu agente a rotina básica de um cérebro de conhecimento: consultar o contexto, salvar notas com a fonte e ligar páginas relacionadas.
Skills parecidas
mcporter
394 milAjuda seu agente a listar, chamar e inspecionar servidores MCP e suas ferramentas por HTTP ou stdio, e a gerenciar as configurações de login.
fastmcp
260 milAjuda você a construir, testar e publicar um servidor MCP em Python que dá a assistentes de IA acesso à sua API, banco de dados ou arquivos como ferramentas.
mcp-oauth-remote-gateway
260 milGuia você pelo login OAuth de um servidor MCP remoto quando o Hermes roda em um servidor, onde o login normal pelo navegador não consegue chegar.