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 🙏

© 2025 – Pkg Stats / Ryan Hefner

persistq

v1.1.0

Published

MCP Server for PersistQ - Persistent Memory Management for Claude Code, GitHub Copilot CLI, and AI assistants

Readme

PersistQ MCP Server

MCP (Model Context Protocol) server for PersistQ - enabling persistent memory management for Claude Code and other AI tools.

Overview

PersistQ MCP Server provides a bridge between AI assistants (like Claude Code) and the PersistQ memory management system. It allows AI tools to:

  • Store and retrieve memories
  • Search across stored content
  • Organize memories by topics/projects
  • Access persistent memory statistics

Installation

cd mcp-server
npm install

Configuration

The server can be configured using environment variables:

  • PERSISTQ_URL: URL of the PersistQ HTTP server (default: http://localhost:3000)
  • PERSISTQ_API_KEY: API key for authentication (default: auto-generated)
  • PERSISTQ_TOPIC: Default topic for memories (default: ClaudeConversations)

Usage

Starting the Server

npm start

Available Tools

The MCP server exposes the following tools:

1. add_memory

Add a new memory to PersistQ.

Parameters:

  • text (required): The memory content to store
  • topic (optional): Category or topic for this memory
  • metadata (optional): Additional metadata object

2. search_memory

Search memories by keyword or topic.

Parameters:

  • query (required): Search query or keyword
  • topic (optional): Filter by topic
  • limit (optional): Maximum number of results (default: 10)

3. get_memory_stats

Get statistics about stored memories.

Parameters: None

4. list_memories

List memories with optional filtering.

Parameters:

  • project (optional): Filter by project/tag name
  • limit (optional): Maximum results (default: 10)
  • offset (optional): Offset for pagination (default: 0)

Available Resources

The server provides the following resources:

  • persistq://memories/all: List of all stored memories
  • persistq://stats: Overview of memory storage statistics

Integration with Claude Code

Add to your Claude Code MCP configuration (~/.claude/mcp.json):

{
  "mcpServers": {
    "persistq": {
      "command": "node",
      "args": ["D:/Projects/MemoryHub-Monorepo/mcp-server/pq-mcp-server.js"],
      "env": {
        "PERSISTQ_URL": "http://localhost:3000",
        "PERSISTQ_API_KEY": "your_api_key_here"
      }
    }
  }
}

Integration with GitHub Copilot CLI

Add to your Copilot CLI MCP configuration (~/.copilot/mcp-config.json or ~/.config/mcp-config.json):

{
  "mcpServers": {
    "persistq": {
      "command": "node",
      "args": ["D:/Projects/MemoryHub-Monorepo/mcp-server/pq-mcp-server.js"],
      "env": {
        "PERSISTQ_URL": "http://localhost:3000",
        "PERSISTQ_API_KEY": "${PERSISTQ_API_KEY}"
      }
    }
  }
}

Important Notes:

  • GitHub Copilot CLI currently only supports MCP tools (not resources or prompts)
  • The following 4 tools are available in Copilot CLI:
    • add_memory - Store new memories
    • search_memory - Search stored memories
    • get_memory_stats - Get memory statistics
    • list_memories - List memories with filtering
  • Resources (persistq://memories/all, persistq://stats) are only available in Claude Code

Testing with MCP Inspector

Validate the server using the official MCP Inspector:

npx @modelcontextprotocol/inspector node D:/Projects/MemoryHub-Monorepo/mcp-server/pq-mcp-server.js

This will open a web interface to test protocol compliance, tool execution, and error handling.

Architecture

Claude Code / AI Tool
    ↓
MCP Protocol (stdio)
    ↓
pq-mcp-server.js
    ↓
HTTP → PersistQ Server (port 3000)
    ↓
Database Storage

Requirements

  • Node.js 16+
  • PersistQ HTTP server running on port 3000

License

MIT