MCP-Testing-interface-for-LLMs
Manage user contexts for LLM interactions by storing and retrieving relevant prompts to ensure continuity in conversations. Provides a RESTful API for context management with support for in-memory storage and TypeScript integration.
Author

Srish-ty
No License
Quick Info
Tools 1
Last Updated 2026-02-19
Actions
Tags
llmsllmcontextscontexts llmcontext managementllms manage
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
-
Install dependencies:
bash npm install -
Start the development server:
bash 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 reloadnpm run build: Build TypeScript filesnpm start: Run built files
