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

@akiojin/model-hub-mcp

v0.1.7

Published

MCP server for fetching AI models from OpenAI, Anthropic, and Google

Readme

model-hub-mcp

日本語版 README

An MCP (Model Context Protocol) server that fetches AI model information from OpenAI, Anthropic, and Google.

Features

  • Multi-provider Support: Supports three providers - OpenAI, Anthropic, and Google AI
  • List Models: Retrieve a list of available models from each provider
  • Get Model Details: Fetch detailed information about specific models
  • Unified Retrieval: Batch fetch model information from all configured providers

Quick Start (npx)

# Run with environment variables
OPENAI_API_KEY=your_key npx @akiojin/model-hub-mcp

Note: The package will be downloaded from npm on first run.

Installation

Global Installation

npm install -g @akiojin/model-hub-mcp

Local Installation

npm install @akiojin/model-hub-mcp

Configuration

  1. Copy .env.example to .env:
cp .env.example .env
  1. Set API keys for each provider in the .env file:
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
GOOGLE_API_KEY=your_google_api_key_here

Note: You can leave API keys empty for providers you don't plan to use.

Build

Compile TypeScript code:

npm run build

Usage

This MCP server is not meant to be run directly. It should be configured in your MCP client configuration.

See the "MCP Client Configuration Examples" section below for setup instructions.

Available Tools

list_models

Retrieve a list of available models from a specific provider.

Parameters:

  • provider: "openai" | "anthropic" | "google"

get_model

Fetch detailed information about a specific model.

Parameters:

  • provider: "openai" | "anthropic" | "google"
  • model_id: Model ID (e.g., "gpt-4", "claude-3-opus", "gemini-pro")

list_all_models

Batch fetch model information from all configured providers.

MCP Client Configuration Examples

Claude Code

You can easily add this MCP server to Claude Code using the following command:

claude mcp add model-hub -s user \
  -e GOOGLE_API_KEY=$GEMINI_API_KEY \
  -e OPENAI_API_KEY=$OPENAI_API_KEY \
  -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
  -- npx -y @akiojin/model-hub-mcp

This command assumes you have environment variables set in your shell:

  • $GEMINI_API_KEY - Your Google AI API key
  • $OPENAI_API_KEY - Your OpenAI API key
  • $ANTHROPIC_API_KEY - Your Anthropic API key

Using npx

{
  "mcpServers": {
    "model-hub": {
      "command": "npx",
      "args": ["@akiojin/model-hub-mcp"],
      "env": {
        "OPENAI_API_KEY": "your_openai_api_key",
        "ANTHROPIC_API_KEY": "your_anthropic_api_key",
        "GOOGLE_API_KEY": "your_google_api_key"
      }
    }
  }
}

License

MIT