MCP Memory Server
A simple memory storage server for Claude using the Model Context Protocol (MCP), enabling Claude to store and retrieve text memories across conversations.
README
MCP Memory Server
A simple memory storage server for Claude using the Model Context Protocol (MCP). Perfect for hobby projects or learning how to build your first MCP server!
This server lets Claude remember things across conversations by storing and retrieving memories with optional tags.
What It Does
Store text memories that Claude can search and retrieve later. Great for:
- Remembering user preferences
- Storing project notes
- Building knowledge bases
- Learning MCP development
Available Tools
store_memory: Store a memory with optional tagsretrieve_memories: Search memories by contentlist_memories: Show all stored memoriesdelete_memory: Delete a specific memoryclear_memories: Delete all memories
Quick Start
1. Install & Run
# Clone and setup
git clone https://github.com/imyashkale/mcp-memory-server.git
cd mcp-memory-server
npm install
npm start
Server runs on http://localhost:3000
2. Add to Claude
claude mcp add memory http://localhost:3000/message --transport http
That's it! Claude can now use the memory tools.
Basic Usage
Once connected to Claude, you can:
# Store memories
"Remember that I like both dogs and cats"
# Retrieve memories
"What do you remember about my pet preferences?"
# List all memories
"Show me all my stored memories"
Development
Run in dev mode (auto-restart)
npm run dev
Project Structure
index.js- Main server file with MCP toolspackage.json- Dependencies and scripts- In-memory storage (resets on restart)
Environment Variables
PORT- Server port (default: 3000)LOG_LEVEL- Logging: error, warn, info, debug (default: info)
Memory Format
Each memory contains:
id- Unique numbercontent- The memory texttags- Optional categorization tagstimestamp- When it was created
Docker (Optional)
# Build and run
docker build -t mcp-memory-server .
docker run -d -p 3000:3000 mcp-memory-server
# Add to Claude with Docker
claude mcp add memory --transport http -- http://localhost:3000/message
What's Next?
This is a basic MCP server to get you started. You can extend it by:
- Adding persistent storage (database)
- Adding more search features
- Building a web interface
- Adding authentication
Troubleshooting
Port in use? Change the port:
PORT=3001 npm start
claude mcp add memory http://localhost:3001/message --transport http
Connection issues? Check the server is running:
curl -X POST http://localhost:3000/message -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'
Contributing
This is a hobby project, but contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch
- Make improvements
- Submit a pull request
License
MIT License - feel free to use this project for learning, hobby projects, or commercial use.
Support
- Issues: Open an issue on GitHub for bugs or feature requests
- Questions: Check the MCP documentation or start a discussion
- MCP Resources: Model Context Protocol Docs
Built with Node.js and the official MCP SDK. Perfect for learning MCP development!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.