johnlam90/cf-memory-mcp
If you are the rightful owner of cf-memory-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
CF Memory MCP is a portable Model Context Protocol server designed for AI memory storage using Cloudflare infrastructure.
store_memory
Store a new memory with optional metadata and tags.
search_memories
Search memories by content and tags.
retrieve_memory
Retrieve a specific memory by ID.
CF Memory MCP
A portable MCP (Model Context Protocol) server for AI memory storage using Cloudflare infrastructure. This package allows AI coding agents to store, retrieve, and search memories using a production-ready, serverless backend.
š Quick Start
# Run directly with npx (no installation required)
npx cf-memory-mcp
# Or install globally
npm install -g cf-memory-mcp
cf-memory-mcp
⨠Features
- š Completely Portable - No local setup required, connects to deployed Cloudflare Worker
- ā” Production Ready - Uses Cloudflare D1 database and KV storage for reliability
- š§ Zero Configuration - Works out of the box with any MCP client
- š Cross Platform - Supports Windows, macOS, and Linux
- š¦ NPX Compatible - Run instantly without installation
- š Secure - Built on Cloudflare's secure infrastructure
- š Fast - Global edge deployment with KV caching
š ļø Usage
With MCP Clients
Add to your MCP client configuration:
{
"mcpServers": {
"cf-memory": {
"command": "npx",
"args": ["cf-memory-mcp"]
}
}
}
With Augment
Add to your augment-config.json
:
{
"mcpServers": {
"cf-memory": {
"command": "npx",
"args": ["cf-memory-mcp"]
}
}
}
With Claude Desktop
Add to your Claude Desktop MCP configuration:
{
"mcpServers": {
"cf-memory": {
"command": "npx",
"args": ["cf-memory-mcp"]
}
}
}
š§ Available Tools
The CF Memory MCP server provides three main tools:
store_memory
Store a new memory with optional metadata and tags.
Parameters:
content
(string, required) - The memory contenttags
(array, optional) - Tags for categorizationimportance_score
(number, optional) - Importance score 0-10metadata
(object, optional) - Additional metadata
search_memories
Search memories by content and tags.
Parameters:
query
(string, optional) - Full-text search querytags
(array, optional) - Filter by specific tagslimit
(number, optional) - Maximum results (default: 10)offset
(number, optional) - Results offset (default: 0)min_importance
(number, optional) - Minimum importance score
retrieve_memory
Retrieve a specific memory by ID.
Parameters:
id
(string, required) - The unique memory ID
š Architecture
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāā
ā MCP Client ā ā cf-memory-mcp ā ā Cloudflare Worker ā
ā (Augment, āāāāāŗā (npm package) āāāāāŗā (Production API) ā
ā Claude, etc.) ā ā ā ā ā
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāāāāāāāāā
ā Cloudflare D1 DB ā
ā + KV Storage ā
āāāāāāāāāāāāāāāāāāāāāāā
š§ Command Line Options
# Start the MCP server
npx cf-memory-mcp
# Show version
npx cf-memory-mcp --version
# Show help
npx cf-memory-mcp --help
# Enable debug logging
DEBUG=1 npx cf-memory-mcp
š Environment Variables
DEBUG=1
- Enable debug loggingMCP_DEBUG=1
- Enable MCP-specific debug logging
š Requirements
- Node.js 16.0.0 or higher
- Internet connection (connects to Cloudflare Worker)
- MCP client (Augment, Claude Desktop, etc.)
š Why CF Memory MCP?
Traditional Approach ā
- Clone repository
- Set up local database
- Configure environment variables
- Manage local server process
- Handle updates manually
CF Memory MCP ā
- Run
npx cf-memory-mcp
- That's it! š
š Privacy & Security
- No local data storage - All data stored securely in Cloudflare D1
- HTTPS encryption - All communication encrypted in transit
- Edge deployment - Data replicated globally for reliability
- No API keys required - Public read/write access for simplicity
š¤ Contributing
Contributions are welcome! Please see the GitHub repository for more information.
š License
MIT License - see file for details.
š Links
- GitHub Repository: https://github.com/johnlam90/cf-memory-mcp
- npm Package: https://www.npmjs.com/package/cf-memory-mcp
- Issues: https://github.com/johnlam90/cf-memory-mcp/issues
- MCP Specification: https://modelcontextprotocol.io/
Made with ā¤ļø by John Lam