Docs / Integrations
MCP

Use Prefsly with Cline

Let Cline in VS Code or its CLI retrieve one selected Prefsly profile.

Set it up

  1. Authenticate a Cline model provider with cline auth, select a model, then create a profile token in Prefsly Connections and copy it while it is visible.
  2. Export the token as PREFSLY_PROFILE_TOKEN, then run the command below to add Prefsly as a Streamable HTTP server. It stores the token as an Authorization header in Cline's local configuration.

    Cline CLI commands

    export PREFSLY_PROFILE_TOKEN='your-profile-token'
    cline mcp add prefsly https://www.prefsly.io/mcp --transport streamable-http --header "Authorization: Bearer $PREFSLY_PROFILE_TOKEN" --yes
    cline config mcp
  3. Run cline config mcp to confirm the server tools appear.
  4. Add the startup instruction below to ~/.agents/AGENTS.md to apply it across projects.

    Startup instruction for ~/.agents/AGENTS.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

Cline supports remote Streamable HTTP and legacy SSE servers. This example uses a profile token; keep it in the local Cline configuration and revoke it in Prefsly Connections when needed.

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

Cline MCP documentation ↗

Related Prefsly guides

Create and manage profilesMCP authentication optionsMCP troubleshootingPrivacy and sharing controls
Published by Prefsly · Last reviewed September 25, 2026 · All documentation