Memory MCP Server
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., "@Memory MCP Serverremember that I prefer using TypeScript for all my projects"
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.
Memory MCP Server
A lightweight MCP (Model Context Protocol) server for persistent agent memory using SQLite and Bun.
Features
store_memory: Store key-value pairs with optional JSON metadata
retrieve_memory: Retrieve a memory by its key
list_memories: List all memories with optional limit
delete_memory: Delete a memory by its key
Related MCP server: tartarus-mcp
Prerequisites
Bun v1.3.9 or higher
Installation
bun installBuild
bun build src/index.ts --outdir=build --target=bunRun
bun run src/index.tsOr use the built version:
bun run build/index.jsConfiguration
Environment Variables
MEMORY_DB_PATH: Path to the SQLite database file (default:./memory.db)
MCP Settings Integration
To use this MCP server with Roo Code or Claude Desktop, add the following configuration to your MCP settings file:
Roo Code (Windows): %APPDATA%\roo-code\settings\mcp_settings.json
Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"memory": {
"command": "bun",
"args": ["/path/to/local-mcp/build/index.js"],
"env": {
"MEMORY_DB_PATH": "/path/to/local-mcp/memory.db"
}
}
}
}Replace /path/to/local-mcp with the absolute path to this directory.
Usage Examples
Once configured, you can use the memory tools in your MCP client:
Store a memory
store_memory with key="user_preference", value="dark_mode", metadata='{"category":"ui"}'Retrieve a memory
retrieve_memory with key="user_preference"List all memories
list_memoriesList limited memories
list_memories with limit=10Delete a memory
delete_memory with key="user_preference"Project Structure
local-mcp/
├── src/
│ ├── db/
│ │ └── index.ts # Database initialization and types
│ ├── tools/
│ │ ├── store-memory/ # Store memory tool
│ │ ├── retrieve-memory/ # Retrieve memory tool
│ │ ├── list-memories/ # List memories tool
│ │ └── delete-memory/ # Delete memory tool
│ └── index.ts # Main server entry point
├── build/ # Compiled output
├── memory.db # SQLite database (created automatically)
├── .env.example # Environment variables template
├── package.json
├── tsconfig.json
└── README.mdDatabase Schema
CREATE TABLE memories (
key TEXT PRIMARY KEY,
value TEXT NOT NULL,
metadata TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);License
MIT
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-qualityCmaintenanceMCP server providing persistent memory management for AI agents using SQLite and FTS5, enabling storage, full-text search, and recall of memories with namespace isolation.Last updated1MIT
- Alicense-qualityDmaintenanceA local-first MCP memory server providing persistent, searchable memory for AI agents, powered by SQLite.Last updated381Apache 2.0
- Alicense-qualityCmaintenanceAn MCP server that provides persistent long-term memory for AI agents via local SQLite storage with low token overhead, enabling memory storage, retrieval, and management across sessions.Last updated1MIT
- Alicense-qualityBmaintenanceA local memory server for AI agents that stores and retrieves information via MCP, keeping all data in SQLite on your machine.Last updated1Apache 2.0
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
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/abudriman/local-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server