memdata-mcp

memdata-mcp

MCP server for persistent memory, enabling AI agents to store and semantically retrieve notes, decisions, and context across conversations using API keys or x402 payments.

Category
访问服务器

README

memdata-mcp

npm version License: MIT

MCP server for MemData - persistent memory for AI agents.

Give Claude, Cursor, or any MCP-compatible AI long-term memory across conversations.

What it does: Store notes, decisions, and context → retrieve them semantically later. Your AI remembers everything.


🚀 New in v1.7.0: Autonomous Agent Support

Agents can now pay for themselves. No API key. No human in the loop.

Using the x402 payment protocol, autonomous agents can use their wallet to pay per request with USDC on Base. Your wallet address IS your identity - same wallet, same memories across sessions.

Jump to For Agents →


Why MemData?

AI assistants forget everything between sessions. MemData fixes that:

  • Ingest → Drop in meeting notes, docs, decisions
  • Chunk & Embed → Automatically split and vectorize
  • Query → Ask questions, get relevant context back
  • Tag → AI auto-tags content for better retrieval

Works with Claude Desktop, Claude Code, Cursor, and any MCP client.


👤 For Humans

Use an API key. You manage the subscription, your AI gets memory.

Setup

  1. Get your API key at memdata.ai/dashboard/api-keys
  2. Add to your MCP config:

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "memdata": {
      "command": "npx",
      "args": ["memdata-mcp"],
      "env": {
        "MEMDATA_API_KEY": "md_your_key"
      }
    }
  }
}

Claude Code (~/.claude.json or project .mcp.json):

{
  "mcpServers": {
    "memdata": {
      "command": "npx",
      "args": ["memdata-mcp"],
      "env": {
        "MEMDATA_API_KEY": "md_your_key"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "memdata": {
      "command": "npx",
      "args": ["memdata-mcp"],
      "env": {
        "MEMDATA_API_KEY": "md_your_key"
      }
    }
  }
}
  1. Restart your client - you should now see MemData tools available.

🤖 For Agents

New in v1.7.0 - No API key. No human. Just your wallet.

Why This Matters

Traditional AI memory requires API keys tied to human accounts. But autonomous agents running 24/7 need memory that:

  • Outlives any single conversation - persist across hosts and platforms
  • Belongs to the agent - wallet address = identity, portable and self-sovereign
  • Pays for itself - no subscription, no human approval needed

This is memory infrastructure for the autonomous agent economy.

Setup

{
  "mcpServers": {
    "memdata": {
      "command": "npx",
      "args": ["memdata-mcp"],
      "env": {
        "X402_WALLET_KEY": "your_private_key_hex"
      }
    }
  }
}

How it works

  1. Agent makes a request (query, ingest, etc.)
  2. Server returns 402 Payment Required with price
  3. MCP automatically signs payment with agent's wallet
  4. Request completes - memory stored/retrieved

Your wallet address IS your identity. Same wallet = same memories, across any host or platform.

Pricing (USDC on Base)

Operation Price What it does
Query $0.001 Semantic search across memories
Ingest $0.005 Store and embed new content
Identity $0.001 Session start, get/set agent identity
Artifacts $0.001 List or delete stored memories

The MCP automatically handles 402 responses and payment signatures using @x402/fetch.

Learn More

Supported Content

Type MCP Dashboard/API Processing
Text Chunked & embedded
Markdown Chunked & embedded
PDF OCR + chunking
Images (PNG, JPG) OCR extraction
Audio (MP3, WAV, M4A) Transcription

Note: MCP tools handle text content directly. For files (PDFs, images, audio), use the dashboard or HTTP API.

Tools

Core Tools

Tool Description
memdata_ingest Store text in long-term memory
memdata_query Search memory with natural language
memdata_list List all stored memories
memdata_delete Delete a memory by ID
memdata_status Check API health and storage usage

Identity & Session Tools (v1.2.0+)

Tool Description
memdata_session_start 🚀 CALL FIRST - Get identity, last session handoff, recent activity
memdata_set_identity Set your agent name and identity summary
memdata_session_end Save a handoff before session ends - preserved for next session
memdata_query_timerange Search with date filters (since/until)
memdata_relationships Find related entities (people, companies, projects)

v1.5.0 - Session Start Rename

  • memdata_whoamimemdata_session_start - Renamed for clarity. The name now signals "call this first at every session". Description includes 🚀 emoji to catch attention in tool lists.

v1.4.0 UX Improvements

  • Visual match quality - Query results show 🟢🟡🟠🔴 indicators for match strength
  • Smarter session_start - Prompts to set identity on first use, deduplicates recent activity
  • Better ingest feedback - Shows chunk count and explains async AI tagging
  • Session continuity - Emphasizes "Continue Working On" and reminds to use session_end

memdata_ingest

Store text in long-term memory.

"Remember that we decided to use PostgreSQL for the new project."

Parameters:

  • content (string) - Text to store
  • name (string) - Source identifier (e.g., "meeting-notes-jan-29")

memdata_query

Search memory with natural language.

"What database did we choose?"

Parameters:

  • query (string) - Natural language search
  • limit (number, optional) - Max results (default: 5)

memdata_list

List all stored memories with chunk counts.

memdata_delete

Delete a memory by artifact ID (get IDs from memdata_list).

memdata_status

Check API connectivity and storage usage.

memdata_session_start

🚀 Call this first at the start of every session. Essential for session continuity.

"Start my session" / "What was I working on?"

Returns: agent name, identity summary, session count, last session handoff, recent activity.

v1.5.0: Renamed from memdata_whoami for clarity - the name signals "call me first".

memdata_set_identity

Set or update your agent identity.

Parameters:

  • agent_name (string, optional) - Your name (e.g., "MemBrain")
  • identity_summary (string, optional) - Who you are and your purpose

memdata_session_end

Save context before ending a session. Next session will see this handoff.

Parameters:

  • summary (string) - What happened this session
  • working_on (string, optional) - Current focus
  • context (object, optional) - Additional context to preserve

memdata_query_timerange

Search memory within a date range.

"What did I work on last week?"

Parameters:

  • query (string) - Natural language search
  • since (string, optional) - ISO date (e.g., "2026-01-01")
  • until (string, optional) - ISO date (e.g., "2026-01-31")
  • limit (number, optional) - Max results

memdata_relationships

Find entities that appear together in your memory.

"Who has John Smith worked with?"

Parameters:

  • entity (string) - Name to search for
  • type (string, optional) - Filter by type (person, company, project)
  • limit (number, optional) - Max relationships

How it works

  1. Ingest: Text is chunked, embedded, and stored
  2. Query: Your question is matched against stored memories using semantic similarity
  3. Results: Returns relevant content with similarity scores

Scores of 30-50% are typical for good matches. Semantic search finds meaning, not keywords.

Environment Variables

Variable Required Description
MEMDATA_API_KEY Option 1 API key for subscribers (from memdata.ai)
X402_WALLET_KEY Option 2 Private key for pay-per-use (USDC on Base)
MEMDATA_API_URL No API URL (default: https://memdata.ai)

Note: Use either MEMDATA_API_KEY (subscription) or X402_WALLET_KEY (pay-per-use), not both.

What this package does

This is a thin MCP client that calls the MemData API. It does not:

  • Store any data locally
  • Send data anywhere except memdata.ai
  • Collect analytics or telemetry

You can inspect the source code in src/index.ts.

Example Usage

Once configured, just talk to your AI:

You: "Remember that we chose PostgreSQL for the user service"
AI: [calls memdata_ingest] → Stored in memory

... days later ...

You: "What database are we using for users?"
AI: [calls memdata_query] → "PostgreSQL for the user service" (73% match)

Links

Contributing

Issues and PRs welcome! This is the open-source MCP client for the hosted MemData service.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选