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:Copy
- Start the development server:Copy
API Endpoints
POST /context/:userId
Add a new prompt to user's context and get updated context.
Request body:
Copy
Response:
Copy
GET /context/:userId
Get current context for a user.
Response:
Copy
DELETE /context/:userId
Clear context for a user.
Response:
Copy
Development
npm run dev
: Start development server with hot reloadnpm run build
: Build TypeScript filesnpm start
: Run built files
This server cannot be installed
A server that manages conversation context for LLM interactions, storing recent prompts and providing relevant context for each user via REST API endpoints.