threadkeep-mcp
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.
threadkeep-mcp
A local MCP server that lets Claude Desktop, Cursor, VS Code and other MCP apps search and read the chats you saved with the Threadkeep browser extension. Made by SKILLMERC.
It reads the memory folder Threadkeep writes (Markdown files plus .threadkeep/index.json). It is read-only, talks only over stdio, and opens no network connection.
Status
0.1.0, the first release: three read-only tools over one memory folder.
Related MCP server: chist
Privacy
It reads only the files listed in the folder's
.threadkeep/index.json. It never changes, moves or deletes a file. It sends nothing to SKILLMERC or anyone else: no telemetry, no update check.If you start it with
npx, npx downloads it from the npm registry (npmjs.com) the first time and may check there for a newer copy when it starts. The Claude Desktop bundle needs no download after you install it.The AI app you connect it to decides what it does with the text it reads. That may include sending it to the app's AI provider under your account. Read that app's privacy policy.
Tools
All three are read-only (readOnlyHint: true, openWorldHint: false). Each tool description tells the AI app that chat text is quoted material, not instructions. A saved chat can still hold text that reads like instructions, so keep your AI app's tool approval prompts on.
search_chats { query, site?, tag?, folder?, since?, until?, limit? }: every word must match (Chinese, Japanese and Korean text is matched by character pairs, as on the Threadkeep library page). Chats with the words in the title come first, then the best match, then the newest. Returns id, title, site, updated, folder, file and up to 3 snippets of about 300 characters per chat.limitdefault 10, max 25. No match gives a plain "No saved chats match ..." message.get_chat { id, offset?, max_chars? }: the chat's front matter fields (title, site, url, created, updated, messages, folder, tags, pinned) and its Markdown.max_charsdefault 20,000, max 50,000; when there is more,next_offsetsays where to go on.list_chats { site?, folder?, tag?, since?, until?, limit?, cursor? }: newest first.limitdefault 25, max 100;next_cursorgives the next page.
folder matches that library folder and its subfolders ("" means Unfiled). since and until take a date (2026-11-21, UTC, until includes the whole day) or a full ISO time. No answer is longer than 60,000 characters.
Staying current
The search index is built in memory at start from the files listed in index.json. Before each call the server checks index.json; when the extension has written a new one, the index is rebuilt without a restart, and only chats whose file changed are read again. If index.json is caught half-written, the previous index keeps serving and the next call tries again.
Set up
The npx setups below need Node 20 or newer. The Claude Desktop bundle needs no Node.
Use your own memory folder in place of the example path: the folder you chose in Threadkeep, the one that holds .threadkeep/. In JSON on Windows, double each backslash: "C:\\Users\\you\\Documents\\Threadkeep Memory".
Claude Desktop: Settings, Developer, Edit Config opens claude_desktop_config.json. Add this, save, then quit and reopen Claude Desktop:
{ "mcpServers": { "threadkeep": { "command": "npx", "args": ["-y", "threadkeep-mcp@0.1", "--dir", "/Users/you/Documents/Threadkeep Memory"] } } }Cursor: the same mcpServers block in ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project).
VS Code (GitHub Copilot): .mcp.json at the root of your project (one project) or ~/.copilot/mcp-config.json (every project), with "type": "stdio":
{ "mcpServers": { "threadkeep": { "type": "stdio", "command": "npx", "args": ["-y", "threadkeep-mcp@0.1", "--dir", "/Users/you/Documents/Threadkeep Memory"], "tools": ["*"] } } }Then ask your AI app, for example: "Search my saved chats for sourdough." If the app says the server failed, its MCP log shows the reason this server gave, for example "no .threadkeep/index.json in ...".
To check the folder from a terminal: npx -y threadkeep-mcp@0.1 --dir "<folder>" prints how many chats it serves (on stderr), then waits for an AI app. Press Ctrl+C to stop.
Claude Desktop bundle (.mcpb)
manifest.json turns this package into an MCP Bundle: one file that Claude Desktop installs with a double click (or Settings, Extensions, Advanced settings, Install Extension). Claude Desktop ships its own Node, so the user needs no Node or npm. On install it asks for one setting, Threadkeep memory folder (a folder picker, user_config.memory_folder), and starts node bin/threadkeep-mcp.js --dir <that folder>. Display name "Threadkeep Memory", author SKILLMERC, icon icon.png (the Threadkeep store icon, drawn at 512 px by the same code as ../threadkeep/scripts/make-icons.mjs; its 128 px render is byte-identical to the store icon).
Build it:
node scripts/bundle.mjs # writes dist/threadkeep-mcp-<version>.mcpb and .mcpb.sha256The script fails (exit 1) unless every check passes:
manifest.jsonhas the same name, version, licence, Node range and entry point aspackage.json, and lists exactly the toolssrc/tools.jsregisters. Bump the version in both files together.It copies the package without
test/andscripts/to a temp folder and runsnpm ci --omit=dev, so dev dependencies never reach the bundle.mcpb validateandmcpb packwith the official CLI,@anthropic-ai/mcpb@2.1.2(exact version, pinned in the script)..mcpbignoreleaves out/test/,/scripts/,/dist/and old bundles. Its patterns start with/on purpose: an unanchoreddist/ortest/also drops those folders insidenode_modules, which removed the MCP SDK's code in the first try.The file list has no tests, fixtures, scripts or dev dependencies, and every
.js/.jsonfile of every production dependency is in it.It unpacks the bundle and starts the server with the exact command and arguments in
manifest.json(as Claude Desktop does), pointed attest/fixtures/memory, then checksinitializeandtools/list: the three tools, all read-only.It writes the SHA-256 of the bundle next to it, for the download page.
CI: .github/workflows/threadkeep-mcp-bundle.yml runs the script on Linux, Node 22, on a push to threadkeep-2.1 that changes manifest.json, scripts/bundle.mjs or the workflow, or by hand. It keeps the bundle as the artifact threadkeep-mcp-mcpb for 3 days. Bundle size at 0.1.0: about 3.9 MB packed, 12 MB unpacked.
Where it goes: skillmerc.com only (the Threadkeep help page), with the SHA-256 shown next to the link. The Claude directory no longer takes new MCPB submissions.
Signing: unsigned, on purpose
We ship the bundle unsigned and publish its SHA-256 over HTTPS instead. Decided 28 Nov 2026:
Signing breaks installs today.
mcpb signappends the signature after the zip's end record; Claude Desktop reads bundles with a strict zip parser and refuses signed files with "Invalid comment length" (modelcontextprotocol/mcpb issue 278, June 2026; signed bundles also failed to install in issue 194, Feb 2026). Unsigned bundles install, with only a log warning.A signature would not be checked anyway. The verifier in the CLI and in Claude Desktop calls a PKCS#7 stub that always throws, so every bundle reads as "unsigned", signed or not (issues 260 and 305, Nov 2026).
A real code-signing certificate costs money every year and needs a company identity check by the director, for no gain while the two points above hold. A self-signed certificate proves nothing to a user and still breaks the install.
Look again when the mcpb project closes issues 278 and 260 and Claude Desktop shows signed bundles differently, or when a business buyer's admin turns on the "signature required" policy (isDesktopExtensionSignatureRequired); then sign in CI with a certificate kept as an Actions secret.
What it refuses
To start, unless
--diris a folder holding.threadkeep/index.jsonwith"format": "threadkeep-memory"and"version": 1. So it cannot be pointed at a home folder by mistake. The reason goes to stderr and the exit code is non-zero.To serve any file not listed in the
chatsof index.json, any file that is not.md, any file over 25 MB, and any path that resolves outside the folder:..segments, absolute paths, drive letters, backslashes, and symlinks (file or folder) that lead out. The check isrealpathpluspath.relative, never a string prefix, so a sibling such as<folder>-oldis outside too.To read a file without checking it again first. Every read runs the path check again (the folder can change while the server runs), then opens the file without following a final symlink and confirms the open file is the one that was checked.
To write to stdout anything but JSON-RPC. Logs, warnings,
--helpand--versiongo to stderr, andconsole.*calls are routed to stderr.
Limits
The index is built before the server answers the AI app: about 5 s for 2,000 chats of 40 KB on a Mac, roughly 25 s for 10,000. A very large folder can pass an app's start timeout.
If
--diris a symlink and it is pointed at another folder while the server runs, the next reload serves the new folder (it still needs a valid index.json).
Development
Node 20 or newer. Runtime dependencies: @modelcontextprotocol/sdk and zod (the schema library the SDK uses for tool inputs), both pinned to exact versions.
npm install
npm testThe fixture lives in test/fixtures/memory (rebuild with node test/fixtures/make-fixture.mjs). Symlinks, the oversize file and the sibling folder are made at test time in a temp copy, so the repo checks out cleanly on Windows.
Tests
npm testrunstest/run.mjs: everytest/*.test.mjswithtest/no-network.mjsinNODE_OPTIONS, so the test runner, each test file and every server the tests start have the network blocked.test/preload.test.mjsfails if the suite is run any other way. Extra arguments go tonode --test:npm test -- --test-name-pattern=search.What the suite covers: path safety, index loading, the command line, the SDK stdio client, raw stdout purity (only JSON-RPC on stdout, a stray
console.loggoes to stderr), the three tools, reload onindex.jsonchange, size caps, and that the site ids in the tool descriptions match the extension writer (../threadkeep/src/memory/format.js; skipped when that file is not next to this package).npm run smoke:inspectorcallstools/listand onesearch_chatsagainst the fixture through the MCP Inspector command line (pinned@modelcontextprotocol/inspector@2.17.0, fetched by npx, so it needs the network and Node 22.23.4 or newer). CI runs it on Node 22.CI:
.github/workflows/threadkeep-mcp.yml. A push tomainorthreadkeep-2.1that touches this folder runs Linux, Node 20 and 22. macOS and Windows run only by hand: Actions, threadkeep-mcp, Run workflow, tickos_matrix(macOS minutes count 10 times, Windows 2 times).
Release
Public repo: https://github.com/skillmerc/threadkeep-mcp (a mirror of this folder plus its own .github/). npm publishing uses trusted publishing (OIDC) with provenance, so no npm token is stored anywhere.
.github/workflows/ci.yml(public repo only):npm ciandnpm teston every push tomainand every pull request, on Linux, macOS and Windows with Node 20, 22 and 24 (manifest.jsonlistswin32)..github/workflows/publish.yml(public repo only): runs on a published GitHub release, or by hand with the inputdry_run(default true). Node 22 (22.14 or newer) and npm 11.5.1 or newer,npm ci,npm test, thennpm publish --dry-run, or for a releasenpm publish --provenance --access public. A release first checks that its tag isvplus the package.json version. It runs in the GitHub environmentnpm, which onlymainandv*tags may use.Both workflows run the tests with
CIset to empty, because the extension source the contract test reads is not in the public repo (the test skips without it, but fails whenCIis set).
Release steps:
Bump
versioninpackage.jsonandmanifest.jsontogether, commit in HQ. The package folder must have no uncommitted changes.node scripts/sync-public.mjs(dry run: clones the public repo to a temp folder, copies, commits there, prints the changes; nothing is pushed).node scripts/sync-public.mjs --pushputs it onmain(CI runs), or--releasepushes and creates the GitHub releasev<version>, which starts publish.yml for the real publish.
The script copies only files git tracks in this folder. It leaves out node_modules, backups, HQ notes (REVIEW*.md, HANDOFF*.md), itself, and any file named like .env, *.pem, *.p12, *.pfx, .npmrc, *key* or token(s). It refuses when the version is not newer than the public repo's last v* tag, when the folder has uncommitted changes, when a file holds something shaped like a token or private key, when a commit author or committer is not the SKILLMERC company identity, and (for --release) when package.json is still "private": true or has no repository.url of git+https://github.com/skillmerc/threadkeep-mcp.git (npm provenance checks it). The GitHub token is read in code and never printed.
First publish (once, by hand)
npm has no "pending" trusted publisher. The trusted publisher form lives in the package's own settings on npmjs.com, so the package must exist on the registry before it can be added (https://docs.npmjs.com/trusted-publishers, "Step 1: Add a first trusted publisher on npmjs.com": "Navigate to your package settings", read 28 Nov 2026 18:31 SAST; task 2033). So the first version goes up once by hand, and publish.yml takes over from the second version. Do not run step 3 of the release steps above with --release for 0.1.0: its publish.yml run would fail on the missing trusted publisher.
In HQ, remove
"private": truefrompackage.json(npm refuses to publish a private package, and the sync script refuses--releasewith it), commit, thennode scripts/sync-public.mjs --push. Wait for ci.yml on the publicmainto pass.Clean clone, nothing else in the folder:
git clone https://github.com/skillmerc/threadkeep-mcp.gitinto a new temp folder,cd threadkeep-mcp, checkgit statusis clean and thepackage.jsonversion is the one to ship.Node 22.14 or newer and npm 11.5.1 or newer (
npm install -g npm@latestif older).npm ci, thenCI= npm test, thennpm publish --dry-run --access publicand read the file list (onlybin/,src/,README.md,LICENSE,package.json).npm login --auth-type=web. Open the login address npm prints in a browser, sign in as the npm userskillmerc(the package owner) and answer the second factor with its passkey. Use a recovery code only if npm offers no other way. Never paste the login address anywhere.npm publish --access public. npm asks for the second factor again in the browser: answer it with the same passkey. This first version has no provenance statement (that needs the CI publish); later versions get it from publish.yml.npm view threadkeep-mcp versionshows the version. Then tag that commitv<version>and push the tag only (git tag v0.1.0 && git push origin v0.1.0), with no GitHub release, so the sync script's "newer than the last v* tag" check works next time and publish.yml does not start.
Then add the trusted publisher on npmjs.com: package threadkeep-mcp, Settings, Trusted publisher, GitHub Actions: organization or user skillmerc, repository threadkeep-mcp, workflow filename publish.yml (filename only), environment npm. Under allowed actions tick npm publish: publishers made after 3 Sep 2026 allow only npm stage publish by default, and publish.yml runs npm publish. npm does not check the fields when you save, and all of them are case-sensitive. The same thing from the command line, with npm 11.15 or newer and the login from step 4: npm trust github threadkeep-mcp --file publish.yml --repo skillmerc/threadkeep-mcp --allow-publish plus the environment flag that npm trust github --help lists (check the flags there first).
A new trusted publisher expires if it has no successful publish within 2 days, and an expired one can only be deleted and made again. So add it only when the next version (0.1.1) is ready, and release that version through publish.yml (--release) the same day. After that CI publish works: Settings, Publishing access, "Require two-factor authentication and disallow tokens", Update Package Settings. Hand publishing from a laptop still works after that with the passkey; tokens stop working.
Other route npm documents: npm stage publish on a package that does not exist yet creates it with a public placeholder version 0.0.0-stage, and the real version goes live only after a maintainer approves it with the second factor (https://docs.npmjs.com/staged-publishing). We do not use it, because the placeholder version stays public on the package page.
Licence
MIT. Made by SKILLMERC.
ChatGPT, Claude, Gemini, NotebookLM, DeepSeek, Grok, Cursor and Visual Studio Code are trademarks of their owners. threadkeep-mcp is not made, endorsed or supported by any of them.
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
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
- ORANO MCP ServerDeprecatedio.github.infotik
Read-only MCP server exposing a user ORANO library to their own AI agent.
Read-only Google Search Console MCP server for AI assistants.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides a read-only MCP server to access ChatGPT conversation history via a local browser process. Allows AI clients to list, get, and search conversations from the authenticated user's ChatGPT account.92 npm1MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for unified full-text search across chat histories from Claude Code, Codex, Cursor CLI, and Antigravity CLI, using SQLite FTS5. Provides read-only tools to search sessions, list conversations, and retrieve session details.MIT
- AlicenseNot gradedqualityBmaintenanceSearch and read locally-recorded meeting transcripts over stdio. Read-only, no network. Exposes list_sessions, get_session, and search_transcripts to any MCP client.90 PyPI7MIT
- -licenseNot gradedqualityNot gradedmaintenanceA local read-only MCP server that lets MCP clients such as the Claude app fetch X/Twitter posts and search, Reddit posts, threads and search, and YouTube transcripts and search. It reads through your own saved logins using a fixed set of read-only commands, and cannot post, vote, follow or message.-