Skip to main content
Glama

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

Related MCP server: MCP-Mem0

Prerequisites

  1. Node.js and npm installed

  2. Mem0 API key (get one from mem0.ai)

Installation

npm install

Configuration

Set your Mem0 API key as an environment variable:

export MEM0_API_KEY=your-api-key-here

Building

npm run build

Running the Server

npm start

Testing

Run the test client to verify server functionality:

npm test

API

Tools

  1. create-memory-stream

    • Parameters:

      • name: string

      • initialContent: string (optional)

      • userId: string (optional) - Mem0 user ID

      • agentId: string (optional) - Mem0 agent ID

    • Returns: Stream ID and metadata

  2. append-to-stream

    • Parameters:

      • streamId: string

      • content: string

      • role: "user" | "assistant" (optional)

    • Returns: Success confirmation

  3. search-memories

    • Parameters:

      • query: string

      • userId: string

      • agentId: string (optional)

      • threshold: number (optional)

    • Returns: Search results from Mem0

  4. read-stream

    • Parameters:

      • streamId: string

      • startIndex: number (optional)

      • endIndex: number (optional)

    • Returns: Stream content

  5. delete-stream

    • Parameters:

      • streamId: string

    • Returns: Deletion confirmation

Resources

  • memory://{streamId} - Access memory stream content directly

  • memory:// - 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:

  1. Add more Mem0 features (e.g., memory tagging, metadata)

  2. Implement proper error handling

  3. Add authentication and authorization

  4. Add additional memory operations

License

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    A TypeScript implementation of a Model Context Protocol server that provides a frictionless framework for developers to build and deploy AI tools and prompts, focusing on developer experience with zero boilerplate and automatic tool registration.
    2,504
    14
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    A 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.
    16
    MIT
  • -
    license
    -
    quality
    -
    maintenance
    A TypeScript implementation of a Model Context Protocol server that enables real-time communication with LLM clients using Server-Sent Events (SSE) for transport and Bearer Token authentication for security.

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

  • MCP (Model Context Protocol) server for Appwrite

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sadiuysal/mem0-mcp-server-ts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server