Recall — Memory Agent for Students

Recall — Memory Agent for Students

Enables students to capture and recall narrated observations from labs, lectures, or fieldwork, and generate study summaries or lab report drafts.

Category
Visit Server

README

🧠 Recall — Memory Agent for Students

Amrita University MCP Hackathon 2026

Track: Education & Research

Team Members: [Insert Names & Roll Numbers]

Deployed URL: [Insert Nitrostack URL]

Demo Video: [Insert Video Link]

Problem & Solution

Recall is an MCP (Model Context Protocol) server that acts as a persistent memory agent for students. It captures narrated observations during labs, lectures, or fieldwork, stores them as structured, searchable memory, and lets the student — or an AI study assistant — recall them later across sessions.

Example: A chemistry student narrates "this is the titration setup for experiment 3, the flask needs to sit for 10 minutes" during a lab. Later, they (or their AI assistant) can recall that observation, get a study summary, or generate a lab report draft — all from the MCP server.


šŸ— Architecture

Built with the NitroStack MCP framework using a NestJS-style modular architecture:

recall/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.ts                          # Bootstrap entry point
│   ā”œā”€ā”€ app.module.ts                     # Root @McpApp module
│   └── modules/
│       ā”œā”€ā”€ storage/
│       │   ā”œā”€ā”€ storage.module.ts          # Global storage module
│       │   └── database.service.ts        # SQLite wrapper (sql.js)
│       └── recall/
│           ā”œā”€ā”€ recall.module.ts           # Feature module
│           ā”œā”€ā”€ recall.tools.ts            # 5 MCP tools
│           ā”œā”€ā”€ recall.resources.ts        # Session graph resource
│           ā”œā”€ā”€ recall.prompts.ts          # 2 prompt templates
│           ā”œā”€ā”€ observation.service.ts     # Business logic service
│           └── types.ts                   # TypeScript interfaces
ā”œā”€ā”€ data/                                  # SQLite DB (auto-created)
ā”œā”€ā”€ package.json
ā”œā”€ā”€ tsconfig.json
ā”œā”€ā”€ .env / .env.example
└── README.md

šŸ”Œ MCP Primitives

Tools (5)

Tool Description
capture_observation Store a new observation with label, note, context, and session ID
recall Search observations by keyword, optionally scoped to a session
update_observation Edit an existing observation's note
delete_observation Soft-delete an observation
list_sessions List all sessions with counts and date ranges

Resources (1)

URI Description
recall://sessions/{session_id}/graph Read-only structured dump of all observations in a session with inferred relations

Prompts (2)

Prompt Description
study_summary Generates a concise study summary from session observations
lab_report_draft Turns session observations into a structured lab report skeleton

šŸš€ Getting Started

Prerequisites

  • Node.js ≄ 20.18.1 (use nvm to manage versions)
  • npm ≄ 9
  • tsx installed globally: npm i tsx -g

Install & Run

# 1. Install dependencies
npm install

# 2. Start the dev server
npx @nitrostack/cli dev

The server starts in stdio mode, ready for any MCP client (NitroStudio, Claude Desktop, etc.) to connect.

Environment Variables

Copy .env.example to .env and adjust if needed:

DB_PATH=./data/recall.db

The SQLite database and data/ directory are created automatically on first run.


šŸ“‹ Example Usage Flow

1. Capture observations during a lab

→ capture_observation({
    label: "titration setup",
    note: "Flask with 25ml NaOH, add phenolphthalein indicator, 3 drops",
    context: "experiment-3",
    session_id: "chem-lab-2026-07-18"
  })
← { id: "abc-123", timestamp: "2026-07-18T10:30:00Z" }

→ capture_observation({
    label: "titration endpoint",
    note: "Color changed from pink to colorless at 22.4ml HCl",
    context: "experiment-3",
    session_id: "chem-lab-2026-07-18"
  })
← { id: "def-456", timestamp: "2026-07-18T10:45:00Z" }

2. Recall observations later

→ recall({ query: "titration", session_id: "chem-lab-2026-07-18" })
← { count: 2, results: [ ... ] }

3. Browse session graph

→ read resource: recall://sessions/chem-lab-2026-07-18/graph
← { observations: [...], relations: [...], metadata: { ... } }

4. Generate a study summary

→ use prompt: study_summary({ session_id: "chem-lab-2026-07-18", topic: "titration" })
← [Formatted prompt with observations embedded, asking AI to produce a study summary]

5. Draft a lab report

→ use prompt: lab_report_draft({ session_id: "chem-lab-2026-07-18" })
← [Formatted prompt asking AI to produce Objective → Method → Observations → Conclusion]

šŸ† Hackathon Rubric Alignment

Criterion How Recall Addresses It
MCP Primitives All 3 implemented: Tools (5), Resources (1), Prompts (2)
Education & Research Memory agent designed for students in labs, lectures, fieldwork
Code Quality TypeScript strict mode, NitroStack decorators, DI, modular architecture
Architecture Clean separation: storage → service → tools/resources/prompts
Runnable Locally npm install && npx @nitrostack/cli dev — zero external dependencies
Storage SQLite via sql.js (WASM-based, auto-schema, swappable)

šŸ”® Future Enhancements (if time allows)

  • Semantic similarity search (embeddings + vector store)
  • Camera/mic streaming for real-time observation capture
  • Canvas UI for visual browsing of observation graphs
  • Notion/Slack/Gmail integrations for exporting summaries
  • Graph DB backend (Neo4j/SurrealDB) for richer relation queries

šŸ“„ License

MIT

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
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

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