people-context is a local-first tool that provides "people memory" for AI agents, based on SQLite and offering both an MCP server and a CLI. It aims to solve the problem of AI assistants lacking information about the people in a user's life: for example, when you ask "How should I communicate with Priya about the report delay?", the assistant originally does not know which Priya this is, who she is, what you last agreed on, or what communication style she prefers. people-context stores this knowledge centrally and lets AI agents query it through a limited set of tools.
Main capabilities:
- Identity resolution: explainable name disambiguation based on names, nicknames, aliases, and accounts. When there is ambiguity, it returns multiple candidates with the reasons for the match, and never guesses silently.
- Knowledge management: records relationships, organizations and roles, durable facts, concise interaction summaries, personality traits, reminders, and a timeline for each person; discloses information progressively as requested.
- Communication guidance: gives communication advice based on recorded personality traits, past friction, unfinished follow-ups, and your own written communication philosophy.
- Silent relationship reports: generates reports on relationships that have gone quiet and upcoming date reminders from stored data.
- Safe import: supports email, mbox, vCard, calendar, LinkedIn, Outlook, and WhatsApp export files, first staging them as reviewable candidates and only recording them after approval; raw source content is never retained.
- Trust by design: write operations have audit records; "forget" is a true deletion; sensitive records sit behind a gate accessible only to the operator, which prompts cannot open; ordinary commands never go online.
How to use it:
- Quick trial: includes a packaged fictional dataset demo that always writes to a dedicated database {XDG_DATA_HOME or ~/.local/share}/people-context/demo.db, ignoring --db, PEOPLE_CONTEXT_DB, and config files; --reset only replaces that file and its -wal/-shm companion files, so real databases are never read or modified. The demo writes audited fictional people, accounts, affiliations, facts, interactions, and a connected relationship graph, then prints the server command pointing to that database and specific tool calls.
- Installation requirements: Python 3.11+ and uv.
- Client integration:
- Claude Code: one-step installation, restart or run /reload-plugins, and get the server plus the /people-context:who, /people-context:remember, and /people-context:reminders commands.
- Claude Desktop: download the latest release of people-context.mcpb and open it; it installs a pinned version and bundles the uv runtime.
- Codex: just start a new session.
- Other clients: add a stdio server in the MCP configuration, for example .cursor/mcp.json, ~/.codeium/windsurf/mcp_config.json, .vscode/mcp.json, etc., or write it using the CLI: uvx --from people-context pctx setup cursor (windsurf, vscode, and claude-desktop are also supported; add --dry-run to preview). VS Code uses the servers key and "type": "stdio".
- Native plugins: communicate with an optional loopback HTTP server.
- Command examples: pctx remember "Amina Hassan" "prefers short emails" --org "Open City Lab" and pctx brief "Amina Hassan".
- Other features:
- Semantic search: uv sync --extra semantic && pctx reindex --semantic downloads a pinned multilingual Model2Vec model once; startup and search use only the cache.
- Obsidian: pctx export-vault --output ~/PeopleVault generates a deterministic browsable vault, and a read-only Obsidian plugin renders live briefs.
- Import: pctx import stage SOURCE PATH then review and commit, supporting email, mbox, vCard, .ics, LinkedIn, Outlook, and WhatsApp exports; agents can likewise stage extracted candidates.
- Local browser: pctx browse --open provides a loopback-only, token-protected page for browsing people, reviewing, editing, and submitting staged import batches.
- Groups: pctx group records classes, teams, clubs, and families, then use pctx group shared A B to ask how two people know each other.
- Reporting and maintenance: pctx stale, pctx upcoming, pctx timeline, pctx doctor, pctx stats.
- Backup and second device: pctx sync push --output DIR and pctx sync pull --input PATH.
- Docker: docker run --rm -i -v people-context-data:/data ghcr.io/jinyangwang27/people-context:latest. Convenience image, not a sandbox.
- Database location: --db, PEOPLE_CONTEXT_DB, XDG config file, shared ~/.pctx/people.db decide in that order; check with pctx db-path -v.
Use cases:
- Personal assistants need to remember contact details, communication preferences, and interaction history.
- Scenarios requiring local, private storage of people information, avoiding cloud leaks.
- Developers and advanced users integrating with AI agents through MCP.
- Managing relationship networks, reminding about follow-ups, and avoiding communication missteps.
Limitations and security notes:
- Requires Python 3.11+ and uv.
- The database is plaintext SQLite by default; on Unix-like systems new databases have 0600 permissions, but this is not encryption, there are boundaries between accounts, and it is recommended to use full-disk encryption or choose SQLCipher at-rest encryption (uv sync --extra encrypted, the key is read only from PEOPLE_CONTEXT_DB_KEY).
- Loopback HTTP is designed for clients that cannot start stdio, has no authentication, is local-only, and stdio should be preferred.
- The project executes local Python with the filesystem permissions of the launching user; normal MCP discovery excludes sensitive context and full exports; operator-gated tools require a process environment flag, and the model cannot enable them through parameters; Vault export is CLI-only.
- DemoThe database is always isolated and does not touch the real database; person IDs differ each time the seed is generated.
- The codebase uses a ports and adapters architecture, with dependencies pointing inward; see docs/architecture.md for details.
- License: MIT.