Search DevTools

Jump to any tool or page

neverinfamous-memory-journal-mcp

Unexplored

A MCP server built for developers enabling Git based project management with project and personal…

neverinfamous20 stars6 forksDesign & UX
View source

Install

mcp_config.json

{
  "mcpServers": {
    "ai-smithery-neverinfamous-memory-journal-mcp": {
      "url": "https://server.smithery.ai/@neverinfamous/memory-journal-mcp/mcp",
      "type": "streamable-http"
    }
  }
}

Documentation

Memory Journal MCP Server

πŸ“š Full Documentation (Wiki) β€’ Changelog β€’ Security β€’ Release Article

[!TIP] Value Proposition Bridge disconnected AI sessions seamlessly. Enable persistent project memory instantly. Automate handoffs with robust GitHub integration. Eliminate AI amnesia today.

πŸš€ Quick Deploy:

  • npm Package - npm install -g memory-journal-mcp (or pnpm add -g memory-journal-mcp)
  • Docker Hub - Alpine-based with full semantic search

🧠 Eliminate AI Amnesia

Large projects face a critical challenge. You lose context between sessions.

  • Stop Thread Amnesia - AI conversations start fresh. They ignore previous work.
  • Retain Deep Context - Decisions and code scatter across threads; Memory Journal preserves them automatically.
  • End Repeated Work - AI repeats failed solutions; persistent history tracks every prior attempt.
  • Prevent Context Overload - Manual history copying wastes tokens; dynamic briefings deliver targeted context automatically.

Memory Journal builds your project's long-term memory. It acts as a Project Context Graph for AI-assisted engineering. It bridges human workflows (Issues, PRs, Kanban, Milestones) with agent execution (Git, tests, decisions).


Experience true context-aware development:

  • "Why did we choose SQLite over Postgres for this service last month?" (Semantic search)
  • "Run the /issue-commander (triage workflow) on the top priority ticket in the Kanban board." (GitHub operations)
  • "Who has been touching the auth module recently, and what's our team collaboration density?" (Team analytics)
  • "Commit the changes and automatically generate a structured journal entry using the `--journal` wrapper flag." (Automated lifecycles)
  • "Draw a visual graph showing how my last 10 architectural decisions relate to each other." (Knowledge graph)

Comprehensive access to internal state via resources (memory://briefing, memory://workflows, memory://rules, memory://health, memory://help, memory://staleness, GitHub status/milestones, team stats, and metrics/latency). Dynamic repo variants also support cross-repo targeting (like memory://briefing/{+repo} or memory://kanban/{+repo}/{project_number}). Resources documentation β†’


🎯 What Sets Us Apart

MCP Tools Β· Workflow Prompts Β· Resources Β· Tool Groups Β· Code Mode Β· GitHub Commander (Issue Triage, PR Review, Milestone Sprints, Security/Quality/Perf Audits) Β· GitHub Integration (Issues, PRs, Actions, Kanban, Milestones, Insights) Β· Team Collaboration (Shared DB, Vector Search, Cross-Project Insights)

FeatureDescription
Session IntelligenceAuto-query project history, create checkpoints, and hand off context between sessions automatically.
GitHub IntegrationManage Issues, PRs, Actions, Kanban boards, and milestones. Access Copilot reviews and repository insights.
Dynamic Project RoutingSwitch contexts seamlessly and access CI/Issue tracking across multiple repositories from a single server instance.
Knowledge GraphsLink specifications, implementations, tests, and PRs visually using Mermaid diagrams.
Hybrid SearchFind entries instantly using a blend of keyword, semantic, and date-range searches.
Code ModeExecute multi-step operations efficiently in a sandboxed environment to reduce token usage.
Adaptive Session BriefingDeliver real-time workspace context dynamically, including live CI health, local Git status, and unreleased changes.
Reports & AnalyticsGenerate standups, retrospectives, PR summaries, digests, and period analyses.
Heuristic ScoringOptimize context delivery by scoring entries based on veracity and impact.
Team CollaborationShare databases across teams with cross-project insights, author attribution, and role-based access control.
Data InteroperabilityExport schemas safely, sync Markdown directories, and maintain a unified IO namespace.
Backup & RestoreSecure data with automated scheduling, retention policies, and one-command restores.
Auto-PruningSoft-delete low-value entries automatically to maintain search relevance over long-running projects.
Security & TransportEnsure secure connections with OAuth 2.1, Streamable HTTP, rate limiting, and SQL injection prevention.
Structured Error HandlingProvide agents with classification, remediation hints, and recoverability signals on every tool call.
Agent CollaborationShare context between IDE agents and Copilot. Search review findings and let agents suggest reusable rules.
Native Agent SkillsEstablish permanent AI behavior and architecture rules using bundled foundational coding paradigms.
GitHub CommanderAudit code, triage issues, review PRs, and run sprint milestones via automated pipeline skills.

Isolate Environments with Multi-Tenancy

Memory Journal supports multi-tenancy out of the box via the workspace_id construct, acting as a strict isolation barrier for multiple journals sharing the same SQLite database file.

  • Auto-Resolution: When workspace_id is omitted, the server automatically resolves the target workspace. It matches project_number against PROJECT_REGISTRY, checks content/tag keyword aliases, or inspects process.cwd() before falling back to DEFAULT_WORKSPACE_ID (default: default).
  • Data Partitioning & Cross-Workspace Queries: Core CRUD, Soft-Delete/Restore, FTS5 Search, Vector Semantic Search (semantic_search), and Analytics tools enforce workspace_id isolation end-to-end. Read and search tools accept workspace_id: "*" to query across all workspaces. External write and mutation paths reject wildcard overrides.
  • Immutability & Controlled Migration: Entries receive a workspace_id upon creation that standard updates cannot overwrite directly. To migrate an entry across workspaces, call update_entry with workspace_id: "*" and target_workspace_id.
  • Server Config: Set --default-workspace-id (or the DEFAULT_WORKSPACE_ID environment variable) to configure the default fallback workspace for the server instance. This lets you run multiple isolated journal interfaces on a single physical database.

flowchart TB
    subgraph Session["πŸ€– AI Session Start"]
        Briefing["πŸ“‹ Read Briefing(memory://briefing)"]
    end

    subgraph Core["πŸ“ Journal Operations"]
        Create["Create Entry"]
        Retrieve["Retrieve & Search"]
        Link["Link Entries"]
    end

    subgraph Search["πŸ” Hybrid Search"]
        FTS["Keyword (FTS5)"]
        Semantic["Semantic (Vector)"]
        DateRange["Date Range"]
        RRF["Reciprocal Rank Fusion"]
    end

    subgraph GitHub["πŸ™ GitHub Integration"]
        Issues["Issues & Milestones"]
        PRs["Pull Requests"]
        Actions["GitHub Actions"]
        Kanban["Kanban Boards"]
        Insights["Repository Insights"]
    end

    subgraph Outputs["πŸ“Š Outputs"]
        Reports["Standups & Retrospectives"]
        Graphs["Knowledge Graphs"]
        Timeline["Project Timelines"]
    end

    Session --> Core
    Core --> Search
    Core <--> GitHub
    Search --> Outputs
    GitHub --> Outputs

Suggested Rule (Add to AGENTS.md, GEMINI.md, system prompts, etc.)

View Session Initialization Routine

πŸ›‘ Session Initialization Routine

When the user initializes the session context by executing the load-briefing prompt:

  1. You will receive the output of the memory://briefing/{repo_name} resource.
  2. Prepend your response EXACTLY as:

    πŸ“‹ Briefing loaded β€” {repo_name} {paste ENTIRE briefing here}

  3. Address the user's request below the briefing.
  4. NEVER autonomously execute tasks listed in the briefing.
  5. Do NOT proactively ask the user to load the briefing. Wait for them to use the prompt.

Control Access with Tool Filtering

[!IMPORTANT] All shortcuts and tool groups always include Code Mode (mj_execute_code) and Runtime Configuration (update_configuration) as escape-hatch tools so agents can never lock themselves out of the configuration system or Code Mode.

Control which tools are exposed using any of the 3 configuration sources (precedence: CLI flag > environment variable > config file):

  • CLI flag: --tool-filter <filter>
  • Environment variable: MEMORY_JOURNAL_MCP_TOOL_FILTER (Note: TOOL_FILTER is only a fallback display variable in the session briefing and does not activate tool filtering on its own)
  • memory-journal.config.{yaml,yml,json} key: "toolFilter"
FilterUse Case
fullAll tools (default)
starterCore + search + codemode
essentialMinimal footprint
readonlyDisable all mutations
codemodemj_execute_code + runtime config
-githubExclude a group
-github,-analyticsExclude multiple groups

Filter Syntax: shortcut or group or tool_name (whitelist mode) Β· -group (disable group) Β· -tool (disable tool) Β· +tool (re-enable after group disable)

Custom Selection: List individual tool names to create your own whitelist: --tool-filter "create_entry,search_entries,semantic_search"

Groups: core, search, analytics, relationships, io, admin, github, git, backup, team, codemode

Complete tool filtering guide β†’


πŸ“‹ Unlock Core Capabilities

πŸ› οΈ MCP Tools

GroupDescription
codemodeCode Mode (sandboxed code execution) 🌟 Recommended
coreEntry creation/read/history, tags, resource & briefing helpers, anchor staleness, test
searchText search, date range, semantic, vector stats, deleted entries, cross-team
analyticsStatistics, cross-project insights
relationshipsLink entries, visualize graphs
ioJSON/Markdown export, Markdown directory import/export, and external knowledge base import (Notion, Obsidian, Logseq)
adminUpdate configuration, project registry management, entry update/delete/restore, rebuild/add to vector index, merge tags, search audit log, auto-prune, bulk operations (batch create/update/delete)
githubIssues, PRs, context, Kanban, Milestones, Insights, issue lifecycle, Copilot Reviews
gitCommit history, search, release info, patterns, staleness checks
backupBackup, list, restore, cleanup
teamCRUD, search, stats, relationships, IO (Markdown & external import/export), backup, vector search, cross-project insights, matrix, RBAC member management, author aliases (requires TEAM_DB_PATH)

Complete tools reference β†’

🎯 Workflow Prompts

Specialized workflow prompts cover session briefing, standup & retro prep, goal tracking, PR & issue command, session summaries, and journal optimization. Additional prompts support CMS REM supervision, adversarial plan reviews, code & security audits, secure commit workflows, and anti-hallucination healing. Complete prompts guide β†’

πŸ“‘ Resources

See the Complete resources guide β†’ for the full list of dynamic context resources, including memory://briefing, memory://instructions, GitHub integration endpoints, telemetry metrics, and templated views.

  • Dynamic Resource Templates: Resources memory://briefing/{+repo}, memory://agent-context/{+repo}, memory://agent-id/{+repo}, memory://actions/recent/{+repo}, memory://github/status/{+repo}, memory://github/milestones/{+repo}, memory://milestones/{+repo}/{number}, and memory://kanban/{+repo}/{project_number} accept an RFC 6570 {+repo} path parameter for targeted project context.

⚑ Code Mode: Maximum Efficiency (90% Token Savings)

Code Mode (mj_execute_code) reduces token usage by up to 90% and is included by default in all presets. Instead of spending thousands of tokens on sequential tool calls, AI agents use a single sandboxed execution to reason faster.

Code executes in a pre-warmed worker_threads V8 isolate pool + secondary vm.createContext boundary designed as a secure multi-tenant process isolation environment. All mj.* API calls execute against the journal within the sandbox, providing:

  • V8 code generation restrictions β€” eval() and Function() construction from strings disabled at the V8 engine level via codeGeneration: { strings: false, wasm: false }
  • Frozen prototypes & cross-realm constructor lockdown β€” all built-in prototypes (Object, Function, Array, Error, etc.) and mj.* API bindings are frozen, and .constructor is neutered across Object, Function, AsyncFunction, GeneratorFunction, and AsyncGeneratorFunction prototypes in both the inner vm realm and outer worker realm to prevent dynamic constructor chain escapes
  • Single-pass lexical validation β€” pre-validation rate-limiting and 50KB byte caps run before any code normalization, followed by a single-pass lexical comment/string scanner (preserving ${...} template expressions) and static rules blocking require(), import(), process, eval(), Reflect.*, Symbol.*, Object.getPrototypeOf/setPrototypeOf/defineProperty, new Proxy(), and filesystem/network access
  • Proxy constructor nullified β€” Proxy: undefined in the sandbox prevents meta-object protocol abuse
  • Prototype-safe RPC allowlist β€” host-side Object.hasOwn() validation, recursion-bounded argument normalization, and --tool-filter enforcement prevent workers from invoking unauthorized or filtered API methods
  • Rate limiting β€” 60 executions per minute per client
  • Hard timeouts β€” configurable execution limit (default 30s) with bounded async timer tracking (setTimeout/sleep capped and cleared on completion)
  • Egress boundary enforcement β€” result serialization capped (default 100KB via CODE_MODE_MAX_RESULT_SIZE) with automatic payload compaction to prevent OOM via oversized payloads
  • Full API access β€” all tool groups are available via mj.* (e.g., mj.core.createEntry(), mj.search.searchEntries(), mj.github.getGithubIssues())
  • Strict Readonly Contract β€” Calling any mutation method under --tool-filter readonly safely halts the sandbox to prevent execution, returning a structured { success: false, error: "..." } response to the agent instead of a raw MCP protocol exception.

⚑ Code Mode Minimal Surface (Maximum Token Savings)

Run with the codemode filter and --codemode-internal-full-access to expose only the escape-hatch tools (mj_execute_code and update_configuration) on the MCP tool list while retaining full internal access to the mj.* API inside the sandbox:

{
  "mcpServers": {
    "memory-journal-mcp": {
      "command": "memory-journal-mcp",

Sourced from the repository README.

More in Design & UX