Skip to content
Back to skills

Memos Search

ASecurity

"Use MemOS API for memory operations. Use when: (1) user asks to

  • 21 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill memos-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memos Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memos Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-memos-search/badge)](https://www.skillsdirectory.com/skills/modbender-memos-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: memos
description: "Use MemOS API for memory operations. Use when: (1) user asks to
  save/store/remember something to memory, (2) user asks to read/retrieve
  memory, (3) user wants to list/delete memory files, (4) replacing OpenClaw's
  default memory with MemOS."
---


# MemOS - External Memory Service

MemOS provides persistent memory storage via REST API.

## API Base URL
```
{{MEMOS_API_URL}}
```

## Available Endpoints

### Add Memory
```bash
POST /add
Body: {"content": "...", "source": "agent/filename.md"}
```

### Read Memory
```bash
GET /read/{agent}/{filename}
```

### List Memories
```bash
GET /memories
```

### Search Memories
```bash
POST /search
Body: {"query": "...", "top_k": 3}
```

### Delete Memory
```bash
DELETE /delete/{agent}/{filename}
```

### List Agents
```bash
GET /agents
```

### Health Check
```bash
GET /health
```

## Usage Examples

**Add memory:**
```python
import requests
requests.post('{{MEMOS_API_URL}}/add', json={
    'content': '咖啡大佬今天教我使用MemOS',
    'source': 'alin/2026-02-23.md'
})
```

**Read memory:**
```python
import requests
r = requests.get('{{MEMOS_API_URL}}/read/alin/2026-02-23.md')
print(r.json()['content'])
```

**Search memory:**
```python
import requests
r = requests.post('{{MEMOS_API_URL}}/search', json={
    'query': '咖啡大佬教了什么',
    'top_k': 3
})
for item in r.json():
    print(f"{item['source']}: {item['score']}")
```

**Delete memory:**
```python
import requests
requests.delete('{{MEMOS_API_URL}}/delete/alin/2026-02-23.md')
```

**List all agents:**
```python
import requests
r = requests.get('{{MEMOS_API_URL}}/agents')
for agent in r.json()['agents']:
    print(f"{agent['name']}: {agent['file_count']} files")
```

## Notes

- Use Python `requests` library for API calls
- Always use `json=` parameter (not raw body) for POST requests
- File path format: `{agent}/{filename}.md`
- API returns JSON with `content` field for read operations
- Delete removes both file and vector index
- Run MemOS server: `python D:\AI\MemOS\api_server.py`

Files in this skill

  • SKILL.md2.1 KB
  • env.json50 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.