MindFerry
by cmy515006420
README.md
English | [简体中文](README.zh-CN.md)
<div align="center">
<img src="src/ui/static/logo.svg" width="72" alt="MindFerry logo">
# MindFerry
**One picture of you for all your AIs, kept on your own computer.**
MindFerry reads the chats you already had with ChatGPT, Claude, Gemini, Grok, DeepSeek and others, works out what they learned about you, and lets each of your AIs know it, following rules you set once.
   
<img src="docs/images/demo-en.gif" width="860" alt="MindFerry demo with a made-up person: drop in chat exports, see how each AI sees you, copy a profile, review facts, choose what each AI may see">
</div>
## Why
You told ChatGPT you're a frontend engineer. You told Claude you moved to Denver. You told Gemini you're vegetarian. Each AI knows a different slice of you, so you keep repeating yourself.
MindFerry gathers those slices into one short "About me" page and hands the right part of it to each AI. Health, money, ID numbers, contact details and other people stay private unless you decide otherwise. Nothing is uploaded and there is no account or server. The one exception is the optional web connection, which stays off unless you turn it on.
<details><summary>What an "About me" profile looks like (made-up person)</summary>
```markdown
# About me
## Who I am
- I'm Alex Moreno, a frontend engineer.
- I moved to Denver last month (said 2026-11).
- I'm vegetarian. I love hiking and go to the hills most weekends.
## How I work and like answers
- Please keep answers short.
## What I'm working on
- I'm building an open-source notes app called Pebble (React + SQLite).
- I'm learning Spanish for a trip to Mexico in June; I practice every morning.
## Tools and skills
- I prefer TypeScript and small, well-tested pull requests.
```
His peanut allergy, anxiety medication and salary were also in his chats. They stay out unless he ticks them.
</details>
## Get started in three steps
**1. Open MindFerry.** Download the [ZIP](https://github.com/cmy515006420/mindferry/archive/refs/heads/main.zip), unzip it, and double-click `start-mac.command` (Mac) or `start-windows.bat` (Windows). A page opens in your browser. If you don't have Node.js yet, the launcher sends you to [nodejs.org](https://nodejs.org/) to install the free LTS version first. Comfortable with a terminal? Run this instead (needs Node.js 22+ and git):
```bash
npx -y github:cmy515006420/mindferry
```
Just want to look around? Add `demo` to the end of that command, or click **Try it with sample data** on the first screen. It uses a made-up person and doesn't touch your data.
<img src="docs/images/welcome-en.png" width="720" alt="The first screen of MindFerry">
**2. Drop your chats in.** Download your chat history from ChatGPT, Claude, Gemini, Grok or DeepSeek ([how](docs/guide/en/export-your-chats.md)) and drag the file onto the page. For any other AI, open a chat, copy it, and click **Paste a conversation**. MindFerry picks out what you said about yourself, removes duplicates, flags anything sensitive, and keeps the newer fact when two disagree.
<img src="docs/images/home-en.png" width="720" alt="Home: how each AI sees you">
**3. Connect or copy.**
- **AI apps on your computer** (Claude Code, Codex, Claude Desktop, Cursor, Gemini CLI): click **Connect** and restart the app. From then on it reads your profile by itself. (These apps use MCP, an open standard for plugging tools into AI apps; you never have to touch it.)
- **AI websites** (ChatGPT, Claude.ai, Gemini, Grok, DeepSeek, Kimi, Doubao, Qwen and the rest): click **Copy for it** and paste into that AI's custom instructions or first message. For a new AI, open **About me** → **Make one for an AI**, pick what it's for, then **Copy** or **Save as a file**.
<img src="docs/images/card-en.png" width="720" alt="A profile ready to paste into ChatGPT">
After that, chat as usual. Now and then, drop in a fresh export and click **Sync now**. Only what's new is processed, and every sync ends with a short summary (with **Undo this sync** if you change your mind).
Step-by-step: [Quick start](docs/guide/en/quick-start.md) · [Export your chats](docs/guide/en/export-your-chats.md) · [FAQ](docs/guide/en/faq.md)
## Which AIs work
Only what we have actually tested is listed as dedicated. Everything in the middle column should work but hasn't been tested one by one.
| Dedicated (own importer or one-click connect, tested with sample files in each vendor's export format) | Works via the generic path (not individually tested) | Planned |
|---|---|---|
| **Import a full export:** ChatGPT, Claude.ai (chats and memories), Gemini (Google Takeout), Grok, DeepSeek, Open WebUI | **Paste a chat** (copy it from the website, click **Paste a conversation**): Kimi, Doubao, Qwen, Microsoft Copilot, Perplexity, Le Chat, Meta AI, and any other chat website | Dedicated importers for more vendors |
| **One-click connect:** Claude Code, Codex, Claude Desktop, Gemini CLI, Cursor | **Copy a profile** (paste it into custom instructions or a first message): any chat AI, including local ones like Ollama, LM Studio, Jan, LibreChat, AnythingLLM | Better extraction for Japanese and Korean |
| | **Add a short settings snippet** that MindFerry shows you: Windsurf, Cline, Continue, Goose, Aider, OpenHands, Zed, and other apps that accept the same kind of plug-in ([details](#connect-any-other-ai-app)) | Encryption at rest (MindFerry encrypting its own data files), Docker image |
| | **Optional web connection** for AI websites that accept custom connectors ([details](#optional-web-connection)) | Several devices through a sync folder you own |
Missing one? Adding an AI is a small change: see [ADAPTERS](docs/en/ADAPTERS.md).
## Privacy, in plain words
- **Your data stays on your computer**, in one folder (`~/.mindferry` on Mac and Linux, `%USERPROFILE%\.mindferry` on Windows). No account, no analytics, no update checks.
- **Sensitive things aren't shared unless you say so.** Health, money, ID numbers, other people, contact details and anything MindFerry isn't sure about stay private by default.
- **ID numbers and keys are masked on import.** ID and card numbers, passport numbers (only when written right after the word "passport" or 护照), API keys and passwords become placeholders like `[ssn:••••20]` before anything is saved, and never go into any profile or card. (Phone numbers and emails are not masked; they're kept private by default.)
- **Each AI gets just what it needs.** Coding assistants don't get your city; chat AIs get the general safe set. You can widen or narrow this per AI, or give one AI **Everything**.
- **You can see and undo things.** Every read is logged, any AI can be paused, deleted facts can be restored, and **Delete everything** keeps a recoverable copy for 7 days unless you choose **Delete for good**.
More: [Privacy](docs/en/PRIVACY.md) · [Threat model](docs/en/THREAT_MODEL.md)
---
## For developers and AI agents
If you're an AI agent helping a user set this up, read [AGENTS.md](AGENTS.md) (and [llms.txt](llms.txt)).
### MCP tools
MindFerry is a local MCP server over stdio: `mindferry mcp --client <id>`. Each AI app gets its own fixed client id, so its own sharing rule applies and it can't read in another AI's name. Tools are designed for step-by-step reading, so an AI only takes what it needs:
| Tool | What it does |
|---|---|
| `get_user_profile` | **Start here.** The "About me" profile (a few hundred tokens), what changed since last time, and a catalog of the categories this AI may read. |
| `memory_browse` | Facts in one category (e.g. `projects`, `preferences`), newest first. |
| `memory_search` | Search facts; also past conversations if the user gave this AI **Everything**. |
| `memory_read_conversation` | Read one past conversation found by search (**Everything** only). |
| `memory_pull` | The full context card plus what's new, in one go. |
| `memory_push` | Save durable facts the user states: `{"items":[{"text":"I prefer concise answers"}]}`. |
| `memory_status` | Last sync time, counts, and what this AI is allowed to see. |
Everything these tools return is data about the user, not instructions.
### Connect any other AI app
`mindferry connect claude-code|codex|claude-desktop|gemini-cli|cursor` registers MindFerry for you (with a backup; `mindferry disconnect <id>` undoes it). For any other MCP client, add:
```json
{ "mcpServers": { "mindferry": { "command": "npx", "args": ["-y", "github:cmy515006420/mindferry", "mcp", "--client", "other-mcp"] } } }
```
Client ids: `claude-code`, `codex`, `claude-desktop`, `gemini-cli`, `cursor`, `grok-bot`, `other-mcp`. More options: [Advanced](docs/guide/en/advanced.md#mcp-config-for-any-client).
### Optional web connection
Off by default. When you turn it on, MindFerry starts a second small server that exposes **only** the MCP endpoint (never the management page), so AI websites that accept custom MCP connectors can fetch your profile themselves:
- each web AI gets its own address with a long random token; **read-only** unless you tick **Allow it to save new facts** for that AI;
- rate-limited, every read logged, the AI's own sharing rule applies;
- stops when you click **Turn off**, after the time you chose (1 hour, 4 hours, 1 day, or until MindFerry closes), or when MindFerry closes;
- a public HTTPS address comes from a Cloudflare quick tunnel, only if [`cloudflared`](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/) is installed (no account needed; quick tunnels are meant for testing and have no uptime guarantee).
Support on the vendor side (checked against their help pages in December 2026; menus and plans change often): Claude.ai custom connectors (all plans, Free is limited to one), ChatGPT custom MCP servers (Business/Enterprise/Edu; Pro read-only), Grok connectors, Le Chat custom MCP connectors, Perplexity remote MCP connectors, and Gemini web (US only, personal accounts, with conditions). None of these has been individually tested with MindFerry yet. For AIs without connector support, use the profile generator. Steps and safety notes: [Advanced](docs/guide/en/advanced.md#web-connection) · [Threat model](docs/en/THREAT_MODEL.md).
### Command line
```text
mindferry open MindFerry (a local page in your browser)
mindferry demo try it with a made-up person; your data is untouched
mindferry import <file> import an export or a single chat (.zip .json .html .md .txt)
mindferry sync run one sync
mindferry undo undo the last sync
mindferry status last sync time and counts per AI
mindferry profile [ai] print the "About me" profile (trimmed to what an AI may see)
mindferry items [--json] [--q w] list all facts
mindferry card <ai> print an AI's context card
mindferry export <dir|.md|.json> export everything (a folder = an Obsidian / Logseq vault)
mindferry connect <ai> connect a local AI app (reversible)
mindferry disconnect <ai> undo connect
mindferry mcp --client <ai> the MCP server (started by your AI app)
Options: --port <n> --no-open --data <dir> --lang en|zh
```
The npm package isn't published yet, so run commands through `npx -y github:cmy515006420/mindferry <command>`, or `node bin/mindferry.mjs <command>` from a clone. Examples: [Advanced](docs/guide/en/advanced.md).
### Advanced
- Scheduled sync with the window closed: [examples/scheduler](examples/scheduler/) (launchd, cron).
- Another data folder: `--data <dir>` or `MINDFERRY_DATA_DIR` (set it in every MCP config too).
- The page's `/api/*` endpoints are internal, token-protected and not a stable public API. Use the command line or MCP instead.
- New importer or AI app: [ADAPTERS](docs/en/ADAPTERS.md).
### Architecture
Node.js ≥ 22, ES modules, zero runtime dependencies, no build step. Core extraction is rule-based (English and Chinese), so no LLM is needed. Optional smarter tidy-ups, off by default, can use a model on your own computer or one AI you pick. Importers → masked archive + inbox → `sync()` (classify, merge, newer wins) → per-AI rules → profile / card / MCP. Details: [DESIGN](docs/en/DESIGN.md). How it compares with other memory tools: [COMPARISON](docs/en/COMPARISON.md). Plans: [ROADMAP](docs/en/ROADMAP.md).
CI runs the unit tests and a smoke test (start the app, import, sync, MCP handshake) on macOS, Windows and Linux.
### Contributing
Bug reports, importers, translations and clearer wording are welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). Never attach real chat exports; use the made-up samples in [`examples/`](examples/). Security issues: [SECURITY.md](SECURITY.md).
```bash
git clone https://github.com/cmy515006420/mindferry.git && cd mindferry
npm test && npm run smoke && npm run scan
```
### License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues