Familiar
OfficialProvides read-only access to Google Calendar and Google Contacts via a background sync, keeping calendar events and contact details available to Familiar's briefs and context.
Syncs Google Calendar events through a background worker and lets the upcoming and brief tools read events and attach what Familiar knows about attendees.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Your assistant's familiar: a self-hosted memory and context layer for Claude (and other MCP clients). It keeps a durable model of your life, made of the people, projects and facts your sessions teach it plus your calendar and contacts kept fresh by a background worker, and serves it to any client through one remote MCP endpoint. It works the same from Claude on your phone, your laptop or Claude Code.
Familiar runs no model. The client does the reasoning with Familiar's tools, and memory changes only when a session writes to it. There are no API keys to buy and no per-call model cost.
It is single-tenant by design: one deployment, one owner, gated to one Google account.
What it does
Remembers.
remember,forget,restore,update_entity,merge_entities,move_factsandretire_linkkeep a graph of entities (people, organisations, projects) with facts and links, each carrying confidence and provenance. Deletes are soft and reversible.Recalls.
get_contextreturns what is known about an entity, ranked, optionally narrowed by topic.searchcovers stored facts and then raw source material.what_do_you_knowlists what is stored.Briefs.
upcomingandbriefread your calendar and attach what Familiar knows about the people you are meeting.Learns how you work.
how_i_workreturns an operating policy you write plus preferences sessions have noted withnote_preference. Preferences gain confidence each time they are seen again; ones noted once and never again are retired after 45 days.Ingests. A worker syncs Google Calendar and Google Contacts on a schedule and runs the daily retention sweep.
Related MCP server: memory-mcp
How it fits together
Claude mobile ─┐
Claude Desktop ┼─→ mcp service ─→ Postgres + pgvector ←─ worker
Claude Code ─┘ (MCP tools, (episodes, entities, (ingest + retention)
OAuth 2.1) facts, links) ↑
Calendar, ContactsOne build, two processes, selected by PCL_ROLE: mcp serves the tools and the OAuth server,
worker ingests. Auth is a small OAuth 2.1 authorization server that delegates sign-in to Google
and accepts exactly one Google account (ALLOWED_SUBJECT). Clients get two scopes:
context:read and context:write.
Requirements
Node 22 or newer, and pnpm
Postgres 15+ with the
pgvectorextensionA Google Cloud project with an OAuth client (for sign-in and for calendar and contacts access)
An HTTPS host for the MCP service, since remote MCP clients need a public
https://URLDocker, only to run the full test suite locally
Setup
1. Install
git clone https://github.com/webfeathers/familiar.git
cd familiar
pnpm install
cp .env.example .env2. Database
Create a Postgres database with pgvector available and put its URL in DATABASE_URL. If your
migrations run from a laptop against a hosted database with separate private and public URLs, set
DATABASE_PUBLIC_URL too; migration tooling prefers it.
pnpm db:migrateThe first migration runs CREATE EXTENSION IF NOT EXISTS vector;. The worker also applies pending
migrations when it starts, so later schema changes need no manual step.
3. Google OAuth client
In Google Cloud Console, create an OAuth client of type Web application, enable the Google Calendar API and the People API, and add these authorised redirect URIs:
https://<your-host>/oauth/google/callback # sign-in to the MCP service
http://localhost:4711/callback # pnpm mint:google, run once on your machineSet GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET, then mint the worker's refresh token and find
your Google sub:
pnpm mint:google workIt prints a refresh token for GOOGLE_REFRESH_TOKEN_WORK and your sub for ALLOWED_SUBJECT.
Use the sub (a stable number), not your email address.
The 7-day trap. Google revokes refresh tokens after 7 days for apps whose consent screen is External and Testing, because calendar access is a sensitive scope. If your account is on Google Workspace, set the consent screen's user type to Internal and the token does not expire. To include a personal Gmail calendar, share it (read-only) with your Workspace account and one token reads both. On a plain Gmail account you will need to re-run
pnpm mint:googleweekly or take the app through Google's verification. Seedocs/CREDENTIALS.md.
4. Configure
Variable | Purpose |
| Postgres connection string |
| Exact public origin of the MCP service, e.g. |
| Signs issued tokens and the OAuth state cookie. Generate with |
| The one Google |
| Your name, used for the owner entity that preferences attach to. Defaults to |
| Your own addresses or domains, comma-separated ( |
| Optional operating policy for |
| Optional label for that policy; bump it when the rules change |
| The OAuth client from step 3 |
| The worker's refresh token from step 3 |
|
|
| Listen port for the MCP service, default |
Check everything with:
pnpm doctorIt confirms each credential is present and live, and never prints a secret.
5. Run
pnpm build
PCL_ROLE=mcp pnpm start # the MCP service
PCL_ROLE=worker pnpm start # the workerDeploy both from the same build on any host that runs Node and gives the MCP service a public
HTTPS URL (Railway, Fly.io, Render, a VPS behind a reverse proxy). GET /healthz needs no auth and
reports whether migrations are current and the running commit. The commit comes from Railway's
RAILWAY_GIT_COMMIT_SHA; on other hosts it reads unknown.
6. Connect a client
Add a custom connector pointing at:
https://<your-host>/mcpIn Claude, that is Settings, Connectors, Add custom connector. You sign in with Google and approve the scopes. Claude's hosted callback, Claude Code's loopback callback and ChatGPT's connector callback are accepted; any other redirect is refused.
To have Claude use it automatically, add something like this to your Claude preferences:
At the start of any substantive session, call
how_i_workfrom the familiar connector to load my working preferences. When something is learned about how I like to work, record it withnote_preference.
Development
pnpm dev:mcp # MCP service with reload
pnpm dev:worker # worker with reload
pnpm typecheck
pnpm test # full suite; starts a loopback pgvector container (needs Docker)
pnpm test:unit # the no-database subset
pnpm db:generate # regenerate migrations after editing src/store/schema.tsThe database tests refuse any database that is not on loopback with test in its name, so they
cannot reach a real deployment. Set TEST_DATABASE_URL to use your own test database instead of
the container.
drizzle-kit generate does not emit extension statements. If migrations are ever regenerated
from scratch, keep the hand-added CREATE EXTENSION IF NOT EXISTS vector; at the top of the first
one.
Security model
One owner. Sign-in is delegated to Google and only
ALLOWED_SUBJECTgets through.Google is used to identify you; the MCP service stores no Google token. Only the worker holds a refresh token, and only with read-only calendar and contacts scopes.
Redirect URIs are an exact allow-list, so the server is not an open redirector.
Read and write are separate scopes, and tokens keep the scopes they were granted.
Your memory lives in your own database. Back it up the way you would any database you care about.
Status
Familiar is a personal project shared as is. It runs daily for its author, but there is no support commitment and the schema may change. Issues and pull requests are welcome.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables personal AI memory management through MCP tools for adding, searching, exporting, and deleting memories, with knowledge-graph retrieval and multi-hop association for clients like Claude Desktop and Cursor.61Apache 2.0
- AlicenseAqualityCmaintenanceEnables Claude Code and other MCP-capable agents to turn conversations into structured long-term memories, deciding whether each extracted fact is new, an update, or already known while preserving superseded history. It also lets agents recall the right facts through hybrid keyword and entity-graph search, list what is stored, and permanently forget entries.5MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other MCP hosts to persist and recall long-term agent memories—episodic turns, semantic facts with conflict-aware versioning, and procedural rules—using scored retrieval and supporting deletion.MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude.ai, Claude Code, and other MCP-capable AI agents to store and semantically search personal memories, with OAuth/API-key access and a weekly reconciliation flow for reviewing near-duplicate merges.MIT