User Context Protocol — the missing standard for human-to-AI memory
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add usrcp-user-context-protocol --env USRCP_PASSPHRASE='<USRCP_PASSPHRASE>' -- npx -y usrcp~/.codex/config.toml
[mcp_servers.usrcp-user-context-protocol]
command = "npx"
args = ["-y", "usrcp"]
env = { USRCP_PASSPHRASE = "<USRCP_PASSPHRASE>" }
# codex mcp add usrcp-user-context-protocol --env USRCP_PASSPHRASE='<USRCP_PASSPHRASE>' -- npx -y usrcp~/.cursor/mcp.json
{
"mcpServers": {
"usrcp-user-context-protocol": {
"command": "npx",
"args": [
"-y",
"usrcp"
],
"env": {
"USRCP_PASSPHRASE": "<USRCP_PASSPHRASE>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"usrcp-user-context-protocol": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"usrcp"
],
"env": {
"USRCP_PASSPHRASE": "<USRCP_PASSPHRASE>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"usrcp-user-context-protocol": {
"command": "npx",
"args": [
"-y",
"usrcp"
],
"env": {
"USRCP_PASSPHRASE": "<USRCP_PASSPHRASE>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"usrcp-user-context-protocol": {
"command": "npx",
"args": [
"-y",
"usrcp"
],
"env": {
"USRCP_PASSPHRASE": "<USRCP_PASSPHRASE>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"usrcp-user-context-protocol": {
"command": "npx",
"args": [
"-y",
"usrcp"
],
"env": {
"USRCP_PASSPHRASE": "<USRCP_PASSPHRASE>"
}
}
}
}需要的环境变量
USRCP_PASSPHRASE
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。