project-mcp
An MCP server that acts as a central memory system and workflow guardian for AI agents, featuring knowledge graph capabilities and autonomous guidance prompts.
Install / Use
claude mcp add 1999AZZAR -- npx -y github:1999AZZAR/project-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Skill content
View source on GitHubProject Guardian MCP
Part of the HeLa MCP Ecosystem — This server is HeLa Genome (
hela-genome) — the State & Memory component of the HeLa cellular architecture. See the ecosystem docs for profiles, workflows, and multi-client setup.
A Model Context Protocol (MCP) server for persistent project memory, knowledge-graph operations, SQLite data access, runtime security checks, and guided project-management workflows. The current registry exposes 34 tools, 11 resources, and 27 prompts.

Table of Contents
- Features
- Requirements
- Installation
- Available Tools
- AI Guidance System
- Usage Examples
- Configuration
- Project Structure
- Development
- License
Features
Project Guardian Memory System

-
Knowledge Graph: Maintain project entities, relationships, and observations
-
Entity Management: Projects, tasks, people, resources with rich metadata
-
Relationship Mapping: Dependencies, ownership, blockers, and connections
-
Observation Tracking: Contextual notes and progress updates
-
Semantic Search: Fast, localized RAG matching via SQLite's native FTS5 extension (
MATCHandbm25()ranking) across entity names, types, and observations -
Per-Project Memory: Each project gets its own
memory.db. The server resolves the project root in this order: theGUARDIAN_PROJECT_ROOTenvironment variable, then the Git toplevel of its working directory, then$XDG_DATA_HOME/project-guardianas a shared fallback outside any Git repository -
Central Memory Mirror: Every memory write also syncs into one central database at
~/memory/memory.db, giving an aggregated, searchable map across all projects and a fallback when a project database is unavailable. Reads throughread_graphandsearch_nodesmerge both stores, with project entries taking precedence -
Daily Central Backups: On the first sync of each day, the central database is snapshotted to
~/memory/backup/ddmmyyyy_memory.db; the seven most recent backups are kept and older ones pruned automatically. On first run, a legacy~/memory.dbin the home directory is migrated into the new layout and used to seed the first backup -
On-Demand Pre-Commit Setup: Nothing is installed at startup. Call
setup_pre_commitwhen you want a generated.pre-commit-config.yamland Git hooks in the active project -
On-Demand Web UI: Launch a terminal-themed interactive node graph via
start_ui(andclose_ui/stop_uito free the port) to visually pan, search, and explore the project state. Desktop-only with mobile gate (<768pxoverlay), always-visible entity browser, clustered amber orbs → expand to cyan per-observation, cursor-streamedGET /api/graph/stream?cursor=&limit=500+react-windowvirtual list,>1kphysics freeze.
Streamlined Database Operations

- Two Stores, One Interface: Every project uses its own
memory.db; all seven database tools can also address the central aggregate withdatabase: "central" - Core CRUD: Essential database operations (query, insert, update, delete)
- SQL Execution: Direct SQL query execution
- Data Transfer: Import/export CSV and JSON files
- 34 Tools Total: Seven database tools, ten memory tools, one guidance tool, twelve runtime companion tools, and four UI/stream tools (
start_ui,close_ui,stop_ui,read_graph_stream)
Runtime Companion Integration

The repository includes six guardian-* AgentSkills and exposes their operational capabilities through typed MCP tools:
| Companion | Runtime role | MCP surface |
| --- | --- | --- |
| guardian-memory | Persistent entities, relations, and observations | Ten memory tools |
| guardian-session | Active-task, bug, blocker, and recent-change summaries | get_session_context |
| guardian-tracker | Bounded Git diff and untracked-file analysis | analyze_git_changes |
| guardian-wall | Untrusted-text normalization and prompt-injection detection | inspect_untrusted_text |
| guardian-security | Secret scanning and Trivy image scanning | scan_project_secrets, scan_container_image |
| guardian-cache | Optional namespaced Redis storage | Four cache_* tools |
AgentSkills provide host-side workflows and instructions. The MCP runtime implements the corresponding operations directly in TypeScript, except container scanning, which invokes Trivy as a bounded external process. No generic script or shell execution tool is exposed.
AI Guidance System

- 11 Resources: Templates, best practices, project status, and companion capability health
- 27 Prompts: Comprehensive pre-built workflows for all aspects of project management
- Expert Guidance: Step-by-step instructions for complex operations
- Contextual Help: Adaptive prompts based on user needs
- Knowledge Base: Comprehensive project management wisdom
Advanced Features
- Schema Validation: Comprehensive input validation with Zod schemas
- Error Handling: Detailed error messages and graceful failure handling
- Connection Management: Bounded 20-connection LRU cache with
WAL+synchronous=NORMAL+cache_size=-64000+journal_size_limit=67108864+temp_store=MEMORY+busy_timeout=5000, monthlyVACUUM(POST /api/vacuum) and shutdown cleanup - File Integration: CSV and SQL imports are streamed; CSV writes use bounded string assembly
- Result Limits & Pagination: Unbounded raw
SELECTcapped at 10,000 rows;read_graph/readStoredefault5000with?limit=&offset=,read_graph_streamcursor500/pageviaGET /api/graph/stream?cursor=&limit=&+POST /api/vacuum,search_nodescapped 100 (hybrid RRFk=60)
Enterprise Features
- TypeScript: Fully typed with comprehensive error handling
- Input Validation: Zod schema validation for all parameters
- Error Recovery: Graceful error handling with detailed error messages
- Resource Management: Automatic cleanup of connections and resources
- Testing: Ten Jest suites with 93 passing tests (
WAL+ pagination +close_ui+read_graph_stream+e2e-vector hybrid)
Requirements
- Node.js: >= 18.0.0
- npm: Latest stable version
- SQLite3: Automatically installed as dependency
- Redis: Optional; required only for
cache_*tools throughREDIS_URL - Trivy: Optional; required only for
scan_container_image
Installation
- Clone the repository:
git clone https://github.com/1999AZZAR/project-mcp.git
cd project-mcp
- Install dependencies:
npm install
- Build the project: Choose between development or production build:
For development (includes source maps and full TypeScript compilation):
npm run build
For production (creates an optimized, minified bundle):
npm run build:prod
- Run the test suite:
npm test
- Start the server:
npm start
Updating After Changes
When you pull new updates or modify the code, you must rebuild the server and restart your MCP client (Cursor, Claude Desktop, etc.) for the changes to take effect:
- Pull the latest code:
git pull - Install new dependencies (if any):
npm install - Rebuild the bundle:
npm run build:prod - Important: Restart your IDE or the MCP connection so the client can fetch the newly updated tools and prompts.
Available Tools

This MCP server currently provides 34 tools:
Database Operations (7 tools)
All database tools accept an optional database selector: project (default) targets the active project's memory.db, central targets the central aggregate at ~/memory/memory.db.
execute_sql - Execute SQL Query
Execute raw SQL queries on the selected memory database.
Parameters:
query(required): SQL query stringparameters(optional): Query parameters arraydatabase(optional):"project"or"central", default"project"
query_data - Query Table Data
Query memory tables with filtering and pagination.
Parameters:
table(required): Table nameconditions(optional): WHERE conditions objectlimit(optional): Maximum rows to returnoffset(optional): Number of rows to skiporderBy(optional): Column to sort byorderDirection(optional): Sort direction ("ASC" or "DESC")database(optional):"project"or"central", default"project"
insert_data - Insert Records
Insert records into a memory table.
Parameters:
table(required): Table namerecords(required): Array of record objects to insertdatabase(optional):"project"or"central", default"project"
update_data - Update Records
Update records in a memory table.
Parameters:
table(required): Table nameconditions(required): WHERE conditions for records to updateupdates(required): Fields to updatedatabase(optional):"project"or"central", default"project"
delete_data - Delete Records
Delete records from a memory table.
Parameters:
table(required): Table nameconditions(required): WHERE conditions for records to deletedatabase(optional):"project"or"central", default"project"
import_data - Import Data
Import data from CSV or JSON file into a memory table.
Parameters:
table(required): Target table namefilePath(required): Path to source fileformat(optional): File format ("csv" or "json")options(optional): Import options (delimiter, hasHeader)database(optional):"project"or"central", default"project"
export_data - Export Data
Export memory table data to CSV or JSON file.
Parameters:
table(required): Source table namefilePath(required): Output file pathformat(optional): Output format ("csv" or "json")conditions(optional): WHERE conditions to filter exportoptions(optio
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
80.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
72.4k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
72.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
career-ops
71.5kOpen-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)
