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

mosaic-mcp

v0.1.0

Published

MCP server for Mosaic — journaling, diary, and memory app. Query memos, diaries, bots, stats, and AI features via Model Context Protocol.

Readme

mosaic-mcp

MCP server for Mosaic — a journaling and diary app. Exposes 35 tools for querying memos, diaries, AI bots, memory, stats, and admin features via the Model Context Protocol (stdio transport).

Installation

npm install mosaic-mcp
# or
bun add mosaic-mcp

Configuration

| Variable | Required | Description | | ------------------- | -------- | --------------------------------------------------------- | | MOSAIC_SERVER_URL | ✅ | URL of your Mosaic backend (e.g. http://localhost:3001) | | MOSAIC_TOKEN | ✅* | JWT access token for authentication | | MOSAIC_USERNAME | ✅* | Username (paired with MOSAIC_PASSWORD) | | MOSAIC_PASSWORD | ✅* | Password (paired with MOSAIC_USERNAME) |

Provide either MOSAIC_TOKEN or both MOSAIC_USERNAME + MOSAIC_PASSWORD.

Usage

Direct execution

MOSAIC_SERVER_URL=http://localhost:3001 \
  MOSAIC_USERNAME=admin \
  MOSAIC_PASSWORD=yourpassword \
  npx mosaic-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mosaic": {
      "command": "npx",
      "args": ["mosaic-mcp"],
      "env": {
        "MOSAIC_SERVER_URL": "http://localhost:3001",
        "MOSAIC_USERNAME": "admin",
        "MOSAIC_PASSWORD": "yourpassword"
      }
    }
  }
}

Pi / Other MCP clients

# Run the server
MOSAIC_SERVER_URL=http://localhost:3001 \
  MOSAIC_TOKEN=your-jwt-token \
  npx mosaic-mcp

Then configure your MCP client to launch this command via stdio.

Tools

Memos (10)

| Tool | Description | | ----------------- | ------------------------------------------------------------ | | memos_search | Full-text search with tag/date filtering and semantic search | | memos_list | List memos with pagination | | memos_get | Get a memo by ID | | memos_create | Create a new memo | | memos_update | Update memo content, tags, or diary date | | memos_delete | Permanently delete a memo | | memos_archive | Archive a memo (optionally into a diary date) | | memos_unarchive | Restore an archived memo | | memos_tags | List all tags with usage counts | | memos_clip | Clip URL/text/image → new memo with AI summary |

Diaries (5)

| Tool | Description | | -------------------------- | ------------------------------------------ | | diaries_list | List diary entries with date range filter | | diaries_get | Get a diary entry by date (+ linked memos) | | diaries_create_or_update | Create or update a diary entry | | diaries_update_summary | Update diary summary text | | diaries_update_mood | Update mood key and score |

Bots (5)

| Tool | Description | | ---------------------- | ----------------------------- | | bots_list | List all AI bots | | bots_get_replies | Get AI replies for a memo | | bots_get_thread | Get full conversation thread | | bots_trigger_replies | Trigger AI replies for a memo | | bots_reply | Send a follow-up to a bot |

Memory (4)

| Tool | Description | | ---------------------- | --------------------------------------- | | memory_stats | Get total/indexed memo counts | | memory_activity | Recent memory retrieval activity | | memory_context | Relevant past memos for a memo+bot pair | | memory_memo_contexts | Memory contexts across all bots |

Stats (4)

| Tool | Description | | ---------------- | -------------------------------------- | | stats_heatmap | Activity heatmap data for a date range | | stats_timeline | Timeline entries with mood summaries | | stats_trends | Mood and tag trends | | stats_summary | Monthly summary totals |

AI (2)

| Tool | Description | | ----------------- | --------------------------- | | ai_summarize | Generate AI summary of text | | ai_suggest_tags | Suggest tags for content |

Admin (3)

| Tool | Description | | ------------------------ | ---------------------------------- | | admin_get_ai_config | Get AI provider configuration | | admin_update_ai_config | Update AI provider settings | | admin_backfill_memory | Trigger full memory index backfill |

Resources (2)

| Tool | Description | | ---------------- | ----------------------------------- | | resources_list | List uploaded files with pagination | | resources_get | Get resource details by ID |

Development

# From the Mosaic monorepo root
bun run build:mcp      # Build the server
bun run mcp:start      # Run it (requires MOSAIC_SERVER_URL env)

License

AGPL-3.0