Skip to main content

Model Context Protocol server for Agents Remember.

Project description

Agents Remember MCP

agents-remember-mcp is the installable Model Context Protocol server for Agents Remember. It lets an MCP-capable coding harness call Agents Remember operations from the host instead of asking the model to edit or execute coordinator scripts directly.

Source: github.com/Foxfire1st/agents-remember-md

Quickstart

Setup is agent-driven. Ask your agent to:

  1. Install and wire Agents Remember MCP — set it to run via uvx agents-remember-mcp --config <absolute-path>/agents-remember-settings.json, help you fill in that settings file (starter below), and register it with this harness. Place the settings file under your harness's registration folder in an mcp/ subdirectory — e.g. .claude/mcp/agents-remember-settings.json for Claude Code, .codex/mcp/… for Codex — not loose in the workspace root (see Settings file location for why). Then restart the harness so it loads the server.
  2. Install the scaffolding, then the skills — run runtime_install first (it scaffolds the coordinator and, when providers are enabled and Docker is running, builds the provider images), then skills_install (copies skills into the harness skill folder). Restart the harness again so it discovers the newly-installed skills. Order matters: scaffolding → skills → providers last (see Install order).
  3. Onboard your project — run the C-13-install-and-onboard skill: it pre-checks the setup, installs the start hook (or places the directive for harnesses without one), sets up the memory repo (it will ask: scaffold a new one or use an existing one), bootstraps onboarding, and starts the providers indexing last (this is when indexing begins; image builds already happened in step 2). If it installs a session-start hook, restart once more so the hook activates — hooks are loaded at session start, not mid-session.

The hands-on steps for you: ask your agent for the steps above, restart three times (after step 1 so the harness loads the server, after step 2 so it discovers the installed skills, and after step 3 so a newly-installed session hook activates), and answer the new-vs-existing memory question in step 3.

Requirements

  • Python 3.11 or newer (the package declares requires-python >=3.11; on a multi-version host, uvx selects a compatible interpreter automatically).
  • an MCP-capable coding harness
  • uv (for uvx) or pip
  • Git for repository and memory ledger operations (configure user.name / user.email; without them, memory/worktree commits fall back to a placeholder identity so work can proceed).
  • Docker (running) when provider tools are enabled. The grepai embedder runs Ollama as a Docker container and pulls an embedding model (nomic-embed-text) on first setup — no host Ollama install is required.
  • jq for the Claude Code SessionStart hook. Install it with your distro's package manager: apt install jq (Debian/Ubuntu), brew install jq (macOS), pacman -S jq (Arch), dnf install jq (Fedora), or apk add jq (Alpine). If jq is missing the hook installs but silently injects nothing.

Install And Run

The simplest path is uvx, which fetches and runs the server on demand — no manual virtualenv or PATH setup:

uvx agents-remember-mcp --config /absolute/path/to/agents-remember-settings.json

Or install with pip and use the console command:

python -m pip install agents-remember-mcp
agents-remember-mcp --config /absolute/path/to/agents-remember-settings.json

The config path must be absolute, the settings file must live outside the ar-coordination/ runtime folder, and it should live under your harness's registration folder in an mcp/ subdirectory (see Settings file location). The server reads this file only at startup — if you edit it later (enable providers, add repos, change timeoutCaps), restart the harness for the change to take effect; run server_info() to confirm what the running server actually loaded.

Settings

A minimal starter agents-remember-settings.json (your agent can fill this in):

{
  "version": 1,
  "coordinationRoot": "/absolute/path/to/ar-coordination",
  "workspaceRoot": "/absolute/path/to/workspace",
  "repositories": {
    "<your-repo-name>": {}
  },
  "providers": {
    "codegraphcontext-code": {},
    "grepai-memory": {}
  }
}

coordinationRoot is where the runtime and memory repos live (populated by runtime_install). workspaceRoot holds your code repos. List each repo you want Agents Remember to manage under repositories. Omit or empty the providers block if you do not want the Docker-backed providers. Full field reference: settings-json.md.

Upgrading? timeoutCaps.providerSeconds was renamed to providerSetupSeconds. The old key is rejected with a fail-loud ConfigError at startup, so rename it in any existing settings file. providerSetupSeconds caps only provider image build / dependency install; indexing and database seed/clone are never time-capped. A cap value of 0 means unlimited.

Settings file location

Place the settings file under your harness registration folder in an mcp/ subdirectory. This is not cosmetic: skills_install infers where to install skills from the settings path — it uses the sibling skills/ folder only when the settings file's parent directory is named mcp. Put the file elsewhere (e.g. loose in the workspace root) and skills_install has no target and fails.

Harness Put settings at skills_install then targets
Claude Code .claude/mcp/agents-remember-settings.json .claude/skills/
Codex .codex/mcp/agents-remember-settings.json .codex/skills/
Cursor .cursor/mcp/… (or .agents/mcp/…) .cursor/skills/ (or .agents/skills/)
VS Code + Copilot .agents/mcp/agents-remember-settings.json .agents/skills/

Do not place the settings file at the workspace root or inside ar-coordination/. If your harness needs a non-standard layout you can set harnessSkillRoot explicitly in the settings — but point it at a folder the harness actually discovers (e.g. .claude/skills), or the skills install but never load. See your harness page under docs/install/ for the exact registration folder.

Harness Setup

Register the MCP server with your harness by pointing it at uvx (or the installed console command) and the absolute settings path:

{
  "command": "uvx",
  "args": [
    "agents-remember-mcp",
    "--config",
    "/absolute/path/to/agents-remember-settings.json"
  ]
}

After installing or changing the MCP server registration, restart the harness so it reloads the server and discovers the tool list. Register the server under the harness folder described in Settings file location so skills_install can infer the skill target.

Per-harness setup pages

Harnesses differ in where settings/skills go and in the skills layout they discover — so follow your harness's page, don't guess:

Harness Setup guide
Claude Code docs/install/claude-code.md
Codex docs/install/codex.md
Cursor docs/install/cursor.md
Antigravity docs/install/antigravity.md
VS Code + Copilot docs/install/vscode-copilot.md
Hermes docs/install/hermes.md
Pi.dev docs/install/pi.md
OpenClaw docs/install/openclaw.md

Skill layout is harness-specific. skills_install defaults to tree (namespaced, for recursive scanners like Codex). Direct skill-folder scanners — Claude Code and Cursor — need skills_install(layout="flat") so each skill lands at <skill-root>/<name>/SKILL.md; the tree layout's nested folders are not discovered there. Your harness page states which to use.

Install Order And First Operations

Setup runs in a strict order: scaffolding → skills → providers last. Preview each step with dry_run=true before applying (dry_run=false, the default).

server_info()                      # confirm resolved roots / allowed providers
runtime_install(dry_run=true)      # preview, then apply:
runtime_install(dry_run=false)     # scaffold coordinator; build provider images if enabled
skills_install(dry_run=true)       # preview (add layout="flat" for Claude Code/Cursor)
skills_install(dry_run=false)      # copy skills into the harness skill folder
# --- restart the harness here so it discovers the installed skills ---
context_packet(repo_id="<repo-id>", include_providers=true)

Then run the installed C-13-install-and-onboard skill (Quickstart step 3): it sets up the memory repo, installs the start hook, bootstraps onboarding, and starts the providers indexing (provider_watchers(action="start")).

Why this order:

  1. Scaffolding first. runtime_install creates the coordinator directory and records a provider-runner integrity manifest. Provider operations check that manifest, so provider_watchers run before runtime_install fails fast with runnerIntegrityFailed.
  2. Skills second, so C-13 and the rest are available for the final step. (Most harnesses only discover newly-installed skills after a restart.) Use the layout your harness page specifies — flat for Claude Code and Cursor.
  3. Providers last. They are heavy (Docker, plus Ollama for grepai), per-repo, and optional. Note the split: runtime_install builds provider images during step 2 (with install_provider_deps=true, the default), but indexing only starts in step 3 — so "providers last" means indexing, not image builds. Pass install_provider_deps=false to refresh scaffold/docs without rebuilding images or disturbing running watchers; pass no_cache=true to force a from-scratch image rebuild (it otherwise skips images whose tag already exists). If providers report degraded, check that Docker is running and (for grepai) that the Ollama model pulled, then provider_watchers(action="refresh"); provider_diagnostics() shows the gap.

Troubleshooting

uvx can't find a just-published version. PyPI's simple index (what uvx resolves against) lags a few minutes behind a release, so uvx agents-remember-mcp==X.Y.Z may briefly fail with "no version found" right after that version is published. Wait 2–5 minutes and retry, run uvx --refresh … to bypass uv's cache, or drop the ==X.Y.Z pin to take the latest the index currently serves.

Providers report degraded and indexing/search returns nothing. Both providers need Docker running; grepai additionally needs its Ollama container and embedding model. Check and recover:

  • Docker: docker ps — if the daemon is down, start it (sudo systemctl start docker on Linux, or Docker Desktop), then provider_watchers(action="refresh").
  • grepai/Ollama: docker logs ar-grepai-ollama and docker exec ar-grepai-ollama ollama list to confirm the model is present. The model (nomic-embed-text) is pulled automatically on first setup; if that timed out, re-run runtime_install() or pull it manually with docker exec ar-grepai-ollama ollama pull nomic-embed-text.
  • provider_diagnostics() shows the precise failing resource (backend, embedder, watcher) for either provider.

Providers are optional — core by-path memory and onboarding work without them, so you can defer this and the rest of setup continues.

Memory/worktree commits and git identity. Closeout and carryover operations commit to the memory repo and ledger, so git needs an author identity. Configure your own with git config --global user.name "…" and git config --global user.email "…". If none is set, Agents Remember writes a repo-local placeholder (Agents Remember <agents-remember@example.invalid>) so work can still proceed — commits just won't carry your identity until you set it.

Tool Surface

The server exposes tools for:

  • startup context and drift checks
  • runtime and skill installation
  • memory initialization, memory quality checks, and route index refresh
  • provider status, watcher control, GrepAI search, and CodeGraphContext queries
  • chat/direct closeout and worktree-backed task workflows
  • benchmark preparation and execution

Provider tools only work when the MCP settings enable the provider and the required Docker services are available. Full tool list: MCP Tool Reference.

More

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agents_remember_mcp-0.9.4.tar.gz (949.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agents_remember_mcp-0.9.4-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file agents_remember_mcp-0.9.4.tar.gz.

File metadata

  • Download URL: agents_remember_mcp-0.9.4.tar.gz
  • Upload date:
  • Size: 949.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agents_remember_mcp-0.9.4.tar.gz
Algorithm Hash digest
SHA256 d10429b25f444dabe34b7a99d39543288744ee7aa59e8e42e1753ec03f9c6059
MD5 1445fe73938945d377a3a9434021f1a7
BLAKE2b-256 6bdd17ff1aedd8f5f2d9fe00d03292dff7ec704d3cfd6af680cf7f2d5839f5fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for agents_remember_mcp-0.9.4.tar.gz:

Publisher: publish-mcp-to-pypi.yml on Foxfire1st/agents-remember-md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agents_remember_mcp-0.9.4-py3-none-any.whl.

File metadata

File hashes

Hashes for agents_remember_mcp-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c85c26d4a57aff91fb51a890d3c93bbe0bfb05dcf2bc286861e46f8977f1f586
MD5 c2151a8b7b71cf4fa5ad89f8b88bd787
BLAKE2b-256 19694b8497c9afce62729edb210ea881bae1d1812096bf064ffd4e88a9b3a5c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for agents_remember_mcp-0.9.4-py3-none-any.whl:

Publisher: publish-mcp-to-pypi.yml on Foxfire1st/agents-remember-md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page