Provides the runtime environment for the MCP server implementation.
Used for package management and running scripts for the MCP server.
Implements the Model Context Protocol server using TypeScript for type safety and modern JavaScript features.
mem0 MCP Server
A TypeScript implementation of the Model Context Protocol (MCP) server for mem0, providing memory stream functionality with Mem0 integration.
Features
Create memory streams with Mem0 integration
Append content to memory streams
Search memories using Mem0's semantic search
Read from memory streams
Resource-based access to memory streams
Delete memory streams
Prerequisites
Node.js and npm installed
Mem0 API key (get one from mem0.ai)
Installation
Configuration
Set your Mem0 API key as an environment variable:
Building
Running the Server
Testing
Run the test client to verify server functionality:
API
Tools
create-memory-stream
Parameters:
name
: stringinitialContent
: string (optional)userId
: string (optional) - Mem0 user IDagentId
: string (optional) - Mem0 agent ID
Returns: Stream ID and metadata
append-to-stream
Parameters:
streamId
: stringcontent
: stringrole
: "user" | "assistant" (optional)
Returns: Success confirmation
search-memories
Parameters:
query
: stringuserId
: stringagentId
: string (optional)threshold
: number (optional)
Returns: Search results from Mem0
read-stream
Parameters:
streamId
: stringstartIndex
: number (optional)endIndex
: number (optional)
Returns: Stream content
delete-stream
Parameters:
streamId
: string
Returns: Deletion confirmation
Resources
memory://{streamId}
- Access memory stream content directlymemory://
- List all memory streams
Development
The server is implemented using the MCP TypeScript SDK and provides integration with Mem0 for persistent memory storage and semantic search. To extend the implementation:
Add more Mem0 features (e.g., memory tagging, metadata)
Implement proper error handling
Add authentication and authorization
Add additional memory operations
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A TypeScript implementation of the Model Context Protocol server that enables creation, management, and semantic search of memory streams with Mem0 integration.
Related MCP Servers
- AsecurityFlicenseAqualityA TypeScript-based template for developing Model Context Protocol servers with features like dependency injection and service-based architecture, facilitating the creation and integration of custom data processing tools.Last updated -124
- -securityFlicense-qualityA TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.Last updated -0
- -securityFlicense-qualityA starter template for creating Model Context Protocol servers using TypeScript, providing basic setup and sample tool implementation for developers to build their own MCP servers.Last updated -
- -securityAlicense-qualityA Model Context Protocol server that integrates AI assistants with Mem0.ai's persistent memory system, allowing models to store, retrieve, search, and manage different types of memories.Last updated -12MIT License