research-memory-mcp
An MCP server that provides controlled read/write tools for managing local-first research memory in an Obsidian vault, enabling AI agents to maintain project context across sessions.
README
Research Memory Protocol Template
Chinese documentation: README.zh-CN.md.
Local-first research memory protocol for AI agents, Obsidian, and MCP.
This template helps researchers manage cross-session project memory without treating AI chat history as the source of truth.
What This Solves
- Agents forget project context across sessions.
- Old project files are repeatedly reprocessed or converted.
- Multiple versions of figures, manuscripts, and reports become hard to track.
- AI-generated content can be mistaken for verified research evidence.
- Different agents need a shared protocol, not tool-specific memory.
Core Idea
Obsidian Vault = source of truth
Project Hub / Registry = structured project memory
MCP server = controlled read/write tools
Agent memory = optional recall layer, not evidence
Repository Layout
research-memory-protocol-template/
mcp/
research-memory-mcp.mjs
templates/
BOOTSTRAP.md
global-research-memory-protocol.md
external-project-path-map.md
project-memory-template.md
figure-registry-template.md
task-summary-template.md
.research-memory.md.template
examples/
fake-obsidian-vault/
fake-external-project/
config/
opencode.example.json
pi-mcp-servers.example.json
docs/
setup.md
workflow.md
safety.md
Quick Start
Choose one setup mode:
- MCP mode: for agents that support MCP, such as opencode or Pi agent.
- No-MCP file protocol mode: for any agent that can read and edit local files.
Both modes use the same Obsidian Markdown files as source of truth.
See:
MCP Quick Start
- Copy
templates/BOOTSTRAP.mdto:
mkdir -p ~/.research-memory
cp templates/BOOTSTRAP.md ~/.research-memory/BOOTSTRAP.md
- Copy protocol files into your Obsidian research system:
mkdir -p "<your-vault>/research-memory-vault/00-control"
cp templates/global-research-memory-protocol.md "<your-vault>/research-memory-vault/00-control/"
cp templates/external-project-path-map.md "<your-vault>/research-memory-vault/00-control/"
- Configure environment variables:
export RESEARCH_MEMORY_ROOT="<your-vault>/research-memory-vault"
export RESEARCH_MEMORY_BOOTSTRAP="$HOME/.research-memory/BOOTSTRAP.md"
- Add the MCP server to your agent:
node /path/to/research-memory-protocol-template/mcp/research-memory-mcp.mjs
Agent Prompt
Use this short prompt at the start of a session:
Use the research_memory MCP. First call read_bootstrap, then detect_project, then read_project_memory for the current project. Follow the research memory protocol: do not fabricate, do not move old files, do not delete figures automatically, prefer summaries and registries before deep-reading source files, and write back working memory with append_task_summary at the end. Final conclusions require my confirmation.
MCP Tools
read_bootstrapdetect_projectread_project_memoryappend_task_summaryappend_figure_versionlist_projectsfile_fingerprint
Install from npm
After npm publication:
npm install -g research-memory-protocol-template
research-memory-mcp
Or use it through npx:
npx research-memory-protocol-template
Safety Model
The MCP server can write working memory, not verified conclusions.
Allowed automatic writeback:
- Task summaries
- Materials read
- Files created or modified
- Pending verification items
- Evidence gaps
- Figure version rows
Requires user confirmation:
- Final research conclusions
- Statistical interpretations
- Medical conclusions
- Literature evidence grades
- Manuscript-ready claims
Privacy
Do not publish your real Obsidian Vault, unpublished data, manuscripts, API keys, patient data, or real project paths.
This repository contains only templates and fake examples.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。