Agent Memory MCP
by MSR806
README.md
# Agent Memory MCP
Standalone MCP server for agent-maintained memories.
Memories are stored under `~/.agents/memories` by default. Set `AGENT_MEMORY_ROOT` to use another directory.
## Install
```sh
npx -y @msr0806/agent-memory-mcp
```
## Cursor / Claude Desktop
```json
{
"mcpServers": {
"agent-memory": {
"command": "npx",
"args": ["-y", "--package=@msr0806/agent-memory-mcp", "agent-memory-mcp"]
}
}
}
```
If `npx` fails with `command not found`, clear the cache and retry:
```sh
npx clear-npx-cache
npx -y --package=@msr0806/agent-memory-mcp agent-memory-mcp
```
Optional custom storage path:
```json
{
"mcpServers": {
"agent-memory": {
"command": "npx",
"args": ["-y", "@msr0806/agent-memory-mcp"],
"env": {
"AGENT_MEMORY_ROOT": "/path/to/memories"
}
}
}
}
```
## Tools
| Tool | Description |
|------|-------------|
| `create_memory` | Create a global or repo-scoped memory |
| `read_memory` | Read one memory |
| `read_memories` | Read global + repo memories for a repo |
| `update_memory` | Update description and/or content |
| `delete_memory` | Delete a memory |
| `list_memories` | List memory metadata |
### Scopes
- **global** — shared across all repos (e.g. coding preferences)
- **repo** — scoped to a repo name (e.g. `project-gilly`)
### Storage layout
```
~/.agents/memories/
global/
coding-style/MEMORY.md
repos/
project-gilly/
mvp-scope/MEMORY.md
```
## Development
```sh
git clone https://github.com/MSR806/agent-memory-mcp.git
cd agent-memory-mcp
npm install
npm test
npm run build
npm start
```
## Publish
```sh
npm login
npm publish --access public
```
TDQS
B3.1/5.0
Scored across 6 tools
Disambiguation5/5
Each tool has a distinct purpose: creating, deleting, listing metadata, reading multiple, reading single, and updating memories. No overlap.
Naming Consistency5/5
All tools follow a consistent verb_noun pattern in snake_case (e.g., create_memory, list_memories). The plural/singular distinction for read_memories vs read_memory is appropriate.
Tool Count5/5
6 tools is a well-scoped set covering full CRUD plus list and batch read operations. Not too few or too many.
Completeness5/5
The set provides complete lifecycle management for memories: create, read (single and batch), update, delete, and list metadata. No obvious gaps.
Maintenance
ActivityStale
ResponsivenessNo issues