Skip to main content
Glama
Omi Memories MCP Server

Omi Memories MCP Server

Omi Memories MCP 服务器

这是一个模型上下文协议 (MCP) 服务器,通过工具界面为特定用户提供对 Omi 内存的访问。

特征

  • 用于从 OMI App 获取指定用户 ID 的所有记忆的工具

Related MCP server: MCP-Mem0

设置

  1. 安装依赖项:

npm install
  1. 配置您的用户 ID:

    • 打开src/server.ts

    • 使用 Omira 应用程序的“帐户”部分中的用户 ID 更新SPECIFIC_USER_ID常量

  2. 构建 TypeScript 代码:

npm run build
  1. 启动服务器:

npm start

可用工具

获取记忆

获取已配置用户 ID 的所有记忆。

import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";

const transport = new StdioClientTransport({
  command: "node",
  args: ["dist/server.js"]
});

const client = new Client(
  {
    name: "example-client",
    version: "1.0.0"
  },
  {
    capabilities: {
      tools: {}
    }
  }
);

await client.connect(transport);

// Fetch memories using the tool
const result = await client.callTool({
  name: "fetch-memories",
  arguments: {}
});
console.log(result.content[0].text);

配置

服务器期望:

  1. Express API 将在http://localhost:3000上运行

  2. 应配置用户 ID:将src/server.ts中的SPECIFIC_USER_ID常量更新为您可以从 Omira 应用程序的帐户部分获取的用户 ID。

Claude 桌面集成

要与 Claude Desktop 集成,请更新您的 Claude Desktop 配置( claude_desktop_config.json )以包含以下内容:

{
  "mcpServers": {
    "omi-mcp": {
      "command": "node",
      "args": [
        "/path/to/your/mcp-server/dist/server.js"
      ],
      "env": {
        "NODE_ENV": "development"
      }
    }
  }
} 

Cursor IDE 集成

要与 Cursor IDE 集成:

  1. 打开 Cursor IDE 设置

  2. 导航至“AI 和 Copilot”设置

  3. 在“模型上下文协议”下,使用以下设置添加一个新的 MCP 服务器:

{
  "name": "Omi Memories",
  "command": "node",
  "args": [
    "/path/to/your/mcp-server/dist/server.js"
  ],
  "cwd": "/path/to/your/mcp-server",
  "env": {
    "NODE_ENV": "development"
  }
}

将/path/to/your/mcp-server替换为 MCP 服务器安装目录的实际路径。

Available Tools

1 tool
fetch-memoriesD

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    D1.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'fetch-memories' stands alone with a distinct purpose, making disambiguation trivial.

    Naming Consistency5/5

    The single tool name 'fetch-memories' follows a clear verb_noun pattern. Since there is only one tool, consistency is inherently perfect with no deviations or mixed conventions to evaluate.

    Tool Count2/5

    A single tool is too few for a server named 'Omi Memories MCP Server', which suggests a domain involving memory storage or retrieval. This minimal set likely leaves significant functionality uncovered, making it inappropriate for the implied scope.

    Completeness2/5

    Inferred from the server name and tool name, the domain involves memories, but with only a fetch operation, there are obvious gaps such as creating, updating, deleting, or searching memories. This severely incomplete surface will cause agent failures in handling memory lifecycles.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers