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

@ameno/pi-minimax-mcp

v1.0.1

Published

MiniMax MCP tools for pi - Web search and image understanding via MiniMax's Model Context Protocol

Readme

pi-minimax-mcp

MiniMax MCP tools for Pi - Web search and image understanding via MiniMax's Model Context Protocol.

Pi Extension MiniMax

Features

  • 🔍 Web Search - Real-time web search for current information
  • 🖼️ Image Understanding - Analyze and describe image content
  • Pi Native - Works as Pi extension or standalone CLI
  • 🔧 Configurable - Environment variables, config files, or CLI flags

Prerequisites

  1. Get MiniMax API Key

  2. Install uvx

    curl -LsSf https://astral.sh/uv/install.sh | sh

Installation

As Pi Extension

pi install npm:@ameno-/pi-minimax-mcp

As Standalone CLI

npm install -g @ameno-/pi-minimax-mcp
# or
pnpm add -g @ameno-/pi-minimax-mcp

Configuration

Environment Variables

export MINIMAX_API_KEY="your-api-key"
export MINIMAX_API_HOST="https://api.minimax.io"  # optional
export MINIMAX_MCP_BASE_PATH="/tmp/minimax"        # optional
export MINIMAX_API_RESOURCE_MODE="url"             # optional: url | local

Config File

Create ~/.pi/agent/extensions/minimax-mcp.json:

{
  "apiKey": "your-api-key",
  "apiHost": "https://api.minimax.io",
  "basePath": "/tmp/minimax-output",
  "resourceMode": "url",
  "timeoutMs": 60000,
  "maxBytes": 51200,
  "maxLines": 2000
}

Or project-specific .pi/extensions/minimax-mcp.json.

Usage

In Pi

Search the web for "latest React server components"
What does this screenshot show? ./screenshot.png

CLI

# Web search
pi-minimax-mcp search "quantum computing breakthroughs"
pi-minimax-mcp search "Rust async patterns" --num-results 10

# Image analysis
pi-minimax-mcp understand ./error.png
pi-minimax-mcp understand ./chart.png --prompt "What trends?"

# Configuration
pi-minimax-mcp config
pi-minimax-mcp init

Programmatic

import { MiniMaxMcpClient } from "@ameno-/pi-minimax-mcp";

const client = new MiniMaxMcpClient({
  apiKey: process.env.MINIMAX_API_KEY!,
});

// Web search
const searchResults = await client.webSearch({
  query: "TypeScript 5.5 features",
  numResults: 5,
});

// Image understanding
const imageAnalysis = await client.understandImage({
  imagePath: "./diagram.png",
  prompt: "Explain this architecture",
});

client.disconnect();

Pi Extension Flags

pi --minimax-api-key=<key> --minimax-api-host=<host>

| Flag | Description | |------|-------------| | --minimax-api-key | Override API key | | --minimax-api-host | Override API host | | --minimax-mcp-config | Custom config file path | | --minimax-mcp-max-bytes | Max output bytes | | --minimax-mcp-max-lines | Max output lines |

Architecture

┌─────────────────┐     ┌──────────────────┐     ┌─────────────────┐
│   Pi Agent      │────▶│  pi-minimax-mcp  │────▶│  uvx minimax-   │
│   Extension     │◄────│   Extension      │◄────│  coding-plan-mcp│
└─────────────────┘     └──────────────────┘     └─────────────────┘
                                                        │
                                                        ▼
                                                   ┌─────────┐
                                                   │ MiniMax │
                                                   │  API    │
                                                   └─────────┘

Tools Reference

web_search

Search the web for current information.

Parameters:

  • query (string, required): Search query
  • numResults (number, optional): Results to return (1-10, default: 5)
  • recencyDays (number, optional): Limit to recent days

understand_image

Analyze image content.

Parameters:

  • imagePath (string, required): Path to image file
  • prompt (string, optional): Guiding question/prompt

Development

# Clone
git clone https://github.com/ameno-/pi-minimax-mcp.git
cd pi-minimax-mcp

# Install dependencies
pnpm install

# Build
pnpm run build

# Test
pnpm test

License

MIT

Acknowledgments