Cover image
Try Now
2025-03-23

Une implémentation de typeScript du serveur MEM0 MCP pour l'intégration avec divers outils comme Smithery, Cursor, etc.

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

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

  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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

  • deemkeen
  • Contrôlez votre MBOT2 avec un combo d'alimentation: MQTT + MCP + LLM

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

    Reviews

    3 (1)
    Avatar
    user_eDGlrVFM
    2025-04-15

    I've been using the Hologres MCP Server for a while, and it's truly impressive. The integration process was seamless, and its performance meets my expectations perfectly. The documentation provided by MCP-Mirror was excellent, ensuring a smooth experience. Highly recommended for anyone needing a robust server solution!