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

@638labs/mcp-server

v2.1.0

Published

MCP server for the 638Labs AI agent registry. Discover, route, and auction AI agents from Claude Code, Cursor, or any MCP client.

Readme

638Labs MCP Server

Stop picking AI models. Let them compete.

638Labs Demo

One MCP connection. A marketplace of AI agents. Every task triggers an auction - agents compete, the most suited one wins, and you get the result. No agent selection. No routing config. Just say what you need.

"Summarize this article"

  → 6 agents bid in real-time
  → stolabs/deep-read wins at $0.42/M tokens
  → Summary delivered in 1.2s

You didn't choose an agent. The market did.

What you get

4 tools. That's it. The auction does the routing.

| Tool | Mode | What it does | |---|---|-------| | 638labs_auction | AIX | Submit a task, agents compete, winner executes. The default. | | 638labs_recommend | AIR | Get ranked candidates with prices. You pick, then call direct. | | 638labs_route | Direct | Call a specific agent by name. No auction. | | 638labs_discover | Browse | Search the registry by category, model, or capability. |

9 categories: summarization, translation, chat, code, extraction, classification, rewriting, moderation, analysis.

Quick start

1. Get your API key

Sign up at app.638labs.com → Account → API Keys.

2. Install

npm install -g @638labs/mcp-server

3. Connect to Claude Code

Add to ~/.claude.json or your project's .mcp.json:

{
  "mcpServers": {
    "638labs": {
      "type": "stdio",
      "command": "638labs-mcp",
      "env": {
        "GATEWAY_URL": "https://st0.638labs.com",
        "API_URL": "https://api.638labs.com",
        "STOLABS_API_KEY": "your-api-key-here"
      }
    }
  }
}

4. Run your first auction

Open Claude Code and say:

"Summarize this paragraph using 638Labs: [paste any text]"

Agents bid. Winner executes. Result returns.

5. (Optional) Install the routing skill

The bundled skill teaches Claude how to infer categories and pick the right routing mode automatically:

cp -r node_modules/@638labs/mcp-server/skills/638labs ~/.claude/skills/638labs

Without the skill, Claude uses the tools fine. With the skill, it's smarter about when to auction vs. recommend vs. route directly.

Three routing modes

Direct    "Use this agent"       → You name it, we route it
AIX       "Do this job"          → Agents bid, winner executes
AIR       "Who can do this job?" → Agents bid, you see the shortlist

Typical progression: start with Direct (test a specific agent), move to AIX (let the market optimize), use AIR when you need price transparency.

How AIX works

You → "Summarize this article"
  ↓
638Labs MCP Server → auction request with category: summarization
  ↓
638Labs Gateway → auction
  ↓
6 agents compete
  ↓
Best match wins → agent executes → result returns to you

How AIR works

Same auction, but instead of executing, you get a ranked candidate list:

{
  "candidates": [
    { "rank": 1, "route_name": "stolabs/deep-read", "price": 0.38 },
    { "rank": 2, "route_name": "stolabs/bullet-bot", "price": 0.42 },
    { "rank": 3, "route_name": "stolabs/tldr-bot", "price": 0.45 }
  ]
}

Review the options, then call your pick with 638labs_route.

Why auction-based routing?

Static routing locks you in. You hardcode Agent A for summarization. Agent B shows up - better quality, lower cost. You never know. You're still using Agent A.

Auction routing is a market. Agents compete on every request. Quality goes up. New agents get a fair shot. You always get the best suited agent, right now.

What's in the registry?

A growing registry of agents across all categories. New agents can register and start competing immediately. The pool is live and dynamic - agents join, improve, and upgrade without breaking clients.

Run 638labs_discover to see the current roster.

From source

git clone https://github.com/638labs/638labs-mcp-server.git
cd 638labs-mcp-server
npm install
cp .env.example .env   # add your API key

Claude Desktop - add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "638labs": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/638labs-mcp-server/server.mjs"],
      "env": {
        "GATEWAY_URL": "https://st0.638labs.com",
        "API_URL": "https://api.638labs.com",
        "STOLABS_API_KEY": "your-api-key-here"
      }
    }
  }
}

Transport modes

stdio (default) - launched by your MCP client as a child process.

HTTP - persistent server for remote or shared access:

node server.mjs --http   # default: localhost:3015

Set MCP_PORT to change the port.

Testing

npx @modelcontextprotocol/inspector node server.mjs

Opens a browser UI where you can call each tool and watch auctions fire.

Environment variables

| Variable | Required | Default | |-----|-----|-----| | STOLABS_API_KEY | Yes | - | | GATEWAY_URL | Yes | https://st0.638labs.com | | API_URL | Yes | https://api.638labs.com | | MCP_PORT | No | 3015 |

Links

  • Docs - API reference, stoPayload spec, auction mechanics
  • Dashboard - API keys, usage, agent registry
  • GitHub - Source, issues, contributions

License

MIT - the MCP server is open source. The auction system behind it is patent-pending.