advanced-memory-mcp
AGENTS.md19 starsChanged 19 days agoMITView on GitHub
This server owns persistent state (SQLite database, LanceDB vector index). To prevent database contention when multiple stdio clients connect concurrently, use the HTTP Daemon + Stdio Proxy pattern: As of 2026-08-13 this daemon runs as the Windows service advanced-memory-mcp-daemon (NSSM, Automatic start, LocalSystem with pinned ADVANCED_MEMORY_HOME + USERPROFILE=C:\Users\sandr). Check it with Get-Service advanced-memory-mcp-daemon before spawning a manual daemon — if the service is down, start it (nssm start advanced-memory-mcp-daemon) instead of running a second daemon. Logs: logs/daemon-service-*.log. 2. Stdio clients…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository121 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/advanced-memory-mcp-standards.mdcCursor rule
- .cursor/rules/architect.mdcCursor rule
- llms-full.txtllms.txt
- llms.txtllms.txt
- windsurf-ide-integrationSkill
- full-stack-developerSkill
- mcp-server-architectSkill
- skill-creatorSkill
- advanced-memory-skill-creatorSkill
- agentic-zettelkastenSkill
- ai-debate-dominatorSkill
- china-expertSkill
- content-strategy-plannerSkill
- copywriting-and-persuasion-expertSkill
- graphic-design-fundamentalsSkill
- music-production-basicsSkill
- photography-composition-guideSkill
- podcast-production-guideSkill
- presentation-design-expertSkill
- social-media-strategy-advisorSkill
- storytelling-and-narrative-coachSkill
- technical-writing-editorSkill
- uiux-design-consultantSkill
- video-editing-advisorSkill
- asian-fusion-chefSkill
- bbq-and-smoking-expertSkill
- bread-baking-artisanSkill
- cocktail-mixology-masterSkill
- coffee-and-espresso-expertSkill
- french-pastry-masterSkill
- italian-cooking-expertSkill
- meal-prep-efficiency-guruSkill
- mexican-cuisine-specialistSkill
- vegetarian-and-vegan-chefSkill
- wine-sommelier-assistantSkill
- business-japanese-specialistSkill
- classical-japanese-literature-guideSkill
- etymology-and-word-origins-expertSkill
- french-language-coachSkill
- japanese-grammar-masterSkill
- jlpt-preparation-expert-n5-n1Skill
- kanji-etymology-and-learning-expertSkill
- advanced-keigo-usage-expertSkill
- linguistic-anthropology-guideSkill
- polyglot-learning-strategies-expertSkill
- spanish-language-tutorSkill
- translation-techniques-specialistSkill
- abstract-algebra-specialistSkill
- applied-mathematics-for-engineeringSkill
- calculus-tutor-single-multivariableSkill
- complex-analysis-expertSkill
- differential-equations-solverSkill
- discrete-mathematics-expertSkill
- fourier-analysis-expertSkill
- game-theory-strategistSkill
- linear-algebra-expertSkill
- mathematical-logic-expertSkill
- mathematical-proofs-mentorSkill
- matrix-theory-specialistSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Start the HTTP daemon (owns DB): python -m advanced_memory.cli.main mcp --transport streamable-http --host 127.0.0.1 --port 10732
- Very specific: line 32
Check it with Get-Service advanced-memory-mcp-daemon before spawning a manual daemon — if the service is down, start it (nssm start …
- Very specific: line 36
If the daemon is alive, the stdio instance becomes a lightweight proxy via create_proxy() — zero DB initialization
- Very specific: line 38
Windows NSSM trap: if the NSSM service runs as LocalSystem without pinned USERPROFILE, MCP writes can succeed while the webapp shows …
- Distinctive: line 39
If unreachable, starts normally as a standalone server
- Very specific: line 56
Use exact title or permalink from adn_search (no fuzzy match).
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
advanced-memory-mcp — Agent Guide
Overview
Comprehensive research and knowledge platform with web search, GitHub trawling, arXiv academic research, TV Tropes narrative analysis, document ingestion, RAG vector search, and research-driven skill creation
Entry Points
uv run advanced-memory→advanced_memory.cli.main:appuv run am→advanced_memory.cli.main:appuv run release→scripts.release:mainuv run am-skill-creator→advanced_memory.services.skill_creator.cli:main
Standards
- FastMCP 3.2+ portmanteau tool pattern — tools use
operationenum param - Responses: structured dicts with
success,message, domain-specific fields - Dual transport: stdio (Claude Desktop) + HTTP (
MCP_TRANSPORT=http) - See mcp-central-docs for fleet-wide coding standards
Key Files
README.md— full documentationpyproject.toml— build config and entry pointsCLAUDE.md— Claude Code context (if present)
HTTP Daemon + Stdio Proxy
This server owns persistent state (SQLite database, LanceDB vector index). To prevent database contention when multiple stdio clients connect concurrently, use the HTTP Daemon + Stdio Proxy pattern:
Start the HTTP daemon (owns DB):
python -m advanced_memory.cli.main mcp --transport streamable-http --host 127.0.0.1 --port 10732As of 2026-08-13 this daemon runs as the Windows service
advanced-memory-mcp-daemon(NSSM, Automatic start, LocalSystem with pinnedADVANCED_MEMORY_HOME+USERPROFILE=C:\Users\sandr). Check it withGet-Service advanced-memory-mcp-daemonbefore spawning a manual daemon — if the service is down, start it (nssm start advanced-memory-mcp-daemon) instead of running a second daemon. Logs:logs/daemon-service-*.log.- Stdio clients (Claude Desktop, opencode, Cursor) probe
http://127.0.0.1:10732/mcpon startup - If the daemon is alive, the stdio instance becomes a lightweight proxy via
create_proxy()— zero DB initialization
Windows NSSM trap: if the NSSM service runs as LocalSystem without pinned USERPROFILE, MCP writes can succeed while the webapp shows nothing — see docs/troubleshooting/BUG_REPORT_NSSM_SPLIT_BRAIN.md.
4. If unreachable, starts normally as a standalone server
Env var to override the probe URL: ADVANCED_MEMORY_HTTP_PROXY (default: http://127.0.0.1:10732/mcp)
Reference implementation: src/advanced_memory/cli/commands/mcp.py
Reload daemon after code changes
The NSSM service advanced-memory-mcp-daemon keeps Python loaded until SCM restart. After git pull or local commits:
- Elevated PowerShell (UAC):
Restart-Service advanced-memory-mcp-daemon -Force - Confirm
http://127.0.0.1:10732/healthshows the expectedgit_sha - Reload Cursor MCP (or restart Cursor)
Non-elevated Restart-Service from an agent shell may not reload code (useless retry loop). Fleet: mcp-central-docs standards/TRAPS_AND_PITFALLS.md section 32.
Note edits (adn_notes operation=edit)
Use exact title or permalink from adn_search (no fuzzy match). Modes: append, prepend, find_replace, replace_section. If edits fail with EntityResponse / input_value=None, upgrade to 1.10.1+ and restart the HTTP daemon as above. Details: docs/TROUBLESHOOTING_GUIDE.md section 2a.
Install docs: follow mcp-central-docs/standards/AGENT_INSTALL_REFERENCE.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

