npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agentsoft/agent-memory

v0.1.0

Published

Obsidian-backed structured note MCP server for coding agents

Readme

@agentsoft/agent-memory

Obsidian-backed structured note MCP server for coding agents.

Pairs with @agentsoft/agent-knowledge — where agent-knowledge does semantic search over ingested deliverables, agent-memory handles structured, human-editable notes in an Obsidian vault (registries, session memory, audit gates, project history).

Install

npm install -g @agentsoft/agent-memory

Prerequisites:

  • Obsidian desktop app v1.12+ installed, running, and with "Command line interface" enabled under Settings → General
  • The obsidian CLI binary on your PATH, or set AGENT_MEMORY_OBSIDIAN_PATH to its absolute path
  • Node 18+

Run the MCP server

agent-memory

The server speaks stdio and registers 11 tools.

Tools

Read-only:

  • memory_read — fetch a note's full content
  • memory_list — list every note path in a vault
  • memory_search — full-text search a vault
  • memory_tag — list notes tagged with a given tag
  • memory_backlinks — list notes that link to a given note

Write:

  • memory_create — create a new note
  • memory_append — append to an existing note
  • memory_delete — trash or permanently delete a note
  • memory_move — move/rename a note (preserves wikilinks)
  • memory_property_set — set a frontmatter property
  • memory_property_remove — remove a frontmatter property

Every tool takes a required vault parameter — the server is stateless.

Notes on memory_property_set

All values are written as YAML strings. Callers wanting typed frontmatter (numbers, booleans, lists, dates) should manipulate the note body via memory_create / memory_append with a complete frontmatter block instead. A dedicated memory_property_get tool is tracked for v0.2 — today, agents should use memory_read and parse the frontmatter themselves.

Configuring MCP clients

Claude Code

claude mcp add agent-memory --server agent-memory

Manual config (Gemini, Codex, etc.)

{
  "mcpServers": {
    "agent-memory": {
      "command": "agent-memory",
      "env": {
        "AGENT_MEMORY_OBSIDIAN_PATH": "/Applications/Obsidian.app/Contents/MacOS/Obsidian"
      }
    }
  }
}

Per-agent permissions

The MCP has no server-side ACL. Restrict each agent's allowed tools via its own frontmatter tools: list. Example — a read-only agent:

tools: mcp__agent-memory__memory_read, mcp__agent-memory__memory_search, mcp__agent-memory__memory_list, mcp__agent-memory__memory_tag, mcp__agent-memory__memory_backlinks

A full-write agent:

tools: mcp__agent-memory__memory_read, mcp__agent-memory__memory_create, mcp__agent-memory__memory_append, mcp__agent-memory__memory_delete, mcp__agent-memory__memory_move, mcp__agent-memory__memory_search, mcp__agent-memory__memory_list, mcp__agent-memory__memory_tag, mcp__agent-memory__memory_backlinks, mcp__agent-memory__memory_property_set, mcp__agent-memory__memory_property_remove

Verifying (manual)

With Obsidian running and a vault named Scratch:

# Via an MCP client, call:
# memory_create(vault="Scratch", file="test-note", content="hello")
# memory_read(vault="Scratch", file="test-note")
# memory_delete(vault="Scratch", file="test-note")

Automated tests mock the subprocess and never touch a real vault.

Library API

import { createMemory, createObsidianCliAdapter } from '@agentsoft/agent-memory'

const noteStore = createObsidianCliAdapter({ binaryPath: 'obsidian' })
const memory = createMemory({ noteStore })

const content = await memory.read('MyVault', 'path/to/note')

Architecture

Thin hexagonal wrapper:

  • NoteStore port (11 methods matching the tool surface)
  • obsidian-cli adapter spawns the obsidian binary
  • Memory factory delegates to the NoteStore
  • MCP server registers 11 tools, each handler calls one memory.*() method

License

MIT