CardPass Relay
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.
CardPass relay
A small remote MCP server that lets Claude (claude.ai, Claude Desktop, Claude mobile, Claude Code) add, search and edit cards in CardPass, an Android app that asks a few flashcards before opening distracting apps.
It is open source so anyone can check what it can and cannot read.
Tools
Tool | What it does |
| Queues a new card for the phone, returns its id |
| Queues a change to a card created in CardPass |
| Searches the user's own cards (not imported Anki decks) |
Related MCP server: memoraeu-mcp
Connecting
Add
https://cardpass-justin.duckdns.org/mcpas a custom connector in Claude (orclaude mcp add --transport http cardpass https://cardpass-justin.duckdns.org/mcp).The sign-in page shows a QR code: point the phone's camera at it and tap Allow in CardPass. On the phone itself, tap Open CardPass instead.
Sign-in is standard OAuth 2.1 (dynamic client registration, PKCE S256, rotating refresh tokens); approving on the phone is the authorization step. No account, no password.
Privacy model
At first pairing the phone generates a 256-bit key K and a device secret.
Every OAuth token the relay issues is
<random id>.<K>. The relay stores onlysha256(id),sha256(K)andsha256(device secret), never K itself.add_card/update_cardencrypt the operation with K (AES-256-GCM) as it arrives; only ciphertext is stored, until the phone fetches and acknowledges it.The phone uploads a copy of its own cards already encrypted with K, so
search_cardscan decrypt it in memory during a request, then forget it.So at rest the relay cannot read cards. Plaintext exists only in memory while handling a request that carries K. Whoever holds a token (the Claude client you connected) can read your own cards; that is what search needs.
The relay still sees metadata: device id, sizes, timestamps.
Claude itself (Anthropic) necessarily sees the cards it writes or reads.
Running
uv sync
RELAY_URL=https://your.host RELAY_DB=data/relay.db uv run cardpass-relay # listens on 127.0.0.1:8787
uv run pytest # end-to-end tests: OAuth, pairing, tools, phone syncPut it behind HTTPS (e.g. nginx + Let's Encrypt). Run a single worker: pending authorization codes keep K in memory only.
tools/fake_phone.py stands in for the phone to try the relay without the app.
License
MIT
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
A second brain for Claude: remembers your work, plans your day, encrypted under a key only you hold.
Learn languages in Claude: review your flashcards, track progress, build collections, ask questions.
Encrypted long-term memory shared across your AI assistants (Claude, ChatGPT, Perplexity).
Search, read, cite, create, and safely update a user's private KeepFlash knowledge library.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server that enables AI assistants like Claude to interact with Anki flashcard decks, allowing users to create, manage, and update flashcards through natural language conversations.945MIT
- AlicenseNot gradedqualityCmaintenanceZero-knowledge persistent memory layer for Claude with client-side encryption and semantic search.1MIT
- FlicenseAqualityDmaintenanceThis MCP server connects Claude with Anki, allowing users to create flashcards conversationally and automatically deduplicates, classifies, and uploads them without manual copying and pasting. It runs locally with Ollama for embeddings and classification, ensuring privacy.13-
- FlicenseAqualityDmaintenanceEnables Claude and ChatGPT to share a single study-progress database for interview prep, coursework, and spaced repetition, with per-user data isolation and server-side SM-2 scheduling for due reviews and study plans.15-