Spec Kit Memory Hub
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Spec Kit Memory Hubplan with memory for user authentication feature"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ Spec Kit Memory Hub
Durable project memory and context for AI-assisted development.
Spec Kit Memory Hub (memory-md) is a repository-native, Git-reviewable memory extension that provides AI coding assistants with persistent context across features. It ensures your agents reuse past architectural decisions, domain constraints, bug patterns, and lessons learned instead of repeating mistakes.
β‘ Core Value: Up to 10x Token Savings
Traditional systems either read the entire codebase (wasting thousands of tokens) or start every prompt from scratch. Memory Hub uses a three-tier architecture with a SQLite Caching Optimizer to compress context:
Feature Layer | Storage Location | Retention / Scope | Context Strategy |
1. Governance Law |
| Immutable guidelines (principles, rules, constitution) | Injected only during planning/validation |
2. Project History |
| Long-term memory (decisions, worklogs, bug preventions) | Stored as Markdown, indexed and retrieved selectively |
3. Feature Memory |
| Temporary context (watchpoints, open questions) | Generates |
Why Developers and Teams Use It:
Up to 10x Token Reduction: Replaces broad codebase context dumps with highly compressed, 900-word targeted synthesis.
Prevent Recurring Bugs: Ensures a bug solved in Feature #2 is never reintroduced in Feature #5.
Seamless Onboarding: New developers and AI agents immediately inherit the project's historical memory.
Zero-Leak Privacy: Global cross-project sync operates entirely locally using SHA-256 project path anonymization.
π Quick Start in 3 Steps
1. Install the Extension
Add the extension to Spec Kit CLI (either from the official registry, a release artifact URL, or a local directory):
From the Registry (Recommended):
specify extension add memory-mdFrom a Release Artifact (ZIP):
specify extension add memory-md --from https://github.com/DyanGalih/spec-kit-memory-hub/archive/refs/tags/v1.0.0.zipFrom a Local Developer Artifact:
specify extension add memory-md --dev /path/to/spec-kit-memory-hub2. Bootstrap Your Project
Initialize the folder structure and instructions inside your repository:
/speckit.memory-md.initThis creates:
docs/memory/β Permanent, Git-tracked project memory templates..github/copilot-instructions.mdβ Active agent workflow context..specify/extensions/memory-md/config.ymlβ Customizable extension settings.
3. Profile Stack sync channels
Profile the repository's technologies to subscribe to cross-project shared lessons:
/speckit.memory-md.init-projectπ οΈ Memory Commands Directory
Spec Kit Command | When To Use | What It Does |
| Once, at project setup | Bootstraps the folder structure, templates, and config. |
| Before planning a feature | Selectively indexes memory files and synthesizes a |
| During active implementation | Refreshes the local database cache and regenerates synthesis blocks. |
| After verifying feature work | Reviews work to propose high-value permanent lessons for BUGS.md or DECISIONS.md. |
| After rapid bug fixes | Fast capture path: reviews git diffs and extracts durable bug prevention patterns. |
| When local lesson is validated | Elevates an approved local lesson globally and anonymizes paths via SHA-256. |
| When beginning a new feature | Syncs matching tech-stack lessons from other projects into |
| When memory gets noisy | Finds contradictions, stale items, or duplicates, proposing cleanups. |
π Native Model Context Protocol (MCP) Server
Memory Hub includes a native, fully-compliant Model Context Protocol (MCP) Server. This allows modern LLM clients (such as Claude Desktop, VS Code Cline, Roo-Cline, Cursor, etc.) to query, synthesize, share, and sync memory directly via JSON-RPC, without needing to execute terminal CLI subprocesses.
Key MCP Tools Exposed to Your Agent:
speckit_memory_search: Fast SQLite-cached semantic search across local project memories.speckit_memory_synthesize: Directly generates a 900-word compressedmemory-synthesis.mdcontext file.speckit_memory_share_lesson: Elevates and publishes an approved local lesson into the global local database.speckit_memory_sync_shared: Pulls matching technology stack lessons intodocs/memory/SHARED_LESSONS.mdwith interactive review banners.speckit_memory_init_project: Profiles active project languages/frameworks to configure sync channels.speckit_memory_token_report: Generates an estimated token savings report. (Note: This compares the theoretical token cost of reading raw codebase files vs. reading the optimized.spec-kit-memorycache. It does not track real-time LLM API usage.)
To start the server, configure your client to run the mcp-start command:
npx -y speckit-memory mcp-startFor complete configurations for Claude Desktop, Cline, and other IDE client settings, see the SQLite & MCP Architecture Guide.
π Technical Documentation Map
We have split the Spec Kit Memory Hub manual into focused technical resources:
spec-kit-memory-hub/
βββ README.md β Highly readable, high-level project summary
βββ docs/
βββ value-proposition.md β Business case: Team velocity, alignment, and 10x token ROI
βββ governed-memory-workflow.md β Integration guides for Architecture Guard governed pipelines
βββ reference-manual.md β Detailed specs: File formats, CLI command list, and config schemas
βββ sqlite-mcp-architecture.md β Blueprints: SQLite cache, Model Context Protocol (MCP), and global sync
βββ first-ten-minutes.md β Step-by-step developer walkthrough for bootstrapping a new project
βββ optimizer-roadmap.md β Execution roadmap: SQLite Phase 1-4 and Phase 3.5 milestonesDirect Links:
π§ Value Proposition & ROI β Deep-dive on team velocity, alignment gains, and exact token benchmarks.
π‘οΈ Governed Memory Workflow β Best practices for combining Memory Hub with Architecture Guard and Security Review validation gates.
π Reference Manual β File schema layouts, available prompts, environment variables, configuration properties, and IDE agent settings.
π SQLite & MCP Architecture β Architectural details of the local optimizer, exposed Stdio MCP JSON-RPC tools, and anonymized sync protocols.
β±οΈ First 10 Minutes: Concrete Example β Practical developer walkthrough from
/initthrough context planning.πΊοΈ Technical Roadmap β The active development roadmap across SQLite, MCP, and high-performance hybrid indexing.
βοΈ Design Philosophy
Automated Confidence-Based Capture: Memory capture evaluates AI confidence. If confidence is > 50%, memory is automatically captured and registered. If <= 50%, it is ignored to keep permanent memory pristine.
Visible in Git: All decisions and lessons are fully tracked in Git history, not hidden in local app state.
Specs Remain Clean: Specifications define the active target; Memory Hub captures durable past constraints.
AI Complements Thinking: The agent prepares synthesis context, but developers review and authorize all changes.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/DyanGalih/spec-kit-memory-hub'
If you have feedback or need assistance with the MCP directory API, please join our Discord server