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

ailibrary-mcp

v1.0.0

Published

MCP server for AILibrary - AI-native video and media asset library

Readme

ailibrary-mcp

npm version npm downloads

MCP (Model Context Protocol) server for AILibrary — the AI-native media asset library.

Gives AI agents the ability to search, discover, and download licensed videos, images, and audio clips autonomously, with automatic credit billing.

Installation

npx -y ailibrary-mcp

Or install globally:

npm install -g ailibrary-mcp

Configuration

Add to your MCP client config (Claude Desktop, Cursor, Windsurf, Cline, etc.):

Using environment variable (recommended)

{
  "mcpServers": {
    "ailibrary": {
      "command": "npx",
      "args": ["-y", "ailibrary-mcp"],
      "env": {
        "AILIBRARY_API_KEY": "alib_your_key_here"
      }
    }
  }
}

Passing API key per tool call

{
  "mcpServers": {
    "ailibrary": {
      "command": "npx",
      "args": ["-y", "ailibrary-mcp"]
    }
  }
}

Then pass api_key in each tool call directly.

Get an API key at ailibrary-m43k.polsia.app.

Tools

| Tool | Description | |------|-------------| | search_assets | Search the media library by keyword, with optional type filter (video, image, audio) | | download_asset | Download an asset by ID (deducts credits from your balance) | | check_balance | Check your remaining credit balance |

Usage Example

Once connected, your AI agent can:

Search for 3 drone nature videos suitable for a product intro
→ Uses search_assets({ api_key: "alib_...", query: "drone nature", type: "video" })

Download the best match
→ Uses download_asset({ api_key: "alib_...", asset_id: 42 })

Check remaining credits
→ Uses check_balance({ api_key: "alib_..." })

API Reference

All tools accept an api_key parameter (or read AILIBRARY_API_KEY from the environment).

search_assets

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | api_key | string | yes* | Your AILibrary API key | | query | string | yes | Search terms | | type | string | no | Filter by type: video, image, audio | | limit | number | no | Max results (default: 10) |

download_asset

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | api_key | string | yes* | Your AILibrary API key | | asset_id | number | yes | ID from search results |

check_balance

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | api_key | string | yes* | Your AILibrary API key |

* Or set AILIBRARY_API_KEY environment variable

License

MIT