Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Context MCPsearch my context for information about our API authentication flow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Context MCP
A Model Context Protocol (MCP) server that provides persistent context management for AI agents like Cursor, Claude Code, and Claude Desktop. Uses Upstash Vector DB for storage and Google AI for embeddings.
Features
Add Context: Store text with metadata, automatically embedded and indexed
Query Context: Semantic search to find relevant stored information
Batch Operations: Efficiently add or delete multiple contexts
Metadata Filtering: Filter queries by metadata attributes
Statistics: Monitor your vector database usage
Prerequisites
Upstash Vector DB account - Sign up at Upstash
Create a new Vector Index with dimension
768(for Google's text-embedding-004)Get your REST URL and Token
Google AI API Key - Get from Google AI Studio
Installation
Configuration
Create a .env file based on .env.example:
Fill in your credentials:
Usage with AI Agents
Claude Desktop
Add to your claude_desktop_config.json:
Cursor
Add to your Cursor MCP settings:
Claude Code (Windsurf)
Add to your MCP configuration file.
Available Tools
add_context
Store a single piece of context.
Parameters:
id(required): Unique identifiercontent(required): Text content to storemetadata(optional): Key-value pairs for filtering
add_contexts_batch
Store multiple contexts efficiently.
Parameters:
contexts(required): Array of{id, content, metadata}objects
query_context
Search for relevant contexts.
Parameters:
query(required): Natural language search querytopK(optional): Number of results (1-20, default: 5)filter(optional): Upstash filter expression
delete_context
Delete a single context by ID.
Parameters:
id(required): ID of context to delete
delete_contexts_batch
Delete multiple contexts.
Parameters:
ids(required): Array of IDs to delete
get_stats
Get database statistics (vector count, dimensions).
Example Usage
Once connected, you can ask your AI agent to:
Upstash Filter Syntax
When querying, you can filter by metadata:
Development
License
MIT