Skip to main content
Glama

memoo-mcp

TypeScript MCP server for Memoo — knowledge graph RAG over the Memoo REST API.

Auth: API key only (moo_sk…). No JWT. No OAuth.

This package is the canonical Memoo MCP implementation. The Go gateway in the Memoo monorepo (api/cmd/mcp-gateway, npm @hinha/memoo) is deprecated for new installs.

Quick start

make install
make check          # typecheck + test
make build

# Stdio (Cursor / Claude / Codex) — recommended
make stdio ARGS='--memoo-base-url https://memoo.hinha.web.id --memo-namespace <uuid> --timeout 600s'

# Optional HTTP (Streamable HTTP, path fixed at /mcp)
make serve
# → http://127.0.0.1:8787/mcp

Or via npm:

npm install && npm run build
MEMOO_API_KEY=moo_sk_xxx npm run stdio -- \
  --memoo-base-url https://memoo.hinha.web.id \
  --memo-namespace 0b00322d-f6ed-45b7-a2e8-b7059f71de34 \
  --timeout 600s

Copy .env.example.env for local development. See make help for all targets.

Related MCP server: Crosmos MCP Server

Host compatibility (Cursor / Claude / Codex / OpenCode)

Primary transport is stdio via @modelcontextprotocol/sdk — the same shape as notion-bank-mcp and the deprecated Go gateway. All of these hosts work with command + args + env:

Host

Config location

Notes

Cursor

.cursor/mcp.json or Settings → MCP

Use mcp.json.example

Claude Desktop

claude_desktop_config.json

Same mcpServers JSON

Claude Code

project/user MCP settings

Stdio; install skill under .claude/skills/ if desired

Codex

MCP / tools config (stdio)

Same flags as Cursor

OpenCode

MCP server block (command/args/env)

Stdio recommended; HTTP url only if host supports Streamable HTTP

Compatible: stdio + Zod tool schemas + SERVER_INSTRUCTIONS on initialize.
HTTP (make serve/mcp): optional; requires Bearer moo_sk…. Prefer stdio for local agents.

Cursor / Claude / Codex / OpenCode config

Same flag shape as the legacy Go gateway. See mcp.json.example:

{
  "mcpServers": {
    "memoo": {
      "command": "node",
      "args": [
        "/Users/hinha/Projects/hinha/memoo-mcp/dist/index.js",
        "--memoo-base-url",
        "https://memoo.hinha.web.id",
        "--memo-namespace",
        "0b00322d-f6ed-45b7-a2e8-b7059f71de34",
        "--timeout",
        "600s"
      ],
      "env": {
        "MEMOO_API_KEY": "moo_sk_xxx"
      }
    }
  }
}

Or via env only (e.g. npx once published):

{
  "mcpServers": {
    "memoo": {
      "command": "npx",
      "args": ["-y", "memoo-mcp@latest"],
      "env": {
        "MEMOO_API_KEY": "moo_sk_xxx",
        "MEMOO_NAMESPACE": "0b00322d-f6ed-45b7-a2e8-b7059f71de34",
        "MEMOO_BASE_URL": "https://memoo.hinha.web.id",
        "MEMOO_TIMEOUT": "600s"
      }
    }
  }
}

Namespace resolution

--memo-namespace / MEMOO_NAMESPACE accepts a UUID or name.

On stdio boot the server calls GET /api/v1/namespaces/{id} (detail), resolves the canonical name, and uses that as the tool default. It does not call list-namespaces for setup.

When a default is configured, agents should omit namespace on tools and should not call memoo_list_namespaces unless the user asks to switch/list other namespaces.

CLI flags

Flag

Env

Description

--api-key

MEMOO_API_KEY

Required for stdio (moo_sk…)

--memo-namespace

MEMOO_NAMESPACE

Required for stdio (UUID or name)

--memoo-base-url

MEMOO_BASE_URL

Default https://memoo.hinha.web.id

--timeout

MEMOO_TIMEOUT

Go-style duration (600s, 5m) or ms

--timeout-ms

MEMOO_TIMEOUT_MS

Timeout in milliseconds

--api-key-prefix

MEMOO_API_KEY_PREFIX

Default moo_sk

HTTP-only: MEMOO_HOST / MEMOO_PORT (default 127.0.0.1:8787). MCP HTTP path is fixed at /mcp (not configurable). Optional MEMOO_ALLOWED_ORIGINS for CORS Origin allowlist.

Tools

Tool

Purpose

search / fetch

Host compatibility search / episode fetch

memoo_list_namespaces

List namespaces (only when discovering / switching)

memoo_list_episodes

List episodes

memoo_search

Filtered knowledge search

memoo_ask

RAG Q&A

memoo_graph_traverse

Graph hops from entity_uuid

memoo_temporal_query

Point-in-time query

memoo_create_episode

Always async → job_id (summarize first; word max = API plan episode_content_words)

memoo_get_job_status

Required after every create — poll until completed/failed

memoo_delete_episode

Delete episode

Resources

  • memoo://namespaces

  • memoo://health

  • memoo://episodes/{namespace}/{id}

HTTP serve

npm run serve
  • MCP endpoint: http://127.0.0.1:8787/mcp (fixed path)

  • Health: GET /health

  • Auth: Authorization: Bearer moo_sk… (or process env MEMOO_API_KEY)

Skills

MCP tools and skills are separate:

Piece

What it does

memoo-mcp (MCP server)

Registers tools (memoo_search, memoo_ask, …) the agent can call

Skill (SKILL.md)

Playbook that teaches the agent when/how to explore a Memoo namespace

The MCP protocol does not install skills. You copy the skill folder into your agent’s skills directory (or point the host at it).

Shipped skill:

skills/exploring-knowledge-graph/SKILL.md

Name / slash command: exploring-knowledge-graph → often invoked as /exploring-knowledge-graph.

Prerequisites

  1. Install and enable memoo-mcp (stdio config above) with a valid MEMOO_API_KEY and --memo-namespace / MEMOO_NAMESPACE.

  2. Restart or reload the MCP server in the host after changing MCP config.

Install the skill

From a clone of this repo (REPO = absolute path to memoo-mcp):

Claude Code

# Personal (all projects)
mkdir -p ~/.claude/skills
cp -R "$REPO/skills/exploring-knowledge-graph" ~/.claude/skills/

# Or project-only (commit with the app repo)
mkdir -p .claude/skills
cp -R "$REPO/skills/exploring-knowledge-graph" .claude/skills/

Cursor

# Personal
mkdir -p ~/.cursor/skills
cp -R "$REPO/skills/exploring-knowledge-graph" ~/.cursor/skills/

# Or project-only
mkdir -p .cursor/skills
cp -R "$REPO/skills/exploring-knowledge-graph" .cursor/skills/

Codex / OpenCode / multi-agent

Many hosts also honor a shared layout:

mkdir -p .agents/skills
cp -R "$REPO/skills/exploring-knowledge-graph" .agents/skills/

Check your host docs if it uses a different path. Structure must stay:

…/skills/exploring-knowledge-graph/SKILL.md

Symlink instead of copy (keeps the skill in sync with this repo):

ln -s "$REPO/skills/exploring-knowledge-graph" ~/.claude/skills/exploring-knowledge-graph

How to use

  1. Confirm Memoo MCP tools are available in the host (e.g. memoo_search, memoo_ask).

  2. Automatic: ask something that matches the skill description, for example:

    • “Explore how auth evolved in this Memoo namespace”

    • “Trace dependencies around payment in the knowledge graph”

  3. Explicit (Claude Code and hosts with slash skills):

    /exploring-knowledge-graph

    Then add your topic, e.g. /exploring-knowledge-graph authentication architecture.

  4. The agent should:

    • Use the configured default namespace (skip memoo_list_namespaces unless you ask to switch)

    • Call Memoo tools (memoo_searchmemoo_graph_traversememoo_list_episodes / fetchmemoo_ask)

    • Answer in the skill’s exploration format (entities, relationships, timeline, insights)

Update / remove

# Update after pulling memoo-mcp
cp -R "$REPO/skills/exploring-knowledge-graph" ~/.claude/skills/

# Remove
rm -rf ~/.claude/skills/exploring-knowledge-graph

Docs

License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    B
    maintenance
    MCP server for the Crosmos memory layer, enabling semantic, keyword, and graph retrieval of memories, as well as storing content with automatic entity and relation extraction.
    Last updated
    41
    2
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    A universal MCP server providing persistent, structured memory through a knowledge graph with graph storage, semantic vector search, and multi-hop traversal for AI agents and IDEs.
    Last updated
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Local-first RAG engine with MCP server for AI agent integration.

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hinha/memoo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server