research-memory-mcp

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.

Category
Visit Server

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

  1. Copy templates/BOOTSTRAP.md to:
mkdir -p ~/.research-memory
cp templates/BOOTSTRAP.md ~/.research-memory/BOOTSTRAP.md
  1. 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/"
  1. Configure environment variables:
export RESEARCH_MEMORY_ROOT="<your-vault>/research-memory-vault"
export RESEARCH_MEMORY_BOOTSTRAP="$HOME/.research-memory/BOOTSTRAP.md"
  1. 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_bootstrap
  • detect_project
  • read_project_memory
  • append_task_summary
  • append_figure_version
  • list_projects
  • file_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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured