Skip to main content
Glama

maimemo-mcp

Personal read-only MCP server for Maimemo study data.

Features

  • stdio transport for local MCP clients.

  • Streamable HTTP transport at /mcp.

  • Four read-only tools:

    • maimemo_get_today_progress

    • maimemo_list_today_words

    • maimemo_get_due_words

    • maimemo_find_vocabulary

    • maimemo_list_notepads

    • maimemo_get_notepad

  • Bearer authentication for Maimemo OpenAPI requests.

  • Local rolling-window rate limiting for the documented Maimemo limits: 20/10s, 40/60s, and 2000/5h.

  • Host, origin, and optional bearer-token protection for HTTP transport.

Related MCP server: readonly-mcp-server

Install

npm install
npm run build

Use Node.js 20 or newer.

Configuration

Required:

export MAIMEMO_TOKEN="your-maimemo-openapi-token"

Optional:

export MAIMEMO_BASE_URL="https://open.maimemo.com/open"
export MAIMEMO_HTTP_HOST="127.0.0.1"
export MAIMEMO_HTTP_PORT="3333"

When MAIMEMO_HTTP_HOST is not 127.0.0.1, localhost, or ::1, MCP_SERVER_AUTH_TOKEN is required:

export MCP_SERVER_AUTH_TOKEN="your-local-mcp-http-token"

Do not commit real tokens. .env files are ignored by default.

Run With Stdio

MAIMEMO_TOKEN="your-token" npx maimemo-mcp --transport=stdio

For a local checkout:

MAIMEMO_TOKEN="your-token" node dist/cli.js --transport=stdio

Example MCP client command:

{
  "mcpServers": {
    "maimemo": {
      "command": "node",
      "args": ["/absolute/path/to/momo-skills/dist/cli.js", "--transport=stdio"],
      "env": {
        "MAIMEMO_TOKEN": "your-token"
      }
    }
  }
}

Run With Streamable HTTP

MAIMEMO_TOKEN="your-token" node dist/cli.js --transport=http

Default endpoint:

http://127.0.0.1:3333/mcp

For non-loopback binding:

MAIMEMO_TOKEN="your-token" \
MAIMEMO_HTTP_HOST="0.0.0.0" \
MCP_SERVER_AUTH_TOKEN="your-local-mcp-http-token" \
node dist/cli.js --transport=http

Clients must then send:

Authorization: Bearer your-local-mcp-http-token

Tool Inputs

maimemo_get_today_progress has no input.

maimemo_list_today_words:

{
  "status": "all",
  "freshness": "all",
  "limit": 50,
  "spellings": ["hello", "world"]
}

status can be all, unfinished, or finished. freshness can be all, new, or review. limit must be between 1 and 1000.

maimemo_get_due_words:

{
  "startDate": "2026-04-18",
  "endDate": "2026-04-20",
  "spellings": ["hello"],
  "limit": 50,
  "countOnly": false
}

Dates accept YYYY-MM-DD or ISO instants. They are normalized to Asia/Shanghai before calling Maimemo.

maimemo_find_vocabulary:

{
  "spellings": ["hello"]
}

or:

{
  "ids": ["vocabulary-id"]
}

Provide exactly one of spellings or ids.

maimemo_list_notepads:

{
  "limit": 20,
  "offset": 0,
  "ids": ["notepad-id"]
}

limit must be between 1 and 100.

maimemo_get_notepad:

{
  "id": "notepad-id"
}

Returns full notepad content and parsed word list.

Development

npm test
npm run typecheck
npm run build

Available Tools

6 tools
maimemo_find_vocabularyFind Maimemo vocabularyB
Read-onlyIdempotent

Look up Maimemo vocabulary records by spelling or vocabulary id.

Inputs: spellings, ids. Returns: vocabulary

maimemo_get_due_wordsGet due Maimemo wordsB
Read-onlyIdempotent

Query Maimemo study records by next study date, spelling list, limit, or count-only mode.

Inputs: startDate, endDate, spellings, limit, +1 more. Returns: count, records

maimemo_get_notepadGet Maimemo notepadA
Read-onlyIdempotent

Get a Maimemo cloud notepad by id with full content and parsed word list.

Inputs: id (required). Returns: notepad

maimemo_get_today_progressGet today's Maimemo progressA
Read-onlyIdempotent

Return today's Maimemo study progress and study time.

Inputs: no named parameters. Returns: finished, total, completionPercent, studyTimeMs, +1 more

maimemo_list_notepadsList Maimemo notepadsA
Read-onlyIdempotent

List Maimemo cloud notepads with optional limit, offset, and id filters.

Inputs: limit, offset, ids. Returns: notepads

maimemo_list_today_wordsList today's Maimemo wordsB
Read-onlyIdempotent

List today's Maimemo study words with optional status, freshness, spelling, and limit filters.

Inputs: status, freshness, limit, spellings. Returns: items, count

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting different Maimemo resources: vocabulary lookup, due words query, notepad retrieval, progress tracking, notepad listing, and today's words listing. There is no overlap in functionality, making it easy for an agent to select the right tool.

    Naming Consistency5/5

    All tools follow a consistent 'maimemo_verb_noun' pattern with snake_case, such as maimemo_find_vocabulary and maimemo_get_due_words. This predictability enhances usability and reduces confusion.

    Tool Count5/5

    With 6 tools, the server is well-scoped for vocabulary and study management, covering key operations like lookup, query, retrieval, and listing without being overwhelming or insufficient.

    Completeness4/5

    The toolset provides good coverage for reading and querying data (e.g., find, get, list) but lacks write operations like creating or updating vocabulary or notepads, which could be a minor gap for full lifecycle management.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers