Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
M9K_DB_PATHNoThe path to the SQLite database where memories are stored.~/.melchizedek/memory.db
M9K_RERANKERNoWhether the cross-encoder reranker is enabled.false
M9K_LOG_LEVELNoThe logging level for the server.warn
M9K_NO_DAEMONNoSet to '1' to disable daemon mode.1
M9K_EMBEDDINGSNoWhether semantic embeddings are enabled.false

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
m9k_search

Search indexed past conversations. Returns compact results with snippets. Results from the current project and session are boosted by default. Use m9k_context or m9k_full to drill down.

m9k_context

Get a chunk with surrounding context (adjacent chunks in the same session). Use after m9k_search to understand the conversation flow.

m9k_full

Retrieve full content of chunks by IDs. Use after m9k_search to get complete context.

m9k_file_history

Find past conversations that touched a specific file. Searches metadata (tool_use file_path) and text content.

m9k_errors

Find past solutions for an error message. Returns error context + how it was resolved.

m9k_similar_work

Find past work similar to what you're about to do. Use at the start of a complex task to see previous approaches. Unlike m9k_search, this prioritizes chunks with rich metadata (multiple tools used, multiple files touched).

m9k_save

Manually save a memory note for future recall. Use for important decisions, patterns, or context.

m9k_sessions

List all indexed sessions, optionally filtered by project.

m9k_info

Show memory index information: corpus size, search pipeline status, usage metrics, embedding worker state.

m9k_config

View or update plugin configuration. Changes are saved to ~/.melchizedek/config.json and take effect on next server restart. Without arguments, returns current config.

m9k_forget

Permanently remove a specific chunk from the memory index. Does NOT delete the source JSONL. Use m9k_search() first to find the chunk ID to forget.

m9k_delete_session

Delete a session from the index. Removes all chunks and search data. Does NOT delete the source JSONL file.

m9k_ignore_project

Exclude a project from indexing. Future sessions won't be indexed. Optionally purge existing indexed sessions for this project.

m9k_unignore_project

Remove a project from the ignore list. Future sessions will be indexed again. Previously purged sessions are NOT restored (requires backfill re-indexation).

m9k_restart

Restart the MCP server. Use after npm run build to load fresh code. The server disconnects; next MCP call auto-reconnects with the new build.

__USAGE_GUIDE

melchizedek v1.0.2 — Persistent memory for Claude Code with hybrid search (BM25 + dual embeddings) + reranking.

Corpus: empty (no sessions indexed yet).

Available tools (16):

  • m9k_search: Find past conversations (BM25 + text vectors + code vectors, fused via RRF)

  • m9k_context: Get a chunk with surrounding conversation context

  • m9k_full: Get complete chunk content by IDs

  • m9k_sessions: Browse indexed sessions

  • m9k_file_history: Find conversations that touched a specific file

  • m9k_errors: Find past solutions for error messages

  • m9k_save: Store important notes for future recall

  • m9k_similar_work: Find past approaches to similar tasks (bonus for complex work)

  • m9k_forget: Permanently remove a chunk from memory

  • m9k_info: Memory index information, corpus size, search pipeline status, usage metrics, embedding worker state

  • m9k_config: View or update plugin configuration

  • m9k_delete_session: Remove a session from the index

  • m9k_ignore_project: Exclude a project from indexing (optionally purge existing data)

  • m9k_unignore_project: Re-enable indexing for a previously ignored project

  • m9k_restart: Restart the MCP server to load fresh code after rebuild

RETRIEVAL PATTERN (use this order):

  1. m9k_search(query) → compact results, current project and session boosted (use order="date_asc" to find first occurrence)

  2. m9k_context(chunkId) → surrounding conversation

  3. m9k_full([chunkIds]) → complete content if needed

SPECIALIZED SEARCH:

  • m9k_file_history(filePath) → before modifying any file

  • m9k_errors(errorMessage) → when you hit an error

  • m9k_similar_work(description) → at the start of a complex task

MANAGE:

  • m9k_info() → check corpus size, search pipeline, usage metrics

  • m9k_config() → view or change plugin configuration

  • m9k_delete_session(sessionId) → remove a session from the index

  • m9k_ignore_project(project) → exclude a project from indexing

  • m9k_unignore_project(project) → re-enable indexing for a project

  • m9k_restart() → restart server after npm run build

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/louis49/melchizedek'

If you have feedback or need assistance with the MCP directory API, please join our Discord server