Use Prefsly with Grok Build
Let Grok Build retrieve one authorized Prefsly profile during coding sessions.
Set it up
- Run the command below in a terminal where Grok Build is installed.
Grok Build commands
grok mcp add --transport http prefsly https://www.prefsly.io/mcp grok mcp list grok # Inside grok-build CLI: /mcps # select prefsly and press i - Start Grok Build with `grok` and open /mcps. Select prefsly and press i to authenticate, OAuth opens on the server's first use.
- When the OAuth flow opens, sign in to Prefsly and approve one profile.
- Grok Build has no documented user-global instruction file. Add the startup instruction below to the repository's root AGENTS.md, or paste it into each new session.
Startup instruction
At the start of every new session, call the `prefsly` MCP tool `get_profile` and use its returned preferences throughout the session. If the call fails, tell me that prefsly.io preferences could not be loaded.
Good to know
Grok Build handles OAuth for remote MCP servers. Prefsly connections are scoped to one profile; revoke the connection in Prefsly to stop future reads.
Update or disconnect
For copied prompts, copy a new prompt after edits. For MCP, your next tool call sees the saved revision. Revoke a connection from Prefsly Connections when you no longer want a client to retrieve the profile.
Official source
Grok Build MCP documentation ↗
Published by Prefsly · Last reviewed September 25, 2026 · All documentation