alex-feel avatar

Mcp Context Server

alex-feel/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 tools

Public 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_LEVEL

Log level

STORAGE_BACKEND

Storage backend type: sqlite (default) or postgresql

MAX_IMAGE_SIZE_MB

Maximum individual image size in megabytes

MAX_TOTAL_SIZE_MB

Maximum total request size in megabytes

DB_PATH

Custom database file location path

POOL_MAX_READERS

Maximum number of concurrent read connections in the pool

POOL_MAX_WRITERS

Maximum number of concurrent write connections in the pool

POOL_CONNECTION_TIMEOUT_S

Connection timeout in seconds

POOL_IDLE_TIMEOUT_S

Idle connection timeout in seconds

POOL_HEALTH_CHECK_INTERVAL_S

Connection health check interval in seconds

RETRY_MAX_RETRIES

Maximum number of retry attempts for failed operations

RETRY_BASE_DELAY_S

Base delay in seconds between retry attempts

RETRY_MAX_DELAY_S

Maximum delay in seconds between retry attempts

RETRY_JITTER

Enable random jitter in retry delays

RETRY_BACKOFF_FACTOR

Exponential backoff multiplication factor for retries

SQLITE_FOREIGN_KEYS

Enable SQLite foreign key constraints

SQLITE_JOURNAL_MODE

SQLite journal mode (e.g., WAL, DELETE)

SQLITE_SYNCHRONOUS

SQLite synchronous mode (e.g., NORMAL, FULL, OFF)

SQLITE_TEMP_STORE

SQLite temporary storage location (e.g., MEMORY, FILE)

SQLITE_MMAP_SIZE

SQLite memory-mapped I/O size in bytes

SQLITE_CACHE_SIZE

SQLite cache size (negative value for KB, positive for pages)

SQLITE_PAGE_SIZE

SQLite page size in bytes

SQLITE_WAL_AUTOCHECKPOINT

SQLite WAL autocheckpoint threshold in pages

SQLITE_BUSY_TIMEOUT_MS

SQLite busy timeout in milliseconds

Readme

MCP Context Server

MCP Context Server - MCP-based server providing persistent multimodal context storage for LLM agents

PyPI MCP Registry License: Elastic License 2.0 Ask DeepWiki

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.


View the full README on GitHub

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

Related AI & LLM Tools MCP servers

View all
1automatelab-tech avatarCitation Intelligenceautomatelab-tech/citation-intelligenceCheck what Perplexity, Claude, ChatGPT, Gemini, and Google AI Overviews cite for any query.8stars
2strato-space avatarMedia Gen Mcpstrato-space/media-gen-mcpMCP server for OpenAI Images/Videos and Google GenAI (Veo) media generation.8stars
3htmlcsstoimage avatarHTML/CSS to Image APIhtmlcsstoimage/agent-pluginsGenerate images and PDFs from HTML/CSS, live websites, and reusable templates.0stars
4jasondostal avatarCairnjasondostal/cairn-mcpPersistent memory for AI agents and humans. Store, search, and discover patterns.7stars
5louis49 avatarMelchizedeklouis49/melchizedekPersistent memory for Claude Code — offline, single-file, hybrid search.7stars
6paarths-collab avatarGitHub PR Contextpaarths-collab/github-pr-context-mcpRetrieves GitHub PR history as context material; the connected IDE agent does the reasoning.7stars