Логотип People Context

People Context

Спільнота
JinyangWang27

Local-first memory for AI agents about the people in your life. MCP server + CLI on SQLite. Never phones home.

ВидавецьJinyangWang27
Репозиторійpeople-context
МоваPython
Форки
3
Зірки
56
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    People Context надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 56, форки: 3 — у пов’язаному репозиторії.

people-context

English | 简体中文

Your agent already remembers your codebase. Now it can remember your people.

people-context is a local-first MCP server and CLI that gives AI agents durable memory about the people in your life: who someone is, how you know them, what you last agreed, and how they like to be talked to. One SQLite file on your machine. No account, no cloud, no network calls.

CI codecov OpenSSF Scorecard OpenSSF Best Practices PyPI PyPI downloads Python License

pctx demo: seed a fictional dataset, list people, and print a brief

Why

Ask an assistant "how should I approach Priya about the reporting delay?" and it has nothing: it does not know which Priya, that she is your counterpart at a partner org, that you agreed a new deadline last week, or that she prefers a short email over a call. That knowledge lives in your head, your inbox, and a notes file the agent cannot see.

people-context keeps it in one place the agent can query through narrow tools:

  • Who is this? Explainable name resolution over names, nicknames, aliases, and handles. Two Priyas come back as two candidates with a match reason, never a silent guess.
  • What do I know? Relationships, organisations and roles, durable facts, concise interaction summaries, traits, reminders, and a per-person timeline, each disclosed only as far as the request needs.
  • How do I talk to them? Communication guidance grounded in recorded traits, past friction, open follow-ups, and your own written philosophy.
  • Who has gone quiet? Stale-relationship and upcoming-date reports over what is already stored.
  • Get data in safely. Email, mbox, vCard, calendar, LinkedIn, Outlook, and WhatsApp exports are staged as reviewable candidates. You approve what gets recorded; raw source content is never kept.

It is opinionated about trust: writes are audited, forget is a real delete, sensitive records sit behind an operator-only gate that a prompt cannot open, and ordinary commands never touch the network.

Demo

A packaged fictional dataset is the fastest way to see identity resolution, graph traversal, and bounded context without touching real data:

bash
uvx --from people-context pctx demo --reset

The demo always writes its own dedicated database at {XDG_DATA_HOME or ~/.local/share}/people-context/demo.db. It ignores --db, PEOPLE_CONTEXT_DB, the config file, and --reset replaces only that file plus its -wal/-shm companions, so a real database is never read or modified. Seeding writes audited fictional people, handles, affiliations, facts, interactions, and a connected relationship graph, then prints the path-targeted server command and concrete tool calls that use the ids it just created:

text
Demo database: /home/you/.local/share/people-context/demo.db
Start MCP server: people-context-mcp --db /home/you/.local/share/people-context/demo.db
resolve_person {"query": "Amina Hassan"}
get_relationship_graph {"person_id": "<amina-id>", "depth": 2}
find_connection {"person_a": "<self-id>", "person_b": "<sofia-id>"}

Person ids are generated per seed, so the printed values differ from the placeholders above. Start the printed server command in an MCP client and run the printed calls verbatim. See docs/cli.md.

Quick start

Requires Python 3.11+ and uv. Pick your client; each is one step.

bash
claude plugin marketplace add JinyangWang27/people-context
claude plugin install people-context@people-context-plugins

Restart Claude Code or run /reload-plugins. You get the server plus /people-context:who, /people-context:remember, and /people-context:reminders. Details: docs/claude-code-plugin.md.

Download people-context.mcpb from the latest release and open it. Claude Desktop installs the pinned release with its own uv runtime. Details: docs/desktop-and-editors.md.

bash
codex plugin marketplace add JinyangWang27/people-context
codex plugin add people-context@people-context-plugins

Start a new Codex session. Details: docs/codex-plugin.md.

Add the stdio server to your client's MCP config (.cursor/mcp.json, ~/.codeium/windsurf/mcp_config.json, .vscode/mcp.json, ...):

json
{
  "mcpServers": {
    "people-context": {
      "command": "uvx",
      "args": ["--from", "people-context", "people-context"]
    }
  }
}

Or let the CLI write it: uvx --from people-context pctx setup cursor (also windsurf, vscode, claude-desktop; add --dry-run to preview). VS Code uses a servers key with "type": "stdio". Per-editor snippets: docs/desktop-and-editors.md.

bash
openclaw plugins install clawhub:openclaw-plugin-people-context

The native plugin talks to the opt-in loopback HTTP server. Details: docs/openclaw-plugin.md.

bash
uv tool install people-context
pctx init        # seed your own record, optionally import a vCard, then connect a client
pctx --help

people-context and people-context-mcp are the server commands; pctx is the human-operated CLI.

Then try, in your agent:

Who is Amina?

Remember that Amina from Open City Lab prefers short emails and hates surprise calls.

What should I know before my meeting with Daniel tomorrow?

The second one is a single remember tool call: the name is resolved, the person is created only if nobody matches, and the affiliation and preference are recorded in one audited transaction. Ambiguous names come back as candidates, never a guess.

Or, without an agent: pctx remember "Amina Hassan" "prefers short emails" --org "Open City Lab" and pctx brief "Amina Hassan". Five worked scenarios live in docs/use-cases.

What it remembers, and what it never does

It remembersIt never does
Names, nicknames, aliases, and handlesUpload anything, anywhere
Relationships with a canonical, extensible vocabularyStore raw imported emails, chats, or files
Organisations, roles, and time-bounded affiliationsLet a model enable sensitive disclosure or full export
Durable facts, observations, and traits with evidenceCommit imported or agent-extracted data without your review
Concise interaction summaries and a per-person timelineLog private values or keep a soft-deleted copy after forget
Reminders, follow-ups, and your communication philosophyMake a network request outside pctx reindex --semantic

How it compares

people-contextAssistant memory (ChatGPT, Claude)Memory platforms (Mem0 and similar)
Where data livesOne SQLite file you ownVendor accountVendor platform or your own deployment
Works offlineYesNoSelf-hosted only
Knows people as first-class recordsIdentity, relationships, roles, graph, guidanceFree-text notesFree-text or vector memories
Explains a matchRanked candidates with a reason; ambiguity is surfacedNoSimilarity score
Import review gateStage, review, commitn/aAutomatic extraction
DeletionHard delete plus audit redaction in one transactionRequest to vendorAPI delete
Backup and movepctx sync push / pull bundlen/aDeployment-specific

The dated, sourced version with vendor documentation links is in docs/privacy-and-safety.md.

Security model

This project executes local Python with the launching user's filesystem permissions. Ordinary MCP discovery excludes elevated sensitive context and full export. Operator-gated tools require process environment flags; models cannot enable them through arguments. Vault export is intentionally CLI-only.

The database is plaintext SQLite by default. On Unix-like systems a new one is created 0600, so other local accounts cannot read it. That is a boundary between accounts, not encryption, so pair it with full-disk encryption or opt into SQLCipher at-rest encryption (uv sync --extra encrypted, key read only from PEOPLE_CONTEXT_DB_KEY). See database file permissions and optional at-rest encryption.

Going further

  • Loopback HTTP for clients that cannot spawn stdio: people-context-mcp --http --host 127.0.0.1 --port 8765. Unauthenticated and local-only by design; prefer stdio. See docs/cli.md.
  • Semantic search: uv sync --extra semantic && pctx reindex --semantic downloads a pinned multilingual Model2Vec model once; server startup and search stay cache-only.
  • Obsidian: pctx export-vault --output ~/PeopleVault writes a deterministic, browsable vault, and a read-only Obsidian plugin renders live briefs. See docs/obsidian-plugin.md.
  • Import: pctx import stage SOURCE PATH then review and commit, over email, mbox, vCard, .ics, LinkedIn, Outlook, and WhatsApp exports. Agents can stage extracted candidates the same way. See docs/import.md.
  • Local browser: pctx browse --open serves a loopback-only, token-guarded page to browse people and review, edit, and commit staged import batches. See docs/cli.md.
  • Groups: record classes, teams, clubs, and households with pctx group, then ask how two people know each other with pctx group shared A B. See docs/shared-connections-examples.md.
  • Reports 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. A convenience image, not a sandbox. See docs/docker.md.
  • Database location: --db, then PEOPLE_CONTEXT_DB, then the XDG config file, then the shared ~/.pctx/people.db. Inspect with pctx db-path -v.

The full command reference is in docs/cli.md; the MCP tool inventory and response contracts are in docs/mcp-interface.md; what stays stable across releases is in docs/compatibility.md.

Architecture

The codebase follows ports and adapters:

text
adapters (SQLite, MCP, filesystem, imports, CLI)
        ↓ implement
ports (narrow Protocols)
        ↑ used by
app (use cases and policy)
        ↓ operates on
domain (entities and values)

Dependencies point inward. Vocabulary normalization and graph caps live in app/domain; recursive SQL and file writing live in adapters. One composition root wires both stdio and HTTP. See docs/architecture.md.

Documentation

DocumentContents
docs/architecture.mdLayering, dependency rule, entrypoint wiring
docs/data-model.mdSchema, migrations, and perspective display_type
docs/relationship-graph.mdVocabulary, normalization, perspective, traversal, curation
docs/identity-resolution.mdResolution stages, ambiguity, and why transliterations are stored aliases
docs/communication-guidance.mdCommunication signals and the coaching workflow
docs/vault-export.mdLayout, marker safety, determinism, sensitivity
docs/mcp-interface.mdMCP tools and stable response contracts
docs/compatibility.mdWhat stays stable across releases for MCP, DB, CLI, and JSON
docs/cli.mdCLI commands and DB resolution
docs/import.mdImport sources, staging, review, and commit
docs/design/sync.mdSync design and delivered local foundations
docs/releasing.mdPyPI trusted publishing, Codecov, and release procedure
docs/mcp-registry.mdMCP Registry namespace, server.json, and community-directory submission matrix
docs/distribution-checklist.mdAccount-owner walkthrough: Registry publish, directories, awesome lists, Desktop directory, Obsidian
docs/desktop-and-editors.mdNative-UV MCPB Desktop bundle and Cursor/Windsurf/VS Code snippets
docs/docker.mdOptional non-root stdio Docker image, data volume, and GHCR publishing
docs/claude-code-plugin.mdClaude Code install, runtime, privacy, validation, and publishing
docs/codex-plugin.mdCodex install, runtime, privacy, validation, and publishing
docs/openclaw-plugin.mdOpenClaw install, runtime, privacy, validation, and ClawHub publishing
docs/obsidian-plugin.mdObsidian read-only panes, subprocess safety, encryption, and mirrored releases
docs/privacy-and-safety.mdDisclosure, audit, forget, threat model
docs/use-casesNarrative recipes for onboarding, meeting prep, follow-up, migration, and auditing
docs/evals.mdEvaluation harness, fixed tasks, scoring rules, and dated recorded results
coaching, transcript, and shared-connection examplesFictional worked scenarios with review rubrics
docs/roadmap.mdDelivered milestones and remaining candidates

Contributing

Issues and pull requests are welcome; see CONTRIBUTING.md for the architecture rules, validation commands, and a list of good first issues. Questions and show-and-tell go to Discussions.

If people-context is useful to you, a star helps other people find it.

License

MIT. See LICENSE.

Встановлення

TypingMind
{
  "mcpServers": {
    "people-context": {
      "command": "uvx",
      "args": [
        "--from",
        "people-context",
        "people-context-mcp"
      ]
    }
  }
}

Використовуйте MCP People Context з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення People Context ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте People Context як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP People Context.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "people-context": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для People Context, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для People Context.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через People Context?
People Context
Звісно. Я це прочитав.
Ось що я знайшов за допомогою People Context.

Поширені запитання

Для чого використовується сервер MCP People Context?

People Context — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP People Context з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати People Context з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP People Context із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши People Context, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP People Context до TypingMind?

People Context працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP People Context у TypingMind?

People Context надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP People Context?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо People Context потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇