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

@jayjanii/pi-minimax-mcp

v1.0.8

Published

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

Readme

pi-minimax-mcp

Web search and image understanding for Pi via MiniMax MCP.

Quick Start

1. Get a MiniMax API key at platform.minimax.io/subscribe/coding-plan

2. Install uvx (required to run the MiniMax MCP server):

curl -LsSf https://astral.sh/uv/install.sh | sh
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

3. Install the extension:

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

4. Set your API key:

export MINIMAX_API_KEY="your-api-key"

To persist across sessions, add to ~/.zshrc or ~/.bashrc.

$env:MINIMAX_API_KEY = "your-api-key"

To persist, add to your PowerShell profile or set via System > Environment Variables.

That's it. Start Pi and the web_search and understand_image tools are available automatically.

Usage in Pi

Search for the latest TypeScript release notes
🖼️ understand ./error.png

Dropping an image path (.png, .jpg, .jpeg, .gif, .webp) into the prompt attaches it automatically.

CLI

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

# Image analysis
pi-minimax-mcp understand ./diagram.png
pi-minimax-mcp understand ./chart.png --prompt "What trends does this show?"

# Utilities
pi-minimax-mcp config   # show active config (API key redacted)
pi-minimax-mcp init     # create default config file
pi-minimax-mcp tools    # list tools from the MiniMax MCP server

Configuration

Priority order: CLI flags > env vars > config file > defaults

Environment variables

| Variable | Required | Default | |----------|----------|---------| | MINIMAX_API_KEY | Yes | — | | MINIMAX_API_HOST | No | https://api.minimax.io | | MINIMAX_MCP_BASE_PATH | No | — | | MINIMAX_API_RESOURCE_MODE | No | url | | MINIMAX_MCP_UV_PATH | No | uvx | | MINIMAX_MCP_TIMEOUT_MS | No | 60000 | | MINIMAX_MCP_MAX_BYTES | No | 51200 | | MINIMAX_MCP_MAX_LINES | No | 2000 |

Config file

Global: ~/.pi/agent/extensions/minimax-mcp.json
Project: .pi/extensions/minimax-mcp.json

Global: %USERPROFILE%\.pi\agent\extensions\minimax-mcp.json
Project: .pi\extensions\minimax-mcp.json

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

Run pi-minimax-mcp init to create this file automatically.

Pi flags

pi --minimax-api-key=<key> --minimax-api-host=<host> --minimax-mcp-config=<path>

Troubleshooting

uvx: command not found

curl -LsSf https://astral.sh/uv/install.sh | sh
# Restart your shell, then verify:
which uvx
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# Open a new terminal, then verify:
where.exe uvx

If uvx is installed but not on PATH, point directly to it:

export MINIMAX_MCP_UV_PATH="$HOME/.local/bin/uvx"
$env:MINIMAX_MCP_UV_PATH = "$env:USERPROFILE\.local\bin\uvx.exe"

MiniMax API key is required

# Or run: pi-minimax-mcp init  (then edit the generated file)
export MINIMAX_API_KEY="your-key"   # macOS / Linux
$env:MINIMAX_API_KEY = "your-key"   # Windows

Programmatic usage

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

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

const search = await client.webSearch({ query: "TypeScript 5.5 features", numResults: 5 });
const image  = await client.understandImage({ imagePath: "./diagram.png", prompt: "Explain this" });

client.disconnect();

License

MIT