Mcp-build-memory-tracker-server

Ramneek82810/Mcp-build-memory-tracker-server

3.2

If you are the rightful owner of Mcp-build-memory-tracker-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Build Memory Tracker Server is a robust memory tracking server designed to enhance AI applications by managing contextual memory across sessions using the MCP framework.

๐Ÿง  MCP Build Memory Tracker Server

A powerful memory tracking server built using the MCP (Multi-Service Conversational Platform) framework. This project monitors, stores, and manages contextual memory from MCP-powered AI applications, enabling smarter and more coherent interactions across sessions.

๐Ÿš€ Features

  • ๐Ÿ“ฆ Tracks memory across multiple user sessions
  • ๐Ÿงฉ Integrates seamlessly with MCP client/server setups
  • ๐Ÿ—ƒ๏ธ Uses efficient in-memory and persistent memory stores
  • ๐Ÿ”„ Supports real-time memory updates and deletions
  • โœ… Minimal setup with uvicorn for local development

๐Ÿ“ Project Structure

Mcp-build-memory-tracker-server/
โ”‚
โ”œโ”€โ”€ memory/                 # Core memory logic and backend
โ”‚   โ”œโ”€โ”€ memory_store.py     # In-memory and persistent memory handler
โ”‚   โ””โ”€โ”€ utils.py            # Helper utilities
โ”‚
โ”œโ”€โ”€ server.py              # Main MCP memory tracker server
โ””โ”€โ”€ README.md              # You're reading it!

โš™๏ธ Installation

1. Clone the Repository

git clone https://github.com/Ramneek82810/Mcp-build-memory-tracker-server.git
cd Mcp-build-memory-tracker-server

2. Create and Activate Virtual Environment (optional but recommended)

python -m venv .venv
source .venv/bin/activate    # On Windows use: .venv\Scripts\activate

3. Install Dependencies

pip install fastapi uvicorn mcp

๐Ÿงช Run the Server Locally

uvicorn server:app --reload

Or if using uv (recommended for MCP projects):

uv run server.py

The server will be available at http://localhost:8000

๐Ÿง  How Memory Works

  • Stores contextual data like conversation history, instructions, and metadata
  • Each memory is scoped by:
    • session_id
    • tool_name
    • key
  • Supports:
    • GET /memory
    • POST /memory
    • DELETE /memory

๐Ÿ”Œ Integration with MCP

This server is designed to work with MCP's memory protocol.

Example MCP Tool Client Usage:

from mcp import ClientSession
# Your logic to call memory endpoints

Make sure to configure your client to point to this server when running in development mode.

๐Ÿ“Œ Todo

  • Add persistent storage backend (Redis/SQLite)
  • Secure memory endpoints
  • Add Swagger UI for API testing
  • Write unit tests

๐Ÿค Contributing

Pull requests are welcome! For major changes, please open an issue first.