mcp-server-memos AGENTS.md

mcp-server-memos AGENTS.md is an instructions file for Codex, OpenCode from flyinglimao/mcp-server-memos. It costs 1,274 tokens per session, scanned B, original, MIT.

Project instructions for an MCP server that lets AI assistants work with Memos, a privacy-focused note-taking application.

In plain words
What is it for?
Use it to manage Memos connections and expose memo, attachment, and shortcut operations at user, administrator, or full-access levels.
Why use it?
They explain the server's structure, connection settings, and tool levels so an agent can work with one or more Memos installations without guessing.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/flyinglimao/mcp-server-memos/agents-md
Clone the repo
git clone --depth 1 https://github.com/flyinglimao/mcp-server-memos

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-server-memos AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/flyinglimao/mcp-server-memos/agents-md.svg)](https://agentmods.dev/instructions/flyinglimao/mcp-server-memos/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/flyinglimao/mcp-server-memos/agents-md"><img src="https://agentmods.dev/badge/instructions/flyinglimao/mcp-server-memos/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,274 This file is loaded in full into every session.
When invoked 1,274 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01274 $0.01274
Opus 5 $0.00637 $0.00637
Sonnet 5 $0.00255 $0.00255
Haiku 4.5 $0.00127 $0.00127

Measured 4d ago against content hash 4ce573e45f94, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

mcp-server-memos AGENTS.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

| `--full-tools` | Enable all tools (Tier 1 + 2 + 3) |
AGENTS.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Instructions for memos-mcp-server

This document provides context and instructions for AI agents working on this project.

Project Overview

This is a Model Context Protocol (MCP) Server for Memos, a privacy-focused note-taking application. The MCP server allows AI assistants to interact with Memos instances programmatically.

Key Features

  1. Multi-Instance Support: Connect to multiple Memos instances simultaneously
  2. Dynamic Instance Selection: Query specific instances or all instances at once
  3. Instance Management: Add, remove, and store connection credentials
  4. Three-Tier Tool Exposure: Control context usage with --user-tools, --admin-tools, or --full-tools

Architecture

src/
├── index.ts              # Entry point with CLI argument parsing
├── server.ts             # MCP server setup and tool registration
├── config/
│   └── store.ts          # Persistent storage for instance connections
├── api/
│   ├── client.ts         # Base API client for Memos
│   └── services/         # Individual API service implementations
│       ├── memo.ts       # Memo CRUD operations
│       ├── attachment.ts # Attachment management
│       ├── shortcut.ts   # Shortcuts (saved filters)
│       ├── pat.ts        # Personal Access Tokens (user-tools)
│       ├── webhook.ts    # Webhooks (user-tools)
│       ├── user.ts       # User management (admin-tools)
│       ├── instance.ts   # Instance info (admin-tools)
│       └── activity.ts   # Activity logs (admin-tools)
└── tools/
    ├── tier1/            # Default tools (notes)
    │   ├── instances.ts  # Instance connection tools
    │   ├── memos.ts      # Memo tools
    │   ├── tags.ts       # Tag tools
    │   ├── shortcuts.ts  # Shortcut tools
    │   └── attachments.ts# Attachment tools
    ├── tier2/            # User advanced tools (--user-tools)
    │   ├── pats.ts       # PAT tools
    │   ├── webhooks.ts   # Webhook tools
    │   ├── settings.ts   # User settings tools
    │   └── notifications.ts # Notification tools
    └── tier3/            # Admin tools (--admin-tools)
        ├── users.ts      # User management tools
        ├── instance.ts   # Instance settings tools
        └── activities.ts # Activity tools

Read the full file on GitHub · 149 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 149 lines · 1,274 tokens per session scan B 4ce573e45f94

Subscribe to this mod's changes

mcp-server-memos AGENTS.md is an instructions file published in the GitHub repository flyinglimao/mcp-server-memos (2 stars, last pushed 8mo ago), licensed MIT. It adds 1,274 tokens to every session, about $0.0064 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.