coster
Exports project memories to .github/copilot-instructions.md, giving GitHub Copilot access to decisions, conventions, and workarounds.
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., "@costercapture a convention: use 2-space indentation in all code"
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.
Coster
Universal, offline-first context persistence layer for AI coding assistants.
Coster captures the why of your codebase — decisions, conventions, workarounds, and
investigations — into a local SQLite database, then regenerates tool-specific memory files
(CLAUDE.md, AGENTS.md, .cursorrules, …) so every AI assistant you use shares the same
brain. No API keys, no cloud, no telemetry.

Why
AI assistants forget everything between sessions. Coster gives them durable, structured memory that follows your project instead of living inside one vendor's context window.
Offline & private — everything is stored in
.coster/inside your project.Zero API keys —
coster init --autodetects your tool, installs hooks, syncs, and backfills memories from your git history.Tool-agnostic — one source of truth, exported to 9+ assistant formats.
Native-free — storage uses
sql.js(WASM SQLite), so there is nonode-gypbuild step.
Related MCP server: Context Portal MCP (ConPort)
Install
npm install -g coster
# or run without installing:
npx coster@latest <command>Requires Node.js 18+.
Quick start
From the root of your project:
coster init --autoThis will:
Detect which AI assistant you use (
.claude/CLAUDE.md→ Claude Code,AGENTS.md→ OpenCode,.cursorrules→ Cursor, etc.).Install git hooks (post-commit / post-checkout) that capture context automatically.
Sync a tool-specific memory file (e.g.
AGENTS.md).Backfill — scan git history for
cost:<category>:directives and import them as memories.
Then just work. Git commits that include a directive like:
cost:decision: We standardized on feature flags for all new endpoints…are automatically captured into Coster on every commit.
Commands
Command | Description |
| Initialize a project. Plain |
| Interactive setup wizard. |
| Quick-capture a memory from plain text (auto-categorizes). |
| Manually capture a memory. |
| Called automatically by git hooks. |
| Search memories (records access for |
| List memories. |
| Print the generated memory file for a tool (default: |
| Regenerate tool-specific memory files. |
| CRUD on individual memories. |
| Read/modify configuration. |
| Health check ("doctor"). |
| Memory statistics by category and access. |
| Manage git/shell hooks. |
| Manage capture sessions (inject context on start, archive expired memories on end). |
| Print memories grouped by category for a tool. |
| Archive memories expired per lifecycle TTL. |
| Start the MCP server. |
| Print a shell completion script. |
Examples
# Add a memory
coster memory add -c convention -t "Use 2-space indentation" --tags style
# Search
coster search "indentation"
# Tune config
coster config set quality.minScore 6
coster config set tools.opencode.enabled false
# See what's going on
coster status
coster stats --jsonSupported tools & setup
Coster exports a managed block into each tool's memory file. Your own content in those files
is preserved — Coster only owns the region between <!-- COSTER:START --> and
<!-- COSTER:END --> markers, and re-writes only that region on every sync.
Tool | File written |
Claude Code |
|
OpenCode |
|
Cursor |
|
GitHub Copilot |
|
Windsurf |
|
Codex |
|
Cline |
|
Continue |
|
Kiro |
|
Coster (portable) |
|
Enabling the MCP server (recommended)
The MCP server lets an assistant read and write memories directly. Add Coster to your
assistant's MCP configuration with the command coster mcp:
Claude Code — .mcp.json (project) or ~/.claude.json:
{
"mcpServers": {
"coster": {
"command": "coster",
"args": ["mcp", "--project", "."]
}
}
}OpenCode — ~/.config/opencode/opencode.json:
{
"mcp": {
"coster": {
"command": "coster",
"args": ["mcp", "--project", "."]
}
}
}Cursor / VS Code / Cline / Continue / Windsurf / Codex / Kiro — use the same shape in
their respective mcp.json / MCP settings file:
{
"mcpServers": {
"coster": { "command": "coster", "args": ["mcp", "--project", "."] }
}
}Requires Coster on your
PATH(npm install -g coster). The--projectflag defaults to the current directory when omitted.
The cost: directive
Capture structured memory from commit messages without leaving your editor. The format is:
cost:<category>: <content>category— one ofpreference,convention,decision,investigation,workaround,recap,mistake.
Examples:
cost:decision: We standardized on feature flags for all new endpoints
cost:convention: All dates are stored as UTC ISO-8601 strings
cost:workaround: The staging API requires a trailing slash or it 500sEvery commit that includes a directive is captured by the post-commit hook (stored with importance 0.8).
Memory categories
preference · convention · decision · investigation · workaround · recap · mistake
Memories carry an importance (0–1), tags, a source (manual, git-hook, shell-hook,
auto), and access counters used by coster stats.
How it works
git commit ─▶ post-commit hook ─▶ coster capture commit
│
coster capture (manual) ──────┤
▼
┌──────────────────────┐
│ .coster/coster.db │ (sql.js / WASM SQLite)
└──────────────────────┘
│
coster sync ─▶ AGENTS.md / CLAUDE.md / .cursorrules …
│
injected into your assistant's contextConfiguration
Configuration lives in .coster/config.json. Key paths:
quality.minScore— minimum quality-gate score to keep a memory.tools.<name>.enabled— toggle export for a specific assistant.tools.<name>.exportPath— where the generated file is written.lifecycle.*— TTLs and auto-archive behavior.
FAQ
Does Coster send my code anywhere?
No. All storage is local (sql.js WASM SQLite inside .coster/). There is no network
call unless you explicitly connect the MCP server to an assistant.
Will sync overwrite my AGENTS.md?
No. Coster only writes the region between its <!-- COSTER:START --> / <!-- COSTER:END -->
markers. Anything you write outside that block is preserved.
Do I need to be on a specific OS?
No. Coster runs on Windows, macOS, and Linux. The git hooks are POSIX sh scripts that Git
runs natively on all three.
Why do I need a global install for hooks?
Git hooks invoke coster by name, so it must be on your PATH. Use npm install -g coster,
or run npx coster@latest for one-off commands.
How do I disable a tool's export?
coster config set tools.<name>.enabled false, then coster sync.
Development
npm install
npm run build # tsup → dist/
npm test # vitest
npx tsc --noEmit # typecheckLicense
MIT — see LICENSE.
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.
Related MCP Servers
- Alicense-qualityDmaintenanceA self-hosted MCP server that provides AI assistants with a shared, persistent SQLite-backed memory for storing and retrieving project context, decisions, and discoveries. It enables cross-session continuity and team-wide knowledge sharing to keep AI coding tools aligned and informed.3MIT
- Alicense-qualityDmaintenanceA database-backed MCP server that acts as a project memory bank, enabling AI assistants to store, retrieve, and search structured context like decisions, tasks, and architecture using SQLite and vector embeddings.Apache 2.0
- Alicense-qualityCmaintenancePersistent memory for AI coding agents. Enables agents to save and recall decisions, patterns, bugs, and context across sessions via an MCP server with local SQLite storage.452MIT
- Alicense-qualityDmaintenanceA local MCP memory server that gives AI assistants durable project memory across coding sessions, storing context, changes, and decisions.231MIT
Related MCP Connectors
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/savai15/coster'
If you have feedback or need assistance with the MCP directory API, please join our Discord server