Context MCP
Click on "Deploy 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 MCP search 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
Related MCP server: Qdrant MCP Server
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
# Clone the repository
git clone <your-repo-url>
cd context-mcp
# Install dependencies
npm install
# Build the project
npm run buildConfiguration
Create a .env file based on .env.example:
cp .env.example .envFill in your credentials:
UPSTASH_VECTOR_REST_URL=your_upstash_vector_url
UPSTASH_VECTOR_REST_TOKEN=your_upstash_vector_token
GOOGLE_AI_API_KEY=your_google_ai_api_keyUsage with AI Agents
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"context": {
"command": "node",
"args": ["path/to/context-mcp/dist/index.js"],
"env": {
"UPSTASH_VECTOR_REST_URL": "your_url",
"UPSTASH_VECTOR_REST_TOKEN": "your_token",
"GOOGLE_AI_API_KEY": "your_key"
}
}
}
}Cursor
Add to your Cursor MCP settings:
{
"mcpServers": {
"context": {
"command": "node",
"args": ["path/to/context-mcp/dist/index.js"],
"env": {
"UPSTASH_VECTOR_REST_URL": "your_url",
"UPSTASH_VECTOR_REST_TOKEN": "your_token",
"GOOGLE_AI_API_KEY": "your_key"
}
}
}
}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:
"Add this project documentation to my context with id 'project-readme'"
"Search my context for information about authentication"
"Store these meeting notes with category 'meetings' and date '2024-01-15'"
"What relevant context do I have about the payment system?"Upstash Filter Syntax
When querying, you can filter by metadata:
# Exact match
category = 'meetings'
# Numeric comparison
priority > 5
# Multiple conditions
category = 'docs' AND priority >= 3Development
# Run in development mode
npm run dev
# Build for production
npm run build
# Start production server
npm startLicense
MIT
Available Tools
6 toolsadd_contextB
Add a piece of context/knowledge to the vector database. Use this to store information that can be retrieved later for relevant queries.
Inputs: id (required), content (required), metadata.
add_contexts_batchA
Add multiple context entries to the vector database in a single operation. More efficient for bulk indexing.
Inputs: contexts (required).
delete_contextC
Delete a specific context entry by its ID
Inputs: id (required).
delete_contexts_batchC
Delete multiple context entries by their IDs
Inputs: ids (required).
get_statsB
Get statistics about the vector database (number of stored contexts, dimensions)
Inputs: no named parameters.
query_contextB
Search for relevant context based on a natural language query. Returns the most semantically similar stored contexts.
Inputs: query (required), topK, filter.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Every tool has a clearly distinct purpose with no ambiguity. Tools are clearly separated into categories: adding context (single vs. batch), deleting context (single vs. batch), querying context, and getting statistics. The descriptions make it immediately clear which tool to use for each operation.
Tool names follow a perfectly consistent verb_noun pattern throughout. All tools use snake_case with clear action prefixes (add, delete, get, query) followed by the object (context/stats). Even batch operations maintain the same pattern with '_batch' suffix for consistency.
Six tools is well-scoped for a context management server. Each tool earns its place by covering essential operations: CRUD operations (create, read, delete) with both single and batch variants, plus query and statistics capabilities. No tool feels redundant or missing for the domain.
The tool surface provides complete CRUD/lifecycle coverage for context management. It covers creation (add single/batch), retrieval (query), deletion (delete single/batch), and monitoring (stats). There are no dead ends or obvious gaps for the stated purpose of managing a vector database of context/knowledge.
Related MCP Connectors
Hosted persistent memory with semantic search, importance and TTL for AI agents.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Memory system for AI agents with semantic search. Store and recall memories with ease.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to store, retrieve, and manage contextual knowledge across sessions using semantic search with PostgreSQL and vector embeddings. Supports memory relationships, clustering, multi-agent isolation, and intelligent caching for persistent conversational context.21 npm50MIT
- AlicenseNot gradedqualityDmaintenanceEnables storing and retrieving information using semantic search with Qdrant vector database. Acts as a memory layer for LLMs to persistently store and semantically search through information and metadata.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables persistent multimodal context storage for LLM agents with thread-based scoping, metadata filtering, and hybrid search capabilities.10Elastic 2.0
- AlicenseNot gradedqualityCmaintenanceProvides a persistent, versioned, and searchable context store for AI agents with local embedding and hybrid search.42 npm3MIT