Palace logo

Palace

Local-first MCP memory for coding agents, backed by SQLite and local embeddings.

Install Palace

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

Setup steps from the project

Palace 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
    curl -fsSL https://raw.githubusercontent.com/AncientiCe/palace-rs/main/scripts/install.sh | sh
    
  2. 2. Install
    irm https://raw.githubusercontent.com/AncientiCe/palace-rs/main/scripts/install.ps1 | iex
    
  3. 3. Install
    brew tap AncientiCe/palace
    
  4. 4. Install
    brew install palace
    
  5. 5. Install
    git clone https://github.com/AncientiCe/palace-rs && cd palace-rs
    
  6. 6. Install
    cargo build --release   # binary at target/release/palace
    

Overview

Palace MCP server gives coding agents persistent, local memory in a single SQLite file, including decisions, fixes, commands, preferences, and project facts. It combines verbatim storage with hybrid BM25 and embedding search, provenance, preference recall, and a knowledge graph. Hooks can inject relevant memories during sessions, while repository mining builds project-specific memory after user approval. Reach for Palace when agents need continuity across sessions without sending memory to a cloud service.

Use cases

  • Recall project decisions across coding sessions
  • Search stored fixes, commands, and preferences
  • Mine a repository into project-specific memory
  • Track changing facts and relationships in a knowledge graph

Key features

  • Stores verbatim memory in a local SQLite file
  • Searches with BM25 and local embedding similarity
  • Injects relevant memory through session hooks
  • Maintains provenance for retrieved drawers
  • Tracks time-stamped knowledge graph facts
  • Supports project and topic memory wings

Tools46

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

Self-reported~681 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.

17/18 checks healthy over the last 112d

Adoption & maintenance

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

GitHub stars14Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Tools exposed46Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Palace works

What Palace does

Palace provides persistent memory for coding agents through MCP. It stores source text verbatim rather than reducing it to an LLM-generated summary, then attaches embeddings and metadata for retrieval. Memories can represent code excerpts, notes, conversations, diary entries, decisions, commands, or preferences.

Its storage model is organized into wings, rooms, and drawers. A wing represents a project or topic, a room groups related content, and a drawer contains one stored text item with metadata. Project wings correspond to folders on disk; topic wings can hold material such as meeting notes or chat history without a project folder.

Palace also maintains a time-stamped knowledge graph. Facts use a subject, predicate, and object structure, such as a project using a particular queue. Tools can add, invalidate, inspect, and traverse those relationships. Results include provenance such as the wing, room, source file, drawer ID, and score details.

How it works

The server runs locally and stores its data in a SQLite database. Embeddings are generated on the local CPU through ONNX Runtime. The default model is all-MiniLM-L6-v2; the embedding model can be changed, with vectors rebuilt from the original stored text.

Search combines BM25 keyword matching with cosine similarity over embeddings. Query intent can be classified as a preference, decision, how-to question, definition, temporal query, or unknown request. Coding-related boosts and a separate preference search pass refine retrieval, and an optional local cross-encoder reranker can be enabled with --rerank or PALACE_RERANK=1.

Hooks can add relevant memory when a session starts, when a prompt is sent, and while an agent investigates. Repository mining is available on demand after user agreement. The resulting memory can be searched by the connected agent or from the terminal with the Palace CLI.

Setup and configuration

Install the palace binary with the macOS/Linux installer, the Windows PowerShell installer, Homebrew on macOS Apple Silicon or Linux, an MCPB bundle, or a source build using Rust 1.82 or newer. Supported binary platforms are Linux x86_64, macOS Apple Silicon, and Windows x86_64. macOS Intel is not supported because an ONNX Runtime build is unavailable.

After installation, run palace install to connect supported agents and restart the agent application so it reloads its MCP configuration. palace doctor checks client wiring. A project can be initialized with palace init <path> --yes --auto-mine, which detects rooms, writes palace.yaml, and mines the repository.

The embedding model downloads from Hugging Face the first time mining or search requires it, then remains cached under ~/.cache/huggingface. Palace does not require API keys for its local operation.

Tools and capabilities

The MCP tool set covers four main areas:

  • Inspecting operation with palace_status, palace_verify, and palace_gain.
  • Managing projects and topics with wing, room, taxonomy, and project-status tools.
  • Storing and retrieving memory with search, recall checks, duplicate detection, drawer CRUD, provenance, and forgetting tools.
  • Working with structured knowledge through graph queries, fact updates, invalidation, timelines, statistics, seeding, and graph traversal.

palace_mine scans a repository on demand, while palace_create_wing registers a project or topic. palace_remember provides a fixed-importance shortcut for adding a drawer.

Limitations and notes

Palace is designed around local storage and local embeddings, so first-use model downloads and indexing require local disk and CPU resources. Its one-file database and cached model make it suitable for local-first use, but database backups and migration are part of the operator's responsibility. Switching embedding models rebuilds vectors from stored text rather than discarding the underlying memories.

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 Palace

Palace is an MCP server that connects coding agents to a local SQLite memory store with local embeddings. Its main tools cover semantic search, memory storage, drawer management, repository mining, project organization, provenance, and knowledge-graph queries so agents can retain decisions, fixes, commands, and preferences across sessions.

Install the `palace` binary with the macOS/Linux script, Windows PowerShell script, Homebrew, an MCPB bundle, or a Rust source build. Then run `palace install`, restart the agent application, and use `palace doctor` to check the client configuration.

Palace works with Claude Code, Codex, Cursor, Gemini CLI, VS Code, Cline, Zed, Windsurf, and Claude Desktop. Running `palace install` connects supported agents on the machine, after which the client must be restarted to load the MCP configuration.

No, Palace stores memory in a local SQLite file and generates embeddings locally through ONNX Runtime. The embedding model is downloaded from Hugging Face on first use and cached locally; local operation does not require API keys.

Palace combines BM25 keyword search with cosine similarity over local embeddings, then applies intent and coding-related boosts. Preference-shaped queries receive a dedicated search pass, and an optional local cross-encoder reranker can be enabled with `--rerank` or `PALACE_RERANK=1`.

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 PreviewPalace AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/palace?style=directory)](https://allmcps.com/mcp/palace)
HTML Embed
<a href="https://allmcps.com/mcp/palace"><img src="https://allmcps.com/api/badge/palace?style=directory" alt="Palace on AllMCPs" /></a>