Facilitates secure storage and management of database credentials and secrets for production deployments.
Supports managing application secrets and database credentials through HashiCorp Vault integration.
Allows for the management of application secrets within the server environment using Kubernetes Secrets.
Uses Neo4j as the primary graph database for storing, visualizing, and querying conversation contexts and their relationships.
Provides optional API support for semantic search within the context storage system.
Integrates with HashiCorp Vault to securely store and retrieve configuration secrets such as database passwords.
Click on "Install 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., "@Persistent Context MCPSearch my memory for the project requirements we discussed last week."
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.
@corbyjames/persistent-context-mcp
AI memory management and context persistence system with Model Context Protocol (MCP) server for Claude Desktop and other AI assistants.
π Features
Persistent Context Storage: Store and retrieve conversation contexts using Neo4j graph database
MCP Server Integration: Full compatibility with Claude Desktop via Model Context Protocol
Web UI: Interactive dashboard for managing contexts and visualizing relationships
Multi-Storage Support: Neo4j for graph relationships, file system for backups
AI Integration: Optional OpenAI/Anthropic API support for semantic search
Docker/Podman Support: Containerized deployment options
CLI Tool: Global command-line interface for easy management
π Quick Start
Installation
Initialize Configuration
Start Services
π§ Claude Desktop Integration
Automatic Setup
This will automatically configure Claude Desktop to use the MCP server.
Manual Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Note: Restart Claude Desktop after configuration.
π³ Docker/Podman Deployment
Using Docker
Using Podman
Pre-built Docker Image
π Configuration
Environment Variables
Create a .env file in your project directory:
Secrets Management
For production deployments, we recommend storing secrets using:
AWS Secrets Manager
aws secretsmanager create-secret \ --name persistent-context/neo4j \ --secret-string '{"password":"secure-password"}'Azure Key Vault
az keyvault secret set \ --vault-name mykeyvault \ --name neo4j-password \ --value "secure-password"HashiCorp Vault
vault kv put secret/persistent-context \ neo4j_password="secure-password"Kubernetes Secrets
kubectl create secret generic persistent-context \ --from-literal=neo4j-password=secure-password
π₯οΈ CLI Commands
Core Commands
Short Alias
You can also use the short alias pcmcp:
ποΈ Architecture
Components
MCP Server: Implements Model Context Protocol for AI assistants
Neo4j Database: Stores contexts as a knowledge graph
Web UI: React-based dashboard for visualization
CLI Tool: Command-line interface for management
π MCP Tools Available
When integrated with Claude Desktop, the following tools are available:
save_context
Save a new context to the persistent store.
search_contexts
Search for contexts using semantic or keyword search.
generate_template
Generate a context template for specific use cases.
π Web UI Features
Access the web UI at http://localhost:5173 (when running with --ui flag):
Dashboard: Overview of stored contexts and statistics
Context Browser: Search and browse all contexts
Graph Visualization: Interactive knowledge graph
Templates: Pre-built context templates
Analytics: Usage patterns and insights
Settings: Configuration management
π Security Considerations
Default Credentials: Change default Neo4j password immediately
Network Security: Use TLS/SSL in production
Access Control: Implement authentication for web UI
Data Encryption: Enable encryption at rest for Neo4j
Secrets Management: Use proper secret vaults in production
π§ͺ Testing
π¦ Building from Source
π€ Contributing
Contributions are welcome! Please read our Contributing Guide for details.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Anthropic for Claude and MCP protocol
Neo4j for the graph database
IBM TargetProcess for project management inspiration
Open source community for various dependencies
π Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Email: corby.james@example.com
πΊοΈ Roadmap
Multi-user support with authentication
Cloud deployment templates (AWS, Azure, GCP)
Additional AI model integrations
Export/Import functionality
Context versioning and history
Collaborative context editing
Mobile app support
Made with β€οΈ by Corby James