# Contextmemory

> CLI tool to persist and restore AI coding context across sessions, editors, and teams.

- **Type:** MCP server
- **Install:** `agentstack add mcp-akashkobal-contextmemory`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AkashKobal](https://agentstack.voostack.com/s/akashkobal)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [AkashKobal](https://github.com/AkashKobal)
- **Source:** https://github.com/AkashKobal/contextmemory
- **Website:** https://www.npmjs.com/package/@akashkobal/contextmemory

## Install

```sh
agentstack add mcp-akashkobal-contextmemory
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# ContextMemory 🧠

Persistent AI coding context memory for developers and teams. Git tracks your code history. **ContextMemory tracks your intent history.** Never re-explain your architecture, decisions, or progress to AI assistants again.

You're deep in a Cursor session refactoring a payment service. You've explained the architecture, tried 3 approaches, finally found the right one. Session dies. Next morning — or worse, your teammate picks it up — and the AI has zero memory. You spend 15 min re-explaining everything. Every. Single. Time.

This is broken across every AI coding tool: Cursor, Claude Code, Copilot, Windsurf — none of them persist context across sessions, editors, or team members.  

---

## 🚀 Installation

Install globally from npm:

```bash
npm install -g @akashkobal/contextmemory
```

Verify installation:

```bash
contextmemory --help
```

---

## ⚡ Quick Start

Initialize inside your project:

```bash
contextmemory init
```

Save your working context:

```bash
contextmemory save
```

Quick save:

```bash
contextmemory save "Implemented multi-model execution"
```

Resume your context:

```bash
contextmemory resume
```

This copies a formatted prompt to your clipboard.  
Paste it into ChatGPT, Cursor, Claude, or any AI coding tool.

---

## 🧠 How It Works

ContextMemory creates:

```
.contextmemory/
├── context.json
├── history/
│   ├── entry-1.json
│   ├── entry-2.json
```

Each entry captures:

- Task
- Goal
- Approaches
- Decisions
- Current State
- Next Steps

---

## 📦 Commands

### Core

```bash
contextmemory init
contextmemory save
contextmemory resume
contextmemory log
contextmemory diff
```

### Automation

```bash
contextmemory watch
contextmemory hook install
contextmemory handoff @username
```

---

## 🔌 MCP Integration (Optional)

Add to your MCP configuration:

```json
{
  "mcpServers": {
    "contextmemory": {
      "command": "npx",
      "args": ["-y", "@akashkobal/contextmemory", "mcp"]
    }
  }
}
```

---

## 🏗 Works With

- Spring Boot
- React
- Node.js
- Python
- Microservices
- Monorepos

AI Tools:

- ChatGPT
- Cursor
- Claude
- Copilot
- Windsurf

---

## 📄 License

MIT

---

## 👨‍💻 Author

Akash Kobal  
GitHub: https://github.com/AkashKobal

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AkashKobal](https://github.com/AkashKobal)
- **Source:** [AkashKobal/contextmemory](https://github.com/AkashKobal/contextmemory)
- **License:** MIT
- **Homepage:** https://www.npmjs.com/package/@akashkobal/contextmemory

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-akashkobal-contextmemory
- Seller: https://agentstack.voostack.com/s/akashkobal
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
