Use Prefsly with Claude Code
Register Prefsly as a remote HTTP MCP server for a coding session.
Set it up
- Start Claude Code and run /login if it is not already signed in, then run the command below in a terminal. Add --scope user if you want the connection available across projects.
Claude Code command
claude mcp add --transport http prefsly https://www.prefsly.io/mcp - Complete the Prefsly sign-in and profile consent flow, then run claude mcp list or /mcp to confirm the connection.
- Add the startup instruction below to ~/.claude/CLAUDE.md to apply it across projects.
Startup instruction for ~/.claude/CLAUDE.md
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
You can also create a profile-scoped token in Prefsly Connections if your client supports an Authorization header.
Create and use a profile token
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
Claude Code MCP documentation ↗
Published by Prefsly · Last reviewed September 25, 2026 · All documentation