Semantic memory storage and retrieval with ChromaDB, sentence transformers, and cross-platform support
The Cloudflare Memory Server is an innovative MCP (Model Context Protocol) server designed to enhance and unify the interaction between various AI applications and data sources through a standardized protocol. By integrating with Cloudflare's powerful service, this server not only offers robust storage but also seamless embedding generation, making it a versatile backbone for diverse AI tools like Claude Desktop, Continue, and Cursor.
The primary goal of the Cloudflare Memory Server is to provide a scalable, cross-platform solution that simplifies data management and enhances the performance of AI applications by reducing complexity in their interactions with underlying resources. Utilizing serverless technology, this implementation ensures low latency access from anywhere while requiring minimal local infrastructure.
The Cloudflare Memory Server supports highly efficient storage and retrieval of user-generated content, metadata, and tags through an intuitive interface compatible with various AI applications. It leverages SQLite for seamless data management and ensures high performance even under heavy workloads.
By utilizing Workers AI, the server generates embeddings in real-time, which are crucial for enhancing search accuracy and contextual understanding in AI applications.
This implementation scales automatically with usage, ensuring efficient handling of multiple users without manual configuration. Additionally, it benefits from Cloudflare’s global network, providing low-latency access to all endpoints.
The Cloudflare Memory Server is architected to seamlessly integrate with the Model Context Protocol (MCP), enabling a unified interaction flow between the AI application and external data sources. The architecture consists of several key components:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[Cloudflare Worker]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
npx
), installed on your system.Clone the Repository
git clone https://github.com/doobidoo/mcp-memory-service.git
cd mcp-memory-service/cloudflare_worker
Install Wrangler CLI
npm install -g wrangler
Login to Cloudflare
wrangler login
Create a D1 Database & Worker Service
wrangler d1 create mcp_memory_service
wrangler d1 execute mcp_memory_service --local --file=./schema.sql
Deploy the Cloudflare Worker
wrangler deploy
Update Your Claude Configuration Add your worker URL to your AI client's configuration.
AI applications can store user-generated content and prompts, which are then used for generating more relevant and sophisticated responses. For instance, Claude Desktop might use this server to save and retrieve tailored prompts for personalized conversations or queries.
Example Workflow:
By leveraging real-time embedding generation through Workers AI, this server can enable semantic search functionalities where AI applications need to understand the intent behind user queries. This is particularly useful in generating intelligent responses based on previous interactions or knowledge bases.
Example Workflow:
The Cloudflare Memory Server is compatible with various MCP clients, including:
Claude Desktop
Continue
Cursor
This section details the performance and compatibility of the Cloudflare Memory Server with various MCP clients, ensuring seamless integration across different AI applications.
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ❌ (Limited) |
Cursor | ❌ | ✅ | ❌ |
{
"env": {
"WORKER_API_KEY": "<API Key from Cloudflare>"
}
}
Ensure that the server correctly handles cross-origin resource sharing (CORS) to allow seamless communication with different origins.
Q: How does this server handle large datasets?
Q: What security measures are in place?
Q: Can this server be used with custom APIs?
Q: How does real-time embedding generation work?
Q: Are there any limitations or known issues?
cloudflare_worker
: Primary server component.memory_wrapper.py
: Script for Windows clients.tests/
: Suite of test cases and integrations.cloudflare_worker
directory for most contributions.Join the community to share insights, ask questions, and collaborate on future developments.
By implementing the Cloudflare Memory Server, developers can significantly boost their AI applications’ performance and functionality while maintaining a streamlined development process.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods