mcpField
M
mindin

mindin

本地服务
github.com其他2今天更新

关于 mindin

mindin 是一款 MCP 服务和命令行工具,将 Agent 记忆保存为 Markdown 笔记,可存放于文件夹、S3 存储桶或保险库服务器。它结合架构校验写入、索引搜索和 Git 会话钩子,并让用户保有笔记控制权。

主要功能

  1. 01文件夹或 S3 中的 Markdown 保险库
  2. 02架构校验笔记写入
  3. 03支持语言处理的索引搜索
  4. 04可选的本机语义搜索
  5. 05生命周期命令与 lint 检查
  6. 06感知 Git 的会话启动钩子

适用场景

  1. 01通过 Agent 或命令行搜索项目笔记
  2. 02拒绝违反架构的笔记更新
  3. 03查看相关笔记之后的新提交
  4. 04通过保险库服务器跨设备共享笔记

MCP 相关

保险库服务器提供 MCP 端点,供 claude.ai 等客户端搜索、读取和写入笔记。mindin 还提供用于搜索和管理保险库的命令行工具。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"gronare-mindin": {
"command": "uvx",
"args": [
"mindin"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>",
"S3_ENDPOINT": "<S3_ENDPOINT>",
"S3_ACCESS_KEY": "<S3_ACCESS_KEY>",
"S3_SECRET_KEY": "<S3_SECRET_KEY>",
"S3_BUCKET": "<S3_BUCKET>",
"S3_PREFIX": "<S3_PREFIX>",
"S3_REGION": "<S3_REGION>",
"VAULT_CACHE_DIR": "<VAULT_CACHE_DIR>",
"VAULT_SCHEMA": "<VAULT_SCHEMA>",
"VAULT_STOP_HOOK": "<VAULT_STOP_HOOK>",
"VAULT_STOP_HOOK_COMMITS": "<VAULT_STOP_HOOK_COMMITS>",
"VAULT_STOP_HOOK_PROMPTS": "<VAULT_STOP_HOOK_PROMPTS>"
}
}
}
}
启动命令uvx mindin
需要配置的环境变量
VAULT_PATHDirectory holding the vault. Set this or the four S3_* variables.
S3_ENDPOINTS3 or MinIO endpoint URL holding the vault
S3_ACCESS_KEY密钥Access key for the vault bucket
S3_SECRET_KEY密钥Secret key for the vault bucket
S3_BUCKETBucket holding the vault
S3_PREFIXKey prefix inside the bucket
S3_REGIONRegion for the vault bucket
VAULT_CACHE_DIRWhere the SQLite index lives
VAULT_SCHEMALocal schema file overriding the one in the vault
VAULT_STOP_HOOKSet to off to disable the stop hook
VAULT_STOP_HOOK_COMMITSSet to off to turn off the stop hook's unlogged-commit and stale-note checks alone
VAULT_STOP_HOOK_PROMPTSMessages the user writes after the agent's last vault write before the stop hook asks it to save them (default 3), or off

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
pypimindin0.14.3

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

README 原文English

来自项目 README

README 暂无中文译文,以下为英文原文;中文介绍见上方。

mindin

Memory for Claude and coding agents, kept as markdown notes you own, with a schema that holds and a tie to your git history.

Install

curl -fsSL https://mindin.dev/install.sh | sh

It installs the mindin command with uv, asks where your vault lives (a folder, an S3 bucket or a vault server), and offers to add the vault to Claude Code, Codex and Cursor; it changes nothing in them without a yes. mindin was called notes-vault-mcp: the notes-vault-mcp package and command still work, and install and run mindin.

A vault server

A vault server with Docker Compose, for claude.ai, Claude Desktop, mobile and every machine you work on. You need a domain pointing at the machine, ports 80 and 443 open, and an SMTP account for sign-in links.

mkdir notes-vault && cd notes-vault
curl -fsSL -O https://github.com/gronare/mindin/releases/latest/download/compose.yml -O https://github.com/gronare/mindin/releases/latest/download/Caddyfile
curl -fsSL -o .env https://github.com/gronare/mindin/releases/latest/download/example.env
docker compose run --rm --no-deps vault master-key generate   # paste into .env, with VAULT_HOST and SMTP
docker compose up -d
docker compose exec vault mindin accounts invite [email protected]

Then open https://VAULT_HOST/account and sign in. Install with Docker walks through each step.

Without the script, on one machine: uv tool install mindin, then mindin setup.

mindin asks before it shares anonymous usage data, and sends nothing until you say yes: then, once a day, a random install id, mindin's version, the OS and CPU type and how mindin runs (plugin, CLI or server) go to signals.mindin.dev, never notes, names, paths or your vault's address. mindin setup --signals yes|no changes the answer. The install signal has the details.

Use

Add the server's address, https://VAULT_HOST/mcp, as a custom connector in claude.ai. Claude searches, reads and writes your notes. The same search from a shell on a signed-in machine:

$ mindin search "signing in"
1 note · archive and superseded hidden

myapp  system  3 days
Areas/myapp.md
  ## Sign-in Users sign in with passkeys; email links are the fallback.

What you get

  • Notes you own. Plain markdown in a folder or an S3 bucket; open them in Obsidian, keep them in git.
  • A schema with teeth. Required fields, legal statuses and kinds, a tag vocabulary; a write that breaks the contract is refused. Start from PARA, a simple vault, a journal or your own layout.
  • A lifecycle. close archives finished work, backlog_add files what was deferred, log_append writes one line per repo per session, lint reports drift.
  • Memory tied to code. A note names the paths it describes; the session-start hook prints the commits newer than the note.
  • Search that reads your languages. Stemming, folded diacritics, synonyms, and optional search by meaning that runs on your machine.
  • Your own vault server. Accounts with passkeys, email links, GitHub or your identity provider, several vaults each, shared vaults, sealed in storage.

Documentation

docs/ has the install guides, the how-tos for each client, the reference for every tool, command and setting, and how it works.

License

MIT. See LICENSE.

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。