Skip to main content
Glama

Zep MCP Server

Simple MCP server that wraps Zep Cloud API (v3) for use with Claude Code.

Enables Claude Code to store and retrieve memories using Zep's thread-based memory system.

Installation

git clone https://github.com/yourusername/zep-mcp-server.git
cd zep-mcp-server
npm install
npm run build

Related MCP server: Fuzzy Memory MCP Server

Configuration

Add to your ~/.claude.json:

{
  "mcpServers": {
    "zep": {
      "command": "node",
      "args": ["/absolute/path/to/zep-mcp-server/dist/index.js"],
      "env": {
        "ZEP_API_KEY": "z_your_zep_api_key"
      }
    }
  }
}

Get your Zep API key from https://www.getzep.com

Usage

Three tools available in Claude Code:

zep_store_memory

Store information in a Zep session.

zep_search_memory

Search for information in a Zep session.

zep_get_memory

Get recent memories from a session with pagination and filtering support.

Parameters:

  • session_id (required): Thread/Session ID to retrieve

  • lastn (optional): Number of most recent messages to return (e.g., 50, 100, 200)

  • limit (optional): Limit the number of results returned (alternative to lastn)

  • cursor (optional): Cursor for pagination (used with limit)

  • role_filter (optional): Filter by message role: "user", "assistant", or "system"

Examples:

# Get last 50 messages from a large session
zep_get_memory(session_id="esme", lastn=50)

# Get only assistant messages
zep_get_memory(session_id="esme", lastn=100, role_filter="assistant")

# Use cursor-based pagination
zep_get_memory(session_id="esme", limit=50, cursor=0)

Thread/Session Naming Convention

  • Global knowledge: global

  • Project-specific: project-{name}

  • User-specific: user-{username}

Note: This server uses Zep Cloud v3 API which uses "threads" instead of "sessions". The tools still accept session_id for backwards compatibility.

Example

Store in session 'global':
Title: Building Multi-Agent Systems
Content: [article content]

License

MIT

F
license - not found
-
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
    Provides long-term memory capabilities for Claude through persistent storage and full-text search of context across conversations. Enables storing, searching, and managing memories organized by categories like facts, preferences, projects, and goals.
    Last updated
    10
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables Claude to maintain persistent memory across conversations using a local knowledge graph with fuzzy search capabilities, allowing it to remember and recall information about users, relationships, and context.
    Last updated
    9
  • A
    license
    A
    quality
    D
    maintenance
    Provides persistent memory for Claude with hierarchical categorization, cross-corpus recall, session journals, and customizable persona, enabling memory continuity across sessions.
    Last updated
    7
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Persistent memory management for AI assistants like Claude, enabling creation, search, and retrieval of memories with tagging and triggers.
    Last updated
    MIT

View all related MCP servers

Related MCP Connectors

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

  • One memory, every AI: Claude, ChatGPT, Perplexity, Gemini, Cursor, OpenClaw, Hermes, any MCP client.

  • Persistent memory for AI agents. Search, store, and recall across sessions.

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/wastrilith2k/zep-mcp-server'

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