Memos Api MCP Server

A Model Context Protocol (MCP) implementation for the [MemOS](https://github.com/MemTensor/MemOS) API service. This package provides a command-line

Local serverstdioTypeScript

What is the Memos Api MCP MCP server?

Most knowledge and memory work still happens through a UI a human drives. Memos Api MCP MCP server moves it into the conversation instead. A Model Context Protocol (MCP) implementation for the MemOS API service. This package provides a command-line interface to interact with MemOS API using MCP standards.

The short version

  • MCP-compliant API interface
  • Command-line tool for easy interaction
  • Built with TypeScript for type safety
  • Express.js server implementation
  • Zod schema validation

The tools it exposes

The server publishes 14 tools. What each one is for:

  • Parameters — - conversation_id: Unique identifier of the conversation associated with the feedback
  • messages — Array of messages containing role and content information
  • role — Role of the message sender (user or assistant)
  • content — Message content
  • chat_time — (Optional) Message timestamp
  • filter — (Optional) Filter conditions, used to precisely limit the memory scope before retrieval
  • knowledgebase_ids — (Optional) Array specifying the knowledge bases to search
  • include_preference — (Optional) Enable preference memory recall. Default: true
  • preference_limit_number — (Optional) Max preference memories to return. Default: 9, max 25
  • include_tool_memory — (Optional) Enable tool memory recall. Default: false
  • tool_memory_limit_number — (Optional) Max tool memories to return. Default: 6, max 25
  • include_skill — (Optional) Enable Skill recall. Default: false

What it needs from you

Configuration is passed through the environment: MEMOS_API_KEY, MEMOS_USER_ID, MEMOS_CHANNEL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js >= 18 - npm or pnpm (recommended)

Getting it running

The server ships on npm as @memtensor/memos-api-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

This sits in the knowledge and memory group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Memos Api MCP's toolset — Parameters, messages, role and 11 more — is a fair guide to whether it matches your workflow. It is maintained by memtensor; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Memos Api MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
Parameters- conversation_id: Unique identifier of the conversation associated with the feedback.
messagesArray of messages containing role and content information.
roleRole of the message sender (user or assistant).
contentMessage content.
chat_time(Optional) Message timestamp.
filter(Optional) Filter conditions, used to precisely limit the memory scope before retrieval.
knowledgebase_ids(Optional) Array specifying the knowledge bases to search.
include_preference(Optional) Enable preference memory recall. Default: true.
preference_limit_number(Optional) Max preference memories to return. Default: 9, max 25.
include_tool_memory(Optional) Enable tool memory recall. Default: false.
tool_memory_limit_number(Optional) Max tool memories to return. Default: 6, max 25.
include_skill(Optional) Enable Skill recall. Default: false.
skill_limit_number(Optional) Max Skills to return. Default: 6, max 25.
relativity(Optional) Relevance threshold (0-1) for recalled memories. A value of 0 disables relevance filtering.

How to install the Memos Api MCP MCP server

{
  "mcpServers": {
    "memos-api-mcp": {
      "command": "npx",
      "args": ["-y", "@memtensor/memos-api-mcp"],
      "env": {
        "MEMOS_API_KEY": "your-api-key",
        "MEMOS_USER_ID": "your-user-id",
        "MEMOS_CHANNEL": "the-site-where-you-are-seeing-this-document"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js >= 18 - npm or pnpm (recommended)
VariableDescriptionRequired
MEMOS_API_KEYCredential the server authenticates with.Yes
MEMOS_USER_IDConfiguration value read at startup.Optional
MEMOS_CHANNELConfiguration value read at startup.Optional

Example prompts to try

  • Use Memos Api MCP to Parameters.
  • Use Memos Api MCP to messages.
  • Use Memos Api MCP to role.

Frequently asked questions

It connects Memos Api MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Parameters, messages, role, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Memos Api MCP directly.