Memwyre
Memwyre는 AI 에이전트를 위한 MCP 네이티브 영구 메모리 레이어로, Claude Code, Cursor, VS Code, OpenClaw 전반에 걸쳐 컨텍스트와 프로젝트 결정을 동기화합니다. 주요 특징: - 73% LoCoMo 정확도: Long-Context Memory 벤치마크에서 73.1% 검색 정확도를 달성하여 기존 RAG를 능가합니다. - 검색 품질 아키텍처: 하이브리드 벡터 검색, BM25 키워드 매칭, 크로스 인코더 재순위화를 사용하여 컨텍스트 비대화를 제거합니다. - 영구 격리 볼트: 엄격한 작업공간 수준 격리를 갖춘 멀티 테넌트 메모리 저장소. - 핵심 도구: search_memwyre, save_memory, list_memories를 제공하여 모든 세션에서 구조화된 사실을 저장하고 회상합니다.
문서
Universal MCP Server Guide
Universal guide to connecting Memwyre to Model Context Protocol (MCP) clients like Claude Desktop, Cursor, and VS Code.
Overview
The Model Context Protocol is an open standard that connects AI systems with external tools and data sources. By running the Memwyre MCP Server locally, you give your IDE or agent (Claude Desktop, Cursor, VS Code, etc.) direct access to your centralised memory — no more copy-pasting context manually.
Prerequisites
Before you begin, make sure you have:
- Python 3.10+ installed on your machine.
- Your
MEMWYRE_API_KEY— generate one from Settings → API Keys in the Memwyre web app. - The
mcp_server.pyscript downloaded to a permanent location on your hard drive.
Connection Protocols
Memwyre supports two connection protocols for Model Context Protocol (MCP):
- Remote HTTP Tunneling (Recommended): Utilizes the
mcp-remoteutility to tunnel commands to our secure cloud endpoint (https://server.memwyre.tech/mcp). - Local Python Execution: Runs the
mcp_server.pyfile locally on your machine using Python, executing local SQLite vector updates.
Setup Configurations
1. Claude Desktop (Remote)
Add this server block to your Claude configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"memwyre": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://server.memwyre.tech/mcp", "--header", "Authorization:Bearer your_token_here"]
}
}
}
2. VS Code & Cursor (Remote)
In your IDE settings panel, register the MCP server as:
- Command:
npx - Args:
["-y", "mcp-remote", "https://server.memwyre.tech/mcp", "--header", "Authorization:Bearer your_token_here"]
3. Local Python Script Setup
If running fully self-hosted, download mcp_server.py and invoke it directly:
{
"mcpServers": {
"memwyre-local": {
"command": "python",
"args": ["/absolute/path/to/mcp_server.py"],
"env": {
"MEMWYRE_API_KEY": "your_api_key_here"
}
}
}
}
Available Tools
Once connected, your IDE or agent will have access to the following tools:
search\_memwyre (Primary Search)
The most important tool for retrieving context. It performs a semantic search across your entire vault.
- Parameters:
query(Required): Your search terms or question.purpose(Optional): Hint for context formatting. Options:general,code, orsummary.
save\_memory (Capture Context)
Save new information or notes directly into your Memwyre Inbox.
- Parameters:
text(Required): The content you want to save.tags(Optional): A list of tags to categorize the memory (e.g.["project-x", "todo"]).source(Optional): Origin of the memory (defaults tomcp).
approve\_memory (Approve Ingestion)
Approve a pending memory in the Inbox and begin its ingestion process.
- Parameters:
memory_id(Required): The ID of the memory, starting withmem_(e.g.mem_123).
discard\_memory (Discard from Inbox)
Discard a pending memory from the Inbox.
- Parameters:
memory_id(Required): The ID of the memory, starting withmem_(e.g.mem_123).
generate\_prompt (Prompt Engineering)
Retrieves relevant context and wraps it in a pre-formatted prompt for an LLM.
- Parameters:
query(Required): The topic to generate a prompt for.template(Optional): The prompt structure. Options:standard,code, orsummary.
get\_document (Full Text Retrieval)
Retrieve the entire content of a specific document (PDF, Doc, or Web Page) by its ID.
- Parameters:
doc_id(Required): The numeric ID of the document (e.g.123).
list\_memories (Discovery)
List the most recent memories and documents added to your vault.
- Parameters:
limit(Optional): Number of items to return (default: 10).offset(Optional): Pagination offset.
get\_inbox (Pending Review)
Lists all memories currently in your "Inbox" status that are awaiting review or confirmation.
update\_memory (Edit)
Update the content of an existing memory snippet.
- Parameters:
memory_id(Required): The ID of the memory, starting withmem_(e.g.mem_45).content(Required): The new text content.
delete\_memory (Cleanup)
Permanently remove a memory or document from your vault.
- Parameters:
memory_id(Required): The ID of the item, starting withmem_ordoc_(e.g.doc_12).
search\_by\_date (Chronological Search)
Find memories created within a specific timeframe.
- Parameters:
start_date(Required): Start date inYYYY-MM-DDformat.end_date(Optional): End date inYYYY-MM-DDformat.
get\_all\_tags (Taxonomy)
Retrieve a comprehensive list of all tags currently used across your entire memory vault.
Troubleshooting
Claude Desktop doesn't show the Memwyre tools.
Check that the command path resolves correctly — try python3 instead of python on macOS/Linux if deploying local scripts, or confirm your npx command executes correctly in your shell.
MEMWYRE_API_KEY environment variable not found.
For local server python deployments, ensure the key is set inside the env block of your config file, not as a system environment variable. For remote instances, ensure your Bearer token in the header argument is valid.