
Mcp Context Server
Provides persistent multimodal context storage that multiple LLM agents can share through thread-based scoping. You get 13 tools including store_context, search_context, and update_context for managing text and images with metadata filtering, tag-based organization, and date range queries. The real power is in the optional search capabilities: semantic search with embeddings from Ollama, OpenAI, or HuggingFace, full-text search with stemming and boolean queries, or hybrid search combining both with reciprocal rank fusion. Includes automatic LLM-based summarization for search results and cross-encoder reranking for precision. Runs on SQLite by default or PostgreSQL for high-concurrency deployments. Reach for this when you need agents to build and query shared context across conversations without losing state.
- GitHub stars
- 8
- tools
- 21
- auth
- Required
- transport
- STDIO, HTTP
- env vars
- 24
- last updated
- Mar 28, 2026
Tools
21 toolsPublic tool metadata for what this MCP can expose to an agent.
store_contextCore Operations tool for storing context entries.
Core Operations tool for storing context entries.
No parameter schema in public metadata yet.
search_contextCore Operations tool for searching context entries.
Core Operations tool for searching context entries.
No parameter schema in public metadata yet.
get_context_by_idsCore Operations tool for retrieving context entries by their IDs.
Core Operations tool for retrieving context entries by their IDs.
No parameter schema in public metadata yet.
delete_contextCore Operations tool for deleting context entries.
Core Operations tool for deleting context entries.
No parameter schema in public metadata yet.
update_contextCore Operations tool for updating context entries.
Core Operations tool for updating context entries.
No parameter schema in public metadata yet.
list_threadsCore Operations tool for listing threads.
Core Operations tool for listing threads.
No parameter schema in public metadata yet.
get_statisticsCore Operations tool for retrieving context statistics.
Core Operations tool for retrieving context statistics.
No parameter schema in public metadata yet.
semantic_search_contextSearch tool for vector similarity search.
Search tool for vector similarity search.
No parameter schema in public metadata yet.
fts_search_contextSearch tool for full-text search.
Search tool for full-text search.
No parameter schema in public metadata yet.
hybrid_search_contextSearch tool combining full-text and semantic search.
Search tool combining full-text and semantic search.
No parameter schema in public metadata yet.
grep_contextNavigation tool for literal or regex pattern matching over stored records.
Navigation tool for literal or regex pattern matching over stored records.
No parameter schema in public metadata yet.
navigate_contextNavigation tool that builds a table of contents for a record.
Navigation tool that builds a table of contents for a record.
No parameter schema in public metadata yet.
read_context_rangeNavigation tool that reads a slice of one record by character range, line range, or node_id.
Navigation tool that reads a slice of one record by character range, line range, or node_id.
No parameter schema in public metadata yet.
plan_context_syncSync tool that plans knowledge base synchronization in a read-only manner.
Sync tool that plans knowledge base synchronization in a read-only manner.
No parameter schema in public metadata yet.
list_ingest_stateSync tool for listing ingest state.
Sync tool for listing ingest state.
No parameter schema in public metadata yet.
share_contextSharing tool for granting access to context entries.
Sharing tool for granting access to context entries.
No parameter schema in public metadata yet.
unshare_contextSharing tool for revoking access to context entries.
Sharing tool for revoking access to context entries.
No parameter schema in public metadata yet.
list_context_grantsSharing tool for listing access grants on context entries.
Sharing tool for listing access grants on context entries.
No parameter schema in public metadata yet.
store_context_batchBatch operation for storing multiple context entries.
Batch operation for storing multiple context entries.
No parameter schema in public metadata yet.
update_context_batchBatch operation for updating multiple context entries.
Batch operation for updating multiple context entries.
No parameter schema in public metadata yet.
delete_context_batchBatch operation for deleting multiple context entries.
Batch operation for deleting multiple context entries.
No parameter schema in public metadata yet.
Sponsors
Configuration
LOG_LEVELLog level
STORAGE_BACKENDStorage backend type: sqlite (default) or postgresql
MAX_IMAGE_SIZE_MBMaximum individual image size in megabytes
MAX_TOTAL_SIZE_MBMaximum total request size in megabytes
DB_PATHCustom database file location path
POOL_MAX_READERSMaximum number of concurrent read connections in the pool
POOL_MAX_WRITERSMaximum number of concurrent write connections in the pool
POOL_CONNECTION_TIMEOUT_SConnection timeout in seconds
POOL_IDLE_TIMEOUT_SIdle connection timeout in seconds
POOL_HEALTH_CHECK_INTERVAL_SConnection health check interval in seconds
RETRY_MAX_RETRIESMaximum number of retry attempts for failed operations
RETRY_BASE_DELAY_SBase delay in seconds between retry attempts
RETRY_MAX_DELAY_SMaximum delay in seconds between retry attempts
RETRY_JITTEREnable random jitter in retry delays
RETRY_BACKOFF_FACTORExponential backoff multiplication factor for retries
SQLITE_FOREIGN_KEYSEnable SQLite foreign key constraints
SQLITE_JOURNAL_MODESQLite journal mode (e.g., WAL, DELETE)
SQLITE_SYNCHRONOUSSQLite synchronous mode (e.g., NORMAL, FULL, OFF)
SQLITE_TEMP_STORESQLite temporary storage location (e.g., MEMORY, FILE)
SQLITE_MMAP_SIZESQLite memory-mapped I/O size in bytes
SQLITE_CACHE_SIZESQLite cache size (negative value for KB, positive for pages)
SQLITE_PAGE_SIZESQLite page size in bytes
SQLITE_WAL_AUTOCHECKPOINTSQLite WAL autocheckpoint threshold in pages
SQLITE_BUSY_TIMEOUT_MSSQLite busy timeout in milliseconds
Readme
MCP Context Server
MCP Context Server - MCP-based server providing persistent multimodal context storage for LLM agents
A high-performance Model Context Protocol (MCP) server providing persistent multimodal context storage for LLM agents. Built with FastMCP, this server enables seamless context sharing across multiple agents working on the same task through thread-based scoping.
Details
- Repository
- github.com/alex-feel/mcp-context-server
- Category
- AI & LLM Tools
- Package
mcp-context-server- Transport
- STDIO, HTTP
- Auth
- Required
- Registry
- MCP registry, active