Server data from the Official MCP Registry
Developer journal with knowledge graphs, relationships, Git context, and semantic search
About
Developer journal with knowledge graphs, relationships, Git context, and semantic search
Security report
How we scoreValid MCP server (4 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
5 files analyzed Β· Nothing found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Install command not verified. See the repository for install instructions.
View repositoryDocumentation
View on GitHubFrom the project's GitHub README.
Memory Journal MCP Server
π Full Documentation (Wiki) β’ Changelog β’ Security β’ Release Article
[!TIP] Your own private, encrypted SQLite project memory β portable across every AI client. Switch seamlessly between Claude, Cursor, Copilot, Antigravity, and any MCP-compatible agent without vendor lock-in or rebuilding history by hand. Recall past decisions, load adaptive session briefings, and hand work off through GitHub.
π Quick Deploy:
- npm Package -
npm install -g memory-journal-mcp(orpnpm 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(triageworkflow) 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 record a structured journal entry with the
commitprompt orcreate_entry." (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://repo-map, memory://workflows, memory://rules, memory://skills, memory://health, memory://help, memory://staleness, memory://graph, GitHub status/milestones, team stats, and metrics/latency). Dynamic repo variants also support cross-repo targeting (like memory://briefing/{+repo}, memory://repo-map/{+repo}, memory://agent-context/{+repo}, memory://graph/{+repo}, or memory://kanban/{+repo}/{project_number}). Resources documentation β
π― What Sets Us Apart
MCP Tools Β· Workflow Prompts Β· Resources Β· Tool Groups Β· Code Mode Β· Cognitive Automations (CMS) Β· 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)
| Feature | Description |
|---|---|
| Session Intelligence | Auto-query project history, create checkpoints, and hand off context between sessions automatically. |
| Cognitive Automations | Consolidate episodic notes nightly (CMS-02), audit soft-deletions, and self-heal recurring tool friction (CMS-04). |
| GitHub Integration | Manage Issues, PRs, Actions, Kanban boards, and milestones. Access Copilot reviews and repository insights. |
| Dynamic Project Routing | Switch contexts seamlessly and access CI/Issue tracking across multiple repositories from a single server instance. |
| Knowledge Graphs | Link specifications, implementations, tests, and PRs visually using Mermaid diagrams. |
| Hybrid Search | Find entries instantly using a blend of keyword, semantic, and date-range searches. |
| Code Mode | Execute multi-step operations efficiently in a sandboxed environment to reduce token usage. |
| Adaptive Session Briefing | Deliver zero-waste workspace context dynamically: live CI health, ahead/behind & dirty-file decision overlap, live memory://repo-map/{+repo} & code-map.md pointers, actionable config alerts, conditional blockers/stale anchors, and History-Impact commit velocity. |
| Live Repo Maps | Serve read-only, token-budgeted file trees (memory://repo-map/{+repo} & CLI admin repo-map) with live file counts, cached single-pass git recency, SQLite entry_anchors, automatic header/label extraction, and code-map.md section discovery for any repository with zero external scripts. |
| Reports & Analytics | Generate standups, retrospectives, PR summaries, digests, and period analyses. |
| Heuristic Scoring | Optimize context delivery by scoring entries based on veracity and impact. |
| Team Collaboration | Share databases across teams with cross-project insights, author attribution, and role-based access control. |
| Data Interoperability | Export schemas safely, sync Markdown directories, and maintain a unified IO namespace. |
| Backup & Restore | Secure data with CLI/CMS maintenance automation, retention policies, and one-command restores. |
| Auto-Pruning | Soft-delete low-value entries automatically to maintain search relevance over long-running projects. |
| Security & Transport | Ensure secure connections with OAuth 2.1, Streamable HTTP, rate limiting, and SQL injection prevention. |
| Structured Error Handling | Provide agents with classification, remediation hints, and recoverability signals on every tool call. |
| Agent Collaboration | Share context between IDE agents and Copilot. Search review findings and let agents suggest reusable rules. |
| Native Agent Skills | Establish permanent AI behavior and architecture rules using bundled foundational coding paradigms. |
| GitHub Commander | Audit 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_idis omitted, the server automatically resolves the target workspace. It matchesproject_numberagainstPROJECT_REGISTRYor inspectsprocess.cwd()before falling back toDEFAULT_WORKSPACE_ID(default:default). - Data Partitioning & Cross-Workspace Queries: Core CRUD, Soft-Delete/Restore, FTS5 Search, Vector Semantic Search (
semantic_search), and Analytics tools enforceworkspace_idisolation end-to-end. Read and search tools acceptworkspace_id: "*"to query across all workspaces.create_entryrejectsworkspace_id: "*"withVALIDATION_ERROR.update_entrywithworkspace_id: "*"andtarget_workspace_idmoves an entry.delete_entry,restore_entry, and batch deletes accept*and then match by id without a workspace predicate. - Immutability & Controlled Migration: Entries receive a
workspace_idupon creation that standard updates cannot overwrite directly. To migrate an entry across workspaces, callupdate_entrywithworkspace_id: "*"andtarget_workspace_id. - Server Config: Set
--default-workspace-id(or theDEFAULT_WORKSPACE_IDenvironment 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<br/>(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.)
π Session Initialization Routine
When the user initializes the session context by executing the load-briefing prompt:
- You will receive the output of the
memory://briefing/{+repo}resource. - Prepend your response EXACTLY as:
π Briefing loaded β
{repo_name}{paste ENTIRE briefing here} - Address the user's request below the briefing.
- NEVER autonomously execute tasks listed in the briefing.
- 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(TOOL_FILTERis not read) memory-journal.config.{yaml,yml,json}key:"toolFilter"
| Filter | Use Case |
|---|---|
full | All tools (default) |
starter | Core + search + codemode |
essential | Minimal footprint |
readonly | core, search, analytics, relationships, io, git, codemode |
codemode | mj_execute_code + runtime config |
-github | Exclude a group |
-github,-analytics | Exclude multiple groups |
readonly exposes core, search, analytics, relationships, io, git, and codemode, then drops tools whose readOnlyHint is not true from registration, tools/list, and tools/call. update_configuration and mj_execute_code stay registered. Code Mode also limits mj.* dispatch to readOnlyHint: true.
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
| Group | Description |
|---|---|
codemode | Code Mode (sandboxed code execution) π Recommended |
core | Entry creation/read/history, tags, resource & briefing helpers, anchor staleness, test |
search | Text search, date range, semantic, vector stats, deleted entries, cross-team |
analytics | Statistics, cross-project insights |
relationships | Link entries, visualize graphs |
io | JSON/Markdown export, Markdown directory import/export, and external knowledge base import (Notion, Obsidian, Logseq) |
admin | Update configuration, project registry management, entry update/delete/restore, rebuild/add to vector index, merge tags, search audit log, auto-prune, database optimization (optimize_database), bulk operations (batch create/update/delete) |
github | Issues, PRs, context, Kanban, Milestones, Insights, issue lifecycle, Copilot Reviews |
git | Commit history, search, release info, patterns, staleness checks |
backup | Backup, list, restore, cleanup |
team | CRUD, search, stats, relationships, IO (Markdown & external import/export), backup, vector search, cross-project insights, matrix, RBAC member management, author aliases (requires TEAM_DB_PATH) |
π― 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 β β’ Automations 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://graph/{+repo},memory://repo-map/{+repo},memory://actions/recent/{+repo},memory://github/status/{+repo},memory://github/milestones/{+repo},memory://milestones/{+repo}/{number}, andmemory://kanban/{+repo}/{project_number}accept an RFC 6570{+repo}path parameter for targeted project context.
β‘ Code Mode
Code Mode (mj_execute_code) runs many journal operations in one sandboxed call, so the client does not resend every tool schema. 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()andFunction()construction from strings disabled at the V8 engine level viacodeGeneration: { strings: false, wasm: false } - Frozen prototypes & cross-realm constructor lockdown β all built-in prototypes (
Object,Function,Array,Error, etc.) andmj.*API bindings are frozen,.constructoris neutered onFunction,AsyncFunction,GeneratorFunction,AsyncGeneratorFunction,Generator, andAsyncGeneratorprototypes in both the innervmrealm and outer worker realm (and onObject.prototypein the outer worker realm, while the innervmrealm deletesObject.prototype.__proto__and freezesObjectandObject.prototype) 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 blockingrequire(),import(),process,eval(),Reflect.*,Symbol.*,Object.getPrototypeOf/setPrototypeOf/defineProperty,new Proxy(), and filesystem/network access - Proxy constructor nullified β
Proxy: undefinedin the sandbox prevents meta-object protocol abuse - Prototype-safe RPC allowlist β host-side
Object.hasOwn()validation, recursion-bounded argument normalization, and--tool-filterenforcement 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/sleepcapped 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()) - Readonly filter β A filter containing
readonly(and not-readonly) drops tools whosereadOnlyHintis nottruefrom registration,tools/list, andtools/call.update_configurationandmj_execute_codestay registered. Code Mode also limitsmj.*dispatch toreadOnlyHint: true.
β‘ 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",
"args": ["--tool-filter", "codemode", "--codemode-internal-full-access"]
}
}
}
This exposes only mj_execute_code and update_configuration to the client's tools/list, reducing tool schema overhead to the minimum while preserving full programmatic capability via mj.*. The agent writes JavaScript against the typed mj.* SDK β composing operations across all tool groups and returning exactly the data it needs β in one execution. This mirrors the Code Mode pattern pioneered by Cloudflare for their entire API: fixed token cost regardless of how many capabilities exist. Without --codemode-internal-full-access (or CODEMODE_INTERNAL_FULL_ACCESS=true), internal mj.* methods are scoped to the active --tool-filter.
π Quick Start & Deployment
Note: Configuration is resolved using strict precedence: CLI flags > Environment Variables > Config File > Defaults (see memory-journal-config-example.json, examples/configs/memory-journal.config.yaml, mcp-config-example.json, and examples/).
[!NOTE] Debugging configuration: Run
memory-journal-mcp --dump-config(or pass--dump-configas an arg) to print the fully resolved configuration payload with automatically redacted secrets. This is the primary method for diagnosing overriding issues.
Configure Basics Quickly
[!TIP]
npx memory-journal-mcp project create <name> --path <repo-path> [--number <project-number>]writesprojectRegistrytomemory-journal.config.json(default~/.gemini/config/memory-journal.config.json, orMEMORY_JOURNAL_CONFIG). It does not edit thePROJECT_REGISTRYenvironment variable. APROJECT_REGISTRYvalue in the MCP client overrides the file. LeavePROJECT_REGISTRYunset so the server loads that file.
{
"mcpServers": {
"memory-journal-mcp": {
"command": "memory-journal-mcp",
"env": {
"GITHUB_TOKEN": "ghp_your_token_here",
"PROJECT_REGISTRY": "{\"my-repo\":{\"path\":\"/path/to/your/git/repo\",\"project_number\":1}}",
"ALLOWED_IO_ROOTS": "/path/to/your/git/repo"
}
}
}
}
Power Up with Advanced Configuration
Showcasing the full power of the server, including Multi-Project Routing, Team Collaboration, Copilot awareness, and Context Injections.
{
"mcpServers": {
"memory-journal-mcp": {
"command": "memory-journal-mcp",
"args": ["--tool-filter", "codemode"],
"env": {
"DB_PATH": "/path/to/your/memory_journal.db",
"TEAM_DB_PATH": "/path/to/shared/team.db",
"GITHUB_TOKEN": "ghp_your_token_here",
"PROJECT_REGISTRY": "{\"my-repo\":{\"path\":\"/path/to/repo\",\"project_number\":1},\"other-repo\":{\"path\":\"/path/to/other\",\"project_number\":5}}",
"ALLOWED_IO_ROOTS": "/path/to/repo,/path/to/other,/path/to/your/skills",
"AUTO_REBUILD_INDEX": "true",
"CODEMODE_INTERNAL_FULL_ACCESS": "true",
"BRIEFING_ENTRY_COUNT": "3",
"BRIEFING_SUMMARY_COUNT": "1",
"BRIEFING_INCLUDE_TEAM": "true",
"BRIEFING_ISSUE_COUNT": "3",
"BRIEFING_PR_COUNT": "3",
"BRIEFING_PR_STATUS": "true",
"BRIEFING_WORKFLOW_COUNT": "3",
"BRIEFING_WORKFLOW_STATUS": "true",
"BRIEFING_COPILOT_REVIEWS": "true",
"RULES_FILE_PATH": "/path/to/your/RULES.md",
"SKILLS_DIR_PATH": "/path/to/your/skills",
"MEMORY_JOURNAL_WORKFLOW_SUMMARY": "/deploy: prod deployment | /audit: security scan",
"AUDIT_LOG_PATH": "/path/to/your/mcp-audit.jsonl",
"TEAM_AUTHOR": "your_username"
}
}
}
}
[!TIP] Optimize your context window! Journal entries (
BRIEFING_ENTRY_COUNT) should complement Git commits β capture the why, rejected alternatives, invariants, and open risks rather than restating commit diffs. Session summaries (BRIEFING_SUMMARY_COUNT) surface high-level retrospectives across AI sessions.
π Customizing the Session Briefing
The memory://briefing resource is dynamically assembled at each session start with zero-waste suppression (any setting set to 0 or false skips both its rendered output and its underlying GitHub API, SQLite, or git work). By default, it automatically surfaces:
- Repository & Tracking: Active branch (with ahead/behind sync indicators when non-zero), CI workflow status, local dirty tree status with anchored-decision overlap (
Dirty (XM, YU) Β· touches #id, 0 queries on clean trees), open issues/PRs, active branch PR, Copilot reviews, and milestones. - Journal & Graph: Recent personal entries (prioritizing non-
commit-narrativeentries whenGit Historyis enabled), optional team entries, session summaries, 14-day knowledge graph pivots (node degrees, active threads, unresolvedBlocked:edges, persistedStale anchors:, commitβentry links, linkage rate), and recent git commits withHistory-Impacttrailer velocity. - Config & Insights: Actionable config alerts only (read-only mode, missing team/GitHub config when enabled, I/O roots β omitted completely when empty), repo stats/traffic, analytics digest, and optional health/deprecation alerts.
You control exactly what additional content your agent sees across three dimensions:
| Dimension | Variables | What It Controls |
|---|---|---|
| Focus | MEMORY_JOURNAL_MCP_TOOL_FILTER (CLI: --tool-filter, config: "toolFilter") | Control tool exposure: full (default), starter, essential, readonly, codemode |
| Journal Content | BRIEFING_ENTRY_COUNT, BRIEFING_SUMMARY_COUNT, BRIEFING_COMMIT_COUNT, BRIEFING_IMPORTANCE_THRESHOLD, BRIEFING_INCLUDE_TEAM, BRIEFING_GRAPH, BRIEFING_INSIGHTS | How many recent entries, session summaries, commits, whether team entries, graph pivots, and the Insights row appear |
| GitHub Enrichment | BRIEFING_ISSUE_COUNT, BRIEFING_PR_COUNT, BRIEFING_PR_STATUS, BRIEFING_MILESTONE_COUNT, BRIEFING_WORKFLOW_COUNT, BRIEFING_WORKFLOW_STATUS, BRIEFING_COPILOT_REVIEWS | Issues, PRs, milestones, CI runs, and Copilot review state surfaced in the briefing |
Context Injections: Set RULES_FILE_PATH and SKILLS_DIR_PATH to surface user rules and agent skills as companion resources (memory://rules, memory://skills) alongside the briefing.
Repo Targeting: In multi-repo setups, agents read memory://briefing/{+repo} to get a briefing scoped to a specific repository registered in PROJECT_REGISTRY.
Minimal (fast sessions) β Reduce briefing to bare essentials for quick interactions:
{
"BRIEFING_ENTRY_COUNT": "1",
"BRIEFING_SUMMARY_COUNT": "0",
"MEMORY_JOURNAL_MCP_TOOL_FILTER": "essential"
}
Full Context (onboarding agents) β Maximize context for agents unfamiliar with the project:
{
"BRIEFING_ENTRY_COUNT": "5",
"BRIEFING_SUMMARY_COUNT": "3",
"BRIEFING_INCLUDE_TEAM": "true",
"BRIEFING_ISSUE_COUNT": "5",
"BRIEFING_PR_COUNT": "3",
"BRIEFING_PR_STATUS": "true",
"BRIEFING_COPILOT_REVIEWS": "true",
"MEMORY_JOURNAL_MCP_TOOL_FILTER": "full"
}
DevOps-Heavy β Emphasize CI/CD and GitHub state for infrastructure workflows:
{
"BRIEFING_WORKFLOW_COUNT": "5",
"BRIEFING_WORKFLOW_STATUS": "true",
"BRIEFING_ISSUE_COUNT": "3",
"BRIEFING_PR_COUNT": "3",
"BRIEFING_PR_STATUS": "true",
"BRIEFING_COPILOT_REVIEWS": "true"
}
Full briefing customization guide β
Variants (modify the config above):
| Variant | Change |
|---|---|
| Minimal (no GitHub) | Remove the env block entirely |
| npx (no install) | Replace "command" with "npx" and add "args": ["-y", "memory-journal-mcp"] |
| From source | Replace "command" with "node" and add "args": ["dist/cli.js"] |
| Code Mode minimal | Add "args": ["--tool-filter", "codemode", "--codemode-internal-full-access"] (mj_execute_code + update_configuration, all mj.* capabilities) |
| Docker | Replace "command" with "docker" and add "args": ["run", "-i", "--rm", "-v", "./data:/app/data", "-e", "GITHUB_TOKEN", "-e", "PROJECT_REGISTRY", "-e", "ALLOWED_IO_ROOTS", "writenotenow/memory-journal-mcp:latest"] (forward any "env" keys via -e <VAR>) |
| Team collaboration | Add "TEAM_DB_PATH": "./team.db" to env |
Restart your MCP client and start journaling!
Connect Remotely with HTTP/SSE Transport
[!IMPORTANT] Stdio and HTTP/SSE transports follow distinct security postures (HTTP enforces three fail-closed startup guards):
- Stdio (Default): Runs implicitly within the secure boundaries of your local IDE or command-line environment. No explicit authentication is required because the execution context is already trusted (
ALLOWED_IO_ROOTSdefaults to fail-closed[]unless configured).- HTTP/SSE (
--transport http): Exposes the server over a network socket and enforces three fail-closed startup guards:
- Mandatory Filesystem Boundary (
ALLOWED_IO_ROOTS/--allowed-io-roots): Always required in HTTP mode so filesystem boundaries are explicitly declared.- Mandatory Public Authentication: By default, HTTP binds ONLY to
localhostand blocks wildcard CORS to prevent unauthorized access and CSRF attacks. Binding to a non-loopback address (--server-host 0.0.0.0) requires explicit authentication (MCP_AUTH_TOKEN/--auth-tokenor--oauth-enabled).- Mandatory Public Origin for Non-Loopback OAuth (
PUBLIC_ORIGIN/--public-origin): When--oauth-enabledis bound to a non-loopback address,--public-origin(PUBLIC_ORIGIN) is strictly required so RFC 9728 Protected Resource Metadata cannot be spoofed viaHostheaders.
For remote access or web-based clients, run the server in HTTP mode:
memory-journal-mcp --transport http --port 3000 --allowed-io-roots /path/to/allowed/dir
To bind to all interfaces (required for containers), you MUST provide both ALLOWED_IO_ROOTS and an authentication token:
export MCP_AUTH_TOKEN="your_secure_random_token"
export MCP_AUTH_SCOPES="full" # Defaults to "read" if omitted
export ALLOWED_IO_ROOTS="/path/to/allowed/dir"
memory-journal-mcp --transport http --port 3000 --server-host 0.0.0.0
Endpoints:
| Endpoint | Description | Mode |
|---|---|---|
GET / | Server info and available endpoints | Both |
POST /mcp | JSON-RPC requests (initialize, tools/call, etc.) | Both |
GET /mcp | SSE stream for server-to-client notifications | Stateful |
DELETE /mcp | Session termination (204 No Content) | Both |
GET / POST /sse | Legacy SSE connection & stateless/stateful POST (MCP 2024-11-05) | GET: Stateful / POST: Both |
POST /messages | Legacy SSE message endpoint | Stateful |
GET /health | Health check ({ status, timestamp }) | Both |
GET /metrics | Prometheus metrics export (requires flag; Bearer token or OAuth audit scope when auth enabled) | Both |
GET /.well-known/oauth-protected-resource | RFC 9728 Protected Resource Metadata (requires --oauth-enabled) | Both |
Session Management: The server uses stateful sessions by default. Include the mcp-session-id header (returned from initialization) in subsequent requests.
- OAuth 2.1 β RFC 9728/8414, JWT/JWKS, granular scopes (opt-in via
--oauth-enabled) - Comprehensive Security Headers β CSP, HSTS (opt-in), X-Frame-Options, and more
- Rate Limiting β 100 req/min per client IP (SHA-256 of client IP) Β· CORS β configurable multi-origin (exact-match) Β· 1MB body limit
- Server Timeouts β Request (120s), keep-alive (65s), headers (66s) Β· 404 handler Β· Cross-protocol guard
- Build Provenance Β· SBOM Β· Supply Chain Attestations Β· Non-root execution
Example with curl:
Initialize session (returns mcp-session-id header):
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'
List tools (with session):
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: YOUR_SESSION_ID" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
Stateless Mode (No-Session HTTP)
For container or load-balanced Node deployments without sticky sessions (requires a Node process with a local SQLite file; edge/serverless runtimes are not supported), use stateless mode:
memory-journal-mcp --transport http --port 3000 --stateless --allowed-io-roots /path/to/projects
| Mode | Progress Notifications | Legacy SSE | Horizontal Scaling |
|---|---|---|---|
| Stateful (default) | β Yes | β Yes | β οΈ Sticky sessions |
Stateless (--stateless) | β No | β No | β Any instance |
Maintenance, Auto-Prune & Scheduled Jobs
Startup auto-prune enforces two-stage data lifecycle hygiene automatically on boot (0 = disabled), and one-shot admin CLI subcommands handle database maintenance (backup, restore, vacuum, prune, rebuild-index) without running a background scheduler inside the MCP server.
[!NOTE] For recurring automation across IDE sessions, use client-driven Nightly CMS Automations β (
CMS-02/CMS-04) or OS-level scheduling (cron, Windows Task Scheduler) invokingmemory-journal-mcp admin <command>ormj_execute_codetools directly.
memory-journal-mcp --archive-older-than-days 90 \
--prune-older-than-days 5 --hard-delete-older-than-days 5 \
--prune-importance-threshold 0.15
# One-shot maintenance commands (stdio or headless hosts)
memory-journal-mcp admin backup
memory-journal-mcp admin vacuum
memory-journal-mcp admin prune
memory-journal-mcp admin rebuild-index
Documentation truncated β see the full README on GitHub.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Memoir
Freeby Camgitt Β· Developer Tools
Persistent memory for AI coding tools via MCP. Remembers across sessions and machines.
Komplyt Zero
Freeby Komplyzen Β· Developer Tools
Persistent working memory for AI agents: a knowledge graph with semantic search and decay.
Memory
Freeby Yuvalsuede Β· Developer Tools
Persistent memory + git snapshots for Claude Code. Never lose context or code.
Openchronicle
Freeby CarlDog Β· Developer Tools
Memory database for LLM agents β persistent semantic + keyword memory, project namespacing, served o
Ori Mnemos
Freeby Aayoawoyemi Β· Developer Tools
Persistent memory infrastructure for AI agents. Identity, knowledge graph, and search.
Llm Wiki V2
Freeby Crow Hq Β· Developer Tools
Long-term memory as a Markdown wiki: recall with cited notes, remember, file your documents.
