Skip to main content

plintho-mcp

A small CLI + MCP server that lets any MCP-capable client (Claude Desktop, Cursor, Cline, Zed, …) query the plintho voice-journal backend on behalf of a single user.

Install

pipx install plintho-mcp          # recommended
pip  install plintho-mcp          # alternative

Or from source:

git clone https://github.com/vtech-ai/plintho-mcp.git
cd plintho-mcp
pipx install -e .

Requires Python 3.11+. Runtime deps: mcp, httpx. The package does not pull in any of the plintho backend's heavy dependencies.

Pair this device with your account

$ plintho-mcp login --name "MacBook Cursor"
配对码: WXYZ-2345
请在 plintho iOS app → Settings → MCP Access 输入此码
等待中...
✓ 已登录为 user-abc

The token is saved to ~/.plintho/mcp_token (mode 600). The plaintext exists only on this machine; the server stores only its sha256 hash.

Wire into your MCP client

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "plintho": { "command": "plintho-mcp" }
  }
}

Claude Code

claude mcp add plintho -- plintho-mcp

Cursor — ~/.cursor/mcp.json

{
  "mcpServers": {
    "plintho": { "command": "plintho-mcp" }
  }
}

Same command key works for Cline / Zed / Continue / any stdio-MCP client.

Tools exposed

Tool What it does
list_events_by_date All events on a given date (YYYY-MM-DD or today/yesterday).
get_event_detail One event's note (Markdown) + raw utterances.
search_events Free-text search across event titles/summaries/notes, optional date.
search_utterances Substring search across raw transcribed utterances.
get_daily_summary Daily summary (日报) for a given date.

All tools are scoped to the user the token was issued to — there is no user_id parameter and the server enforces ownership on every call.

Collect local chat transcripts

plintho-mcp collect ships your Claude Code (~/.claude/projects) and OpenClaw (~/.openclaw/agents) conversations to your plintho account so they show up as chat events next to your voice notes. Only text blocks are uploaded — tool calls, tool results and thinking stay on your machine.

plintho-mcp collect                    # one incremental run (same as `collect run`)
plintho-mcp collect --dry-run          # parse only, print what would upload
plintho-mcp collect install            # macOS: launchd job every 5 min
plintho-mcp collect status             # heartbeat + launchd last exit code
plintho-mcp collect uninstall

It reuses the token from plintho-mcp login; the server binds every message to that token's owner, so there is no --user-id to get wrong.

Progress is tracked per file in ~/.plintho/collector_state.json (the first run imports offsets from the retired vmate ~/.vmate/chat_collector_state.json if present). Each run writes ~/.plintho/collector_last_run.json; collect status exits non-zero when the last run failed, the launchd job last exited non-zero, or the heartbeat is stale.

The launchd plist points at the absolute path of the installed plintho-mcp binary, so the job keeps working regardless of shell PATH or which Python environments come and go.

Optional — upload a session the moment it ends via a Claude Code SessionEnd hook (launchd still catches anything missed):

{ "hooks": { "SessionEnd": [ { "hooks": [
  { "type": "command", "command": "plintho-mcp collect --file \"$transcript_path\"" }
] } ] } }

Cloud sessions (claude.ai/code) don't write to ~/.claude/projects and are not collected.

Other commands

plintho-mcp whoami             # show current user_id / token name
plintho-mcp logout             # delete the local token file
plintho-mcp login --force      # re-pair (replaces existing token locally)

To revoke a token server-side, use the iOS app → Settings → MCP Access.

Environment variables

Var Default Purpose
PLINTHO_API_BASE https://api.plintho.app Backend URL.
PLINTHO_HOME ~/.plintho Token + config directory.

Metadata

Release files for plintho-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plintho-mcp 0.2.0
File Size Uploaded Provenance Actions
plintho_mcp-0.2.0.tar.gz 21.8 kB Without provenance Details for plintho_mcp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plintho-mcp 0.2.0
File Interpreter ABI Platform Actions
plintho_mcp-0.2.0-py3-none-any.whl Python 3 none any Details for plintho_mcp-0.2.0-py3-none-any.whl

Total release size: 43.6 kB

Release files / plintho_mcp-0.2.0.tar.gz

Download URL plintho_mcp-0.2.0.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9a282379a08cb6abf05ff182d2dedc82b28d50a0207f48983227c43adcd765c0
BLAKE2b-256 checksum
How to use checksums
d6edbfb53c5d2463703f2c7527b7416d934cb2f32b49269467d2f450054fbc4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / plintho_mcp-0.2.0-py3-none-any.whl

Download URL plintho_mcp-0.2.0-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
095706e3ab5e5d56ced3bbe359cd2951babf5bc5c324999a8f05ad225dc1cb52
BLAKE2b-256 checksum
How to use checksums
beae2a81a6191ea90462338b247887c753aa1405f7ce51abc3f451b0298d2028
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Security for plintho-mcp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page