Tempera logo

Tempera

Persistent episodic memory for coding agents with semantic retrieval, feedback, cross-project learning, and session briefs.

Install Tempera

Run the project’s own setup commands, in order.

Setup steps from the project

tempera installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo install tempera
    
  2. 2. Configure
    tempera init
    
  3. 3. Add to Claude Code
    claude mcp add tempera --scope user -- /path/to/Tempera/target/release/tempera-mcp
    

Overview

Persistent episodic memory for coding workflows is what the tempera MCP server provides, connecting Claude Code to stored coding sessions and learned context. It captures episodes, searches semantically similar work, builds task briefs, records corrections, and tracks feedback over time. Optional cross-project retrieval, reasoning templates, propagation, review, and dream-cycle processing extend the basic memory loop. Reach for it when coding agents need continuity across sessions and projects rather than starting with no prior context.

Use cases

  • Recall solutions from similar coding sessions
  • Prepare a task brief from prior corrections and templates
  • Record user corrections for later retrieval
  • Transfer reusable knowledge across projects
  • Review and propagate accumulated coding memories

Key features

  • Semantic episode retrieval
  • Persistent session capture
  • Task briefs and reasoning templates
  • Correction and missed-question logging
  • Cross-project knowledge transfer
  • Memory feedback and propagation

Tools12

What Tempera lets your agent do. Expand a tool for its parameters.

Self-reported~402 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/16 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit6mo agoMost recent push to the default branch.
Tools exposed12Callable tools this server registers over MCP.

How Tempera works

What the tempera MCP server does

The tempera MCP server gives coding agents a persistent episodic memory instead of treating every session as isolated. It stores completed sessions as episodes, indexes them for semantic search, and uses retrieval feedback to influence which memories are more useful later. The system is designed around coding work, including the files, task types, domains, corrections, failed assumptions, and successful reasoning patterns associated with previous sessions.

The tempera MCP server also maintains project-level memory health and learning statistics. It can track whether remembered claims are untested, tested, merged, or stable without reversion. Claims can have different validity scopes, allowing project-specific knowledge to decay sooner than broader language, crate, domain, or universal knowledge. Cross-project retrieval is available for transferable claims; project-scoped knowledge remains tied to its original codebase.

How it works

A typical workflow begins with tempera_session_start, called once at the beginning of a task. This can return a clarifying question drafted after an earlier failed or incomplete session. Once the files are known, tempera_brief combines relevant preparation into one response, including pending questions, a matching reasoning template, correction categories for the files, missed-question triggers, and a calibration warning. tempera_retrieve searches for similar episodes, while tempera_template returns a stored step sequence for a task type and domain.

After the work is complete, tempera_capture saves the session as an episode and can detect session links for multi-step work. tempera_feedback records whether retrieved memories were helpful. That feedback affects utility scores and can propagate value through related episodes. A dream cycle can perform verification updates, decay, reflection, pattern detection, contradiction probing, and template extraction, while review consolidates related reusable knowledge.

Setup and configuration

Build the Rust project from source with cargo build --release, which produces the tempera CLI and tempera-mcp MCP executable. The package can also be installed with cargo install tempera. On first use, initialization downloads the BGE-Small embedding model, approximately 128 MB, for semantic search. The model is cached at ~/.tempera/models/ and shared between projects.

For Claude Code, add the compiled MCP executable with its MCP command and restart Claude Code. Running /mcp verifies that the connection exposes the server's tools. The tempera MCP server uses the local embedding model for search; the provided setup material does not specify additional environment variables or required external services.

Tools and capabilities

The available MCP tools cover these operations:

  • Start sessions, assemble briefs, retrieve episodes, and load reasoning templates.
  • Record corrections and situations where a question should have been asked earlier.
  • Capture completed sessions, submit helpfulness feedback, and inspect status or statistics.
  • Run propagation and review maintenance operations.
  • Request cross-project context through retrieval or briefing options.
  • Support calibration, validity scopes, decay, verification states, and generated ask-back questions.

Use task_type and domain with briefing or template-oriented workflows when that context is available. Cross-project behavior is opt-in, and legacy captures default to non-transferable until they are reclassified.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tempera

tempera is an MCP server that connects Claude Code to persistent episodic memory for coding sessions. Its main tools capture completed work, retrieve similar past episodes, build task briefs, record corrections, collect feedback, and provide status or statistics so agents can reuse experience across sessions and, optionally, projects.

Install it with `cargo install tempera`, or clone the repository and run `cargo build --release`. The build creates the `tempera-mcp` executable. Initialize Tempera on first use so it can download and cache the BGE-Small embedding model used for semantic search.

Connect it by adding the compiled `tempera-mcp` executable with Claude Code's `claude mcp add` command, then restart Claude Code. The documented user-scoped setup makes the server available across projects, and `/mcp` can verify that the connection exposes its tools.

Yes, tempera supports opt-in cross-project memory through `tempera_retrieve` and `tempera_brief`. Transferable claims can surface across projects, while project-scoped knowledge remains tied to its original codebase. Legacy captures remain non-transferable until they are reclassified.

`tempera_brief` combines pending ask-back questions, a matching reasoning template, correction categories for the selected files, should-have-asked triggers, and a calibration warning. Supplying `task_type` and `domain` can provide richer output, and `cross_project=true` adds transferable context.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTempera AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tempera?style=directory)](https://allmcps.com/mcp/tempera)
HTML Embed
<a href="https://allmcps.com/mcp/tempera"><img src="https://allmcps.com/api/badge/tempera?style=directory" alt="Tempera on AllMCPs" /></a>