USRCP — User Context Protocol logo

USRCP — User Context Protocol

Shares encrypted user context across MCP clients through a local SQLite ledger and structured state tools.

Install USRCP — User Context Protocol

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "usrcp-user-context-protocol": {
      "command": "npx",
      "args": [
        "-y",
        "usrcp"
      ],
      "env": {
        "USRCP_PASSPHRASE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env USRCP_PASSPHRASE=YOUR_VALUE_HERE --transport stdio usrcp-user-context-protocol -- npx -y usrcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y usrcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

USRCP — User Context Protocol MCP server stores structured user state in an encrypted local SQLite ledger that MCP-aware tools can read and update. Its tools cover handoffs, identity, preferences, projects, facts, timeline events, auditing, and key rotation. Exact-keyword timeline search supports the structured core, while optional adapters capture activity from services such as GitHub, Linear, Obsidian, Claude Code, and Google Calendar. Use it when users need to move between supported AI tools without repeatedly restating project context, while noting that automatic capture and recall depend on the configured integrations.

Use cases

  • Share project context between Claude Code, Cursor, and Codex
  • Retrieve a focused startup brief for an ongoing task
  • Record structured identity, preference, and project updates
  • Capture authored activity from GitHub, Linear, or Obsidian
  • Audit and rotate encryption keys for a local ledger

Key features

  • Encrypted local SQLite ledger
  • MCP tools for state, facts, projects, and handoffs
  • Exact-keyword timeline search
  • Optional activity-capture adapters
  • Scoped access by domain
  • Encrypted audit trail and key rotation

Tools13

What USRCP — User Context Protocol lets your agent do. Expand a tool for its parameters.

Verified live~3.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 78d

What it can do

From the 13 tools this server returned when we ran it.

Can delete or modify data · 1Read-only tools · 12
Network at startup3 connections
Files written at startup10
Install scriptsNone
npm provenanceSigned build
Package age142 days
Maintainers1

Observed 2026-10-31 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · usrcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads260Package downloads in the last 30 days.
Last commit12d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed13Callable tools this server registers over MCP.

How USRCP — User Context Protocol works

What USRCP — User Context Protocol does

USRCP — User Context Protocol provides a local context layer for multiple AI clients. It keeps identity details, preferences, projects, domain context, free-form facts, and activity events in one encrypted SQLite ledger. MCP clients can request a focused startup brief with usrcp_handoff or inspect broader state through usrcp_get_state.

The server is designed for continuity when a user changes tools. A client can record work with usrcp_append_event, update structured profile data, and retrieve recent context from the same local profile. The core workflow does not require a cloud account or transfer of the ledger to another service.

How it works

The local MCP process reads and writes the selected user ledger. Structured records are encrypted at rest, and authorized agents receive decrypted context through the MCP interface. Multiple users on one machine can have separate slugs, ledgers, passphrases, and MCP entries.

The available state model includes identity, communication preferences, projects, domain-scoped key-value data, and facts stored by domain, namespace, and key. usrcp_update_identity supports an optional expected_version value for read-modify-write updates. Timeline searches use blind-index tokens and exact keywords; they are not semantic searches.

Capture adapters can append activity authored in connected sources to the same ledger. The documented structured adapters include GitHub, Linear, Obsidian, Claude Code, and Google Calendar. Experimental conversation-capture adapters are also available for Slack, Discord, Telegram, iMessage, and Gmail, but they are separate packages and require their own setup.

Setup and configuration

USRCP — User Context Protocol requires Node 22.13 or newer, with Node 24 or newer recommended. Install the CLI with npm or Homebrew, then initialize a profile and start the server:

Terminal
npm install -g usrcp
usrcp init
usrcp serve

Initialization normally prompts for a passphrase. The passphrase can be stored in the operating system keychain, or supplied through USRCP_PASSPHRASE when starting the server. Development mode can instead keep a key on disk. Initialization also creates the user directory and writes a Claude Desktop MCP configuration entry.

Adapters are installed separately, then configured with the setup wizard. For example, installing usrcp-linear is followed by usrcp setup --adapter=linear. Source builds require building the protocol core before building and linking the local package.

Tools and capabilities

The MCP tool set includes:

  • usrcp_handoff for a condensed, domain-specific brief containing reviewed facts and recent work.
  • usrcp_get_state for identity, preferences, projects, and timeline data.
  • usrcp_append_event for recording interaction events.
  • Identity, preference, domain-context, fact, and project update tools.
  • usrcp_get_facts and usrcp_search_timeline for reading stored context.
  • usrcp_audit_log, usrcp_rotate_key, and usrcp_status for auditing, encryption-key rotation, and health information.

Optional domain restrictions limit which areas scoped agents can see. The status tool is scope-aware, so a scoped agent receives statistics for its permitted domains.

Limitations and notes

USRCP — User Context Protocol is an early beta. A shared ledger does not by itself guarantee that an AI client will retrieve or follow startup instructions; client behavior should be checked with the documented acceptance test. The structured core uses exact-keyword lookup rather than semantic retrieval.

The optional usrcp-stream feature has a different privacy boundary: local embedding vectors are plaintext on disk, and external embedding providers receive content only after consent. The optional device relay synchronizes ciphertext content with visible metadata rather than the complete structured profile. Key rotation re-encrypts all data and should be treated as an administrative operation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about USRCP — User Context Protocol

USRCP — User Context Protocol is an MCP server that connects MCP-aware AI clients to an encrypted local SQLite ledger of user context. Its main tools create handoffs, read state, append events, update identity and preferences, manage projects and facts, search the timeline, inspect audits, rotate keys, and report ledger status.

Install it with npm or Homebrew, then initialize and start the ledger with `usrcp init` and `usrcp serve`. npm requires Node 22.13 or newer. Initialization can register the server with Claude Desktop and supports passphrase or development-key modes.

Yes, Cursor is one of the clients named as supported. Register the local MCP server with Cursor using its MCP configuration, then ensure the selected ledger can be unlocked through the configured keychain entry or `USRCP_PASSPHRASE`.

The structured core does not provide semantic search; its timeline search uses exact keyword tokens through `usrcp_search_timeline`. An optional `usrcp-stream` feature adds semantic recall, but it uses a different storage and privacy boundary.

Install the relevant adapter package and run its setup wizard. For example, use `npm install -g usrcp-linear` followed by `usrcp setup --adapter=linear`; the wizard validates credentials and selects the capture scope. GitHub uses the corresponding `usrcp-github` package and adapter name.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewUSRCP — User Context Protocol AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/usrcp-user-context-protocol?style=directory)](https://allmcps.com/mcp/usrcp-user-context-protocol)
HTML Embed
<a href="https://allmcps.com/mcp/usrcp-user-context-protocol"><img src="https://allmcps.com/api/badge/usrcp-user-context-protocol?style=directory" alt="USRCP — User Context Protocol on AllMCPs" /></a>