mcp-memo-server
mcp-memo-server
Claude Code から使えるシンプルなメモ管理 MCP サーバです。学習用のサンプル実装です。 簡易的なユーザー認証(ユーザー登録 / ログイン / セッショントークン)に対応しており、メモはユーザーごとに分離されます。
提供するツール
ツール名 | 説明 | 引数 |
| ユーザーを新規登録する |
|
| ログインしてセッショントークンを取得する |
|
| メモを追加する(要ログイン) |
|
| 自分の登録済みメモの一覧を取得する(要ログイン) |
|
| 指定IDの自分のメモを削除する(要ログイン) |
|
メモは memos.json(プロジェクト直下)に、ユーザー情報は users.json に保存されます。いずれも .gitignore 済みです。
認証の仕組み(学習ポイント)
パスワードは Node.js 標準の
crypto.scryptでソルト付きハッシュ化してusers.jsonに保存します(平文保存はしません)。loginに成功するとランダムなセッショントークンが発行されます。トークンはサーバプロセスのメモリ上のみで管理しており、有効期限は2時間、サーバ再起動で失効します。add_memo/list_memos/delete_memoはtokenを検証し、有効なセッションがなければエラーを返します。list_memos/delete_memoはトークンに紐づくuserIdでメモを絞り込むため、他人のメモは見えません。
注意: これは stdio transport(ローカルプロセス)における学習用の認証実装です。stdio の場合、サーバを起動できる時点でプロセスへの実行権限自体は持っているため、ここでの認証は「本物のセキュリティ境界」というより「複数ユーザーの使い分け」と「認証フローの実装を学ぶ」ことが目的です。
Related MCP server: memos-mcp-server
セットアップ
npm install
npm run buildClaude Code への登録
ビルド後、プロジェクトの絶対パスを使って登録します。
claude mcp add --transport stdio memo-server -- node /絶対パス/mcp-memo-server/build/index.js登録できたか確認:
claude mcp listClaude Code のセッション内で /mcp と入力すると、memo-server が connected になっていることを確認できます。
使い方の例(Claude Code 内での会話)
> ユーザー名 taro、パスワード pass1234 で登録して
> taro でログインして
> 「Qiitaのネタを考える」というメモを追加して
> 今登録されているメモを一覧で見せて
> ID 1 のメモを削除してログイン時に発行されたトークンは会話の中でClaudeが記憶し、以降の add_memo / list_memos / delete_memo 呼び出しに自動的に使い回されます。
手動での動作確認
test-client.mjs は、子プロセスとして起動したサーバに直接 JSON-RPC メッセージ
(initialize → tools/list → tools/call)を送って応答を確認する簡易スクリプトです。
node test-client.mjs削除する場合
claude mcp remove memo-serverMaintenance
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
- AlicenseBqualityCmaintenanceThis is an MCP server that enables agents to record, search, and retrieve memos using LowDB as a lightweight local database.1130MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to create, read, update, delete, and list memos via the MCP protocol.3MIT
- AlicenseNot gradedqualityFmaintenanceEnables creating memos and attaching files to a Memos instance via MCP tools.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for creating, listing, updating, deleting memos, and managing attachments via the Memos API.24MIT
Related MCP Connectors
An authenticated remote MCP server for user-owned devices and one-shot capability invocation.
MCP server for URL shortening and management
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/shinji0214/mcp-memo-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server