JUHE API Marketplace
Srish-ty avatar
MCP Server

Memory Context Provider Server

A server that manages conversation context for LLM interactions, storing recent prompts and providing relevant context for each user via REST API endpoints.

0
GitHub Stars
8/23/2025
Last Updated
No Configuration
Please check the documentation below.

README Documentation

Memory Context Provider (MCP) Server

A server that manages context for LLM interactions, storing and providing relevant context for each user.

Features

  • In-memory storage of user contexts
  • Context management with last 5 prompts
  • RESTful API endpoints
  • TypeScript support

Setup

  1. Install dependencies:

    npm install
    
  2. Start the development server:

    npm run dev
    

API Endpoints

POST /context/:userId

Add a new prompt to user's context and get updated context.

Request body:

{
  "prompt": "Your prompt here"
}

Response:

{
  "context": "Combined context from last 5 prompts"
}

GET /context/:userId

Get current context for a user.

Response:

{
  "context": "Current context"
}

DELETE /context/:userId

Clear context for a user.

Response:

{
  "message": "Context cleared"
}

Development

  • npm run dev: Start development server with hot reload
  • npm run build: Build TypeScript files
  • npm start: Run built files

Quick Actions

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source