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

vybe-mcp

v1.0.0

Published

MCP server built with TypeScript and Bun - Second Memory System with Discord integration

Readme

Vybe MCP - Second Memory System

An MCP (Model Context Protocol) server that provides a "second memory" system for AI assistants. Store, retrieve, and share summaries through Discord.

Features

  • Summarize & Store: Automatically summarize text and store it in a SQLite database
  • Memory Resources: Access stored memories as MCP resources in new chats/tabs
  • Discord Integration: Send summaries to Discord channels as .txt files
  • Search: Search through stored memories by content
  • Docker Support: Run everything in containers

Quick Start

1. Install Dependencies

bun install

2. Configure Discord (Optional)

Copy .env.example to .env and fill in your Discord bot credentials:

cp .env.example .env

Edit .env:

DISCORD_BOT_TOKEN=your_bot_token_here
DISCORD_CHANNEL_ID=your_channel_id_here

How to get Discord credentials:

  1. Go to https://discord.com/developers/applications
  2. Create a new application
  3. Go to "Bot" section → Create a bot
  4. Copy the bot token
  5. Enable "Message Content Intent" in Bot settings
  6. Get your channel ID (right-click channel → Copy ID)

3. Run the Server

# Development mode
bun run dev

# Production mode
bun run start

# With MCP Inspector (for testing)
bun run inspector

Docker Setup

Build and Run

# Build image
bun run docker:build
# or
docker build -t vybe-mcp .

# Run container (automatically loads .env file)
bun run docker:run
# or
docker run -i --rm --env-file .env vybe-mcp

# Or use Docker Compose (automatically loads .env file)
docker compose up --build

With MCP Inspector

# Using npm script (automatically loads .env file)
bun run docker:inspector

# Or manually
npx @modelcontextprotocol/inspector docker run -i --rm --env-file .env vybe-mcp

MCP Tools

summarize_and_store

Summarizes text and stores it in the database.

Parameters:

  • text (required): The text to summarize
  • tags (optional): Array of tags for categorization
  • maxLength (optional): Maximum summary length (50-1000, default: 200)
  • metadata (optional): Additional metadata object

Example:

{
  "text": "Long conversation about project planning...",
  "tags": ["project", "planning"],
  "maxLength": 300
}

send_to_discord

Sends a summary to Discord channel as a .txt file.

Parameters:

  • memoryId (optional): ID of stored memory to send
  • text (optional): Text to send directly
  • includeMetadata (optional): Include metadata in file (default: true)

Example:

{
  "memoryId": 1
}

search_memories

Search through stored memories.

Parameters:

  • query (required): Search query
  • limit (optional): Max results (1-50, default: 10)

Example:

{
  "query": "project planning",
  "limit": 5
}

MCP Resources

memory://{id}

Retrieve a specific memory by ID.

Example: memory://1

memory://all

Get all stored memories (up to 50 most recent).

Example: memory://all

memory://stats

Get memory statistics and recent memories.

Example: memory://stats

Usage in Cursor/Claude

Add to your MCP configuration (~/.cursor/mcp.json):

{
  "mcpServers": {
    "vybe-mcp": {
      "command": "bun",
      "args": ["run", "/path/to/vybe-mcp/src/index.ts"],
      "env": {
        "DISCORD_BOT_TOKEN": "your_token",
        "DISCORD_CHANNEL_ID": "your_channel_id"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "vybe-mcp": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "/path/to/data:/app/data",
        "--env-file", "/path/to/.env",
        "vybe-mcp"
      ]
    }
  }
}

Workflow Example

  1. Store a summary:

    Use summarize_and_store to save: "Discussed project timeline with team"
  2. In a new chat/tab:

    Access memory://all to see all stored memories
  3. Send to Discord:

    Use send_to_discord with memoryId: 1
  4. Search:

    Use search_memories with query: "project"

Database

The database is stored in data/memories.db (SQLite). The schema includes:

  • id: Unique memory ID
  • original_text: Full original text
  • summary: Generated summary
  • created_at: Creation timestamp
  • updated_at: Last update timestamp
  • tags: JSON array of tags
  • metadata: JSON object with additional data

Project Structure

vybe-mcp/
├── src/
│   ├── index.ts          # Main MCP server
│   ├── db.ts             # Database operations
│   ├── summarizer.ts     # Text summarization
│   └── discord.ts         # Discord integration
├── data/                  # Database storage (created automatically)
├── Dockerfile
├── docker-compose.yml
├── package.json
└── README.md

Development

# Watch mode
bun run dev

# Test with inspector
bun run inspector

# Build
bun run build

License

MIT