ProjectContext
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., "@ProjectContext create agenda for homepage redesign"
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.
ProjectContext - MCP Server
Improved Successor of AgentMemory
A high-performance MCP (Model Context Protocol) server providing long-term memory storage with semantic and keyword search capabilities, along with a structured agenda engine for task management.
Features
Fast Semantic Search: Uses
fastembedwithBAAI/bge-small-en-v1.5for fast startup and low memory usageHybrid Search: Combines keyword (FTS5) and vector search using Reciprocal Rank Fusion (RRF)
Agenda Engine: Task management with full-text search for plans and todo lists
MCP Prompts: Specialized workflows for onboarding, feature planning, and memory maintenance
Persistent Storage: SQLite-based storage with
sqlite-vecextensionSub-200ms Queries: Keeps embedding model in memory for fast response times
MCP Native: Exposes tools, resources, and prompts natively for AI agents
Related MCP server: elephantasm-mcp
Installation
# Clone the repository
git clone <repo-url>
cd projectcontext
# Install dependencies with uv
uv sync
# Or install globally
uv pip install -e .Usage
Running the Server
# Run directly
projectcontext
# Or with uv
uv run projectcontextMCP Configuration
Add to your MCP client configuration (e.g., mcp.json):
{
"mcpServers": {
"projectcontext": {
"command": "uv",
"args": ["run", "projectcontext"],
"cwd": "/path/to/projectcontext"
}
}
}Or using the installed script:
{
"mcpServers": {
"projectcontext": {
"command": "projectcontext"
}
}
}MCP Tools
Memory Engine Tools
save_memory: Save a memory with category, topic, and content.query_memory: Search memories using hybrid semantic/keyword search.update_memory: Modify an existing memory by ID.delete_memory: Remove a memory by ID.
Agenda Engine Tools
create_agenda: Create a new multi-step plan or todo list.list_agendas: Show all active or inactive agendas.get_agenda: Retrieve detailed task information for a specific agenda.search_agendas: Search plans by title or description.update_task: Mark tasks as completed or pending.update_agenda: Modify agenda metadata or add new tasks.delete_agenda: Remove inactive agendas.
MCP Resources
projectcontext://usage-guidelines
Provides comprehensive documentation for AI agents on how to effectively use the Memory and Agenda engines, including categorization best practices and hallucination prevention.
projectcontext://schemas/{tool}
Provides the JSON schema for a specific tool. This is useful for AI agents to understand the required and optional parameters for each tool.
MCP Prompts
ProjectContext includes built-in prompts to guide AI agents through complex workflows:
setup_project_context: Templates for initializing a new project's tech stack, goals, and conventions.plan_feature_implementation: A structured workflow for searching existing context and creating a multi-step agenda for new features.summarize_and_remember: Distills conversation history into structured memories while avoiding duplicates.debug_with_history: A troubleshooting workflow that leverages pastbug_fixmemories and system context.maintain_memory_health: A proactive maintenance workflow for identifying and cleaning up outdated or redundant information.
Architecture
Technology Stack
Framework: FastMCP (Python MCP library)
Embeddings: fastembed (
BAAI/bge-small-en-v1.5, 384-dim)Database: SQLite with
sqlite-vecandFTS5extensionsCommunication: JSON-RPC over stdio
Storage Location
The databases are stored in the .ctxhub/ directory in the git root (or current working directory).
memory.sqlite: Memory Engine databaseagenda.sqlite: Agenda Engine database
Development
Project Structure
projectcontext/
├── src/
│ └── projectcontext/
│ ├── __init__.py # Package initialization
│ ├── server.py # MCP Server (Tools, Prompts, Resources)
│ ├── memory.py # Memory Engine Logic
│ ├── agenda.py # Agenda Engine Logic
│ └── database.py # Database Utilities
├── pyproject.toml
└── .ctxhub/ # DatabasesTesting
# Quick start: runs main tests and offers to start server
./quickstart.sh
# Run specific tests manually
uv run python tests/test_server.py
uv run python tests/test_updates.pyMCP Inspector
npx @modelcontextprotocol/inspector uv run projectcontextLicense
GPL-3.0-or-later
Available Tools
11 toolscreate_agendaA
Create a new agenda (plan/todo list).
Args:
tasks: List of task dicts. Each task should have:
- details: str (required)
- is_optional: bool (optional, default False)
- acceptance_guard: str (optional)
title: Optional title for the agenda
description: Optional description for the agenda
Returns:
A dictionary with status and agenda_id
Inputs: tasks (required), title, description. Returns: object
delete_agendaB
Delete an agenda and its associated tasks.
Args:
agenda_id: The ID of the agenda to delete
Returns:
A dictionary with status and message
Inputs: agenda_id (required). Returns: object
delete_memoryA
Delete a memory by ID.
Args:
doc_id: The ID of the memory to delete
Returns:
A dictionary with status and message
Inputs: doc_id (required). Returns: object
get_agendaA
Get detailed information about an agenda, including its tasks.
Args:
agenda_id: The ID of the agenda to retrieve
Returns:
A dictionary with agenda details and tasks
Inputs: agenda_id (required). Returns: object
list_agendasC
List all agendas.
Args:
active_only: If True, only show active agendas (default: True)
Returns:
A list of agendas
Inputs: active_only. Returns: result
query_memoryA
Query memories using semantic and keyword search.
Args:
query: Natural language search string
top_k: Number of results to return (default: 3)
Returns:
A list of matching memories with similarity scores
Inputs: query (required), top_k. Returns: result
save_memoryA
Save a memory to the long-term storage.
Args:
category: The category of the memory (e.g., "architecture", "preference", "fix")
topic: A short descriptive title for the memory
content: The detailed memory/decision text
Returns:
A dictionary with status, doc_id, topic, and category
Inputs: topic (required), content (required), category (required). Returns: object
search_agendasA
Search agendas by title or description.
Args:
query: The search query string
limit: Maximum number of results to return (default: 10)
Returns:
A list of matching agendas
Inputs: query (required), limit. Returns: result
update_agendaA
Update an agenda's status, details, or add new tasks.
Args:
agenda_id: The ID of the agenda to update
is_active: Set to False to deactivate the agenda (irreversible).
new_tasks: Optional list of new task dicts to add (only if agenda is active).
title: New title (optional)
description: New description (optional)
Returns:
A dictionary with status and message
Inputs: agenda_id (required), title, is_active, new_tasks, +1 more. Returns: object
update_memoryA
Update a memory by ID.
Args:
doc_id: The ID of the memory to update
category: New category (optional)
topic: New topic (optional)
content: New content (optional)
Returns:
A dictionary with status and updated details
Inputs: doc_id (required), topic, content, category. Returns: object
update_taskA
Update a task's completion status.
If all non-optional tasks are completed, the agenda will be marked as inactive.
Args:
task_id: The ID of the task to update
is_completed: True if the task is finished, False otherwise
Returns:
A dictionary with status and message
Inputs: task_id (required), is_completed (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool clearly targets either the memory resource (save/delete/update/query) or the agenda resource (create/list/get/search/update/delete). Even update_task is distinct from update_agenda as it operates on a sub-resource, eliminating any real ambiguity.
All tools follow a consistent verb_noun pattern with snake_case, using clear verbs like save, delete, update, query, create, list, get, search. The pluralization of list_agendas vs get_agenda is a minor stylistic variation but consistent throughout.
11 tools is well within the ideal 3-15 range, covering two distinct domains (memory and agenda) without bloat or thinness. Each tool earns its place in the set.
Memory has full CRUD plus semantic search, and agenda has create/read/update/delete plus task management. The only noticeable gap is the lack of a list_memories tool, but query_memory serves as a search-based alternative. Task deletion is also not available, but tasks can be added and marked complete, so the core lifecycle is covered.
Maintenance
Related MCP Connectors
An MCP memory server. One memory your agents share — across models, devices and apps.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides persistent semantic memory backed by PostgreSQL and pgvector for storing and searching thoughts via vector embeddings. It enables dimensional organization, conflict detection, and historical tracking of facts, decisions, and observations.ISC
- AlicenseAqualityCmaintenanceMCP server for long-term agent memory, providing persistent memory, searchable knowledge, and evolving identity for AI agents.53Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that provides long-term memory for LLMs by storing and retrieving important facts, decisions, and preferences through smart semantic search and automatic organization.12MIT
- AlicenseNot gradedqualityDmaintenanceUniversal MCP server providing adaptive semantic memory for AI agents, supporting document ingestion, semantic search, chat persistence, cross-project linking, and cloud storage overflow.3GPL 3.0