✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

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

Featured Templates

View More
AI Agents
AI Video Generator
252 2006 5.0
AI Assistants
Image to text with Claude 3
151 1365
AI Characters
Your Speaking Avatar
169 927
AI Characters
Sarcastic AI Chat Bot
129 1712
Verified Icon
AI Agents
AI Chatbot Starter Kit
1336 8299 5.0

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.