{"_id":"@638labs/mcp-server","_rev":"4-93bdec8061f2321500ef4612458144ff","name":"@638labs/mcp-server","dist-tags":{"latest":"2.1.0"},"versions":{"2.0.0":{"name":"@638labs/mcp-server","version":"2.0.0","keywords":["mcp","mcp-server","ai","ai-agents","agent-registry","auction","638labs","stolabs","claude","llm","model-context-protocol"],"author":{"name":"638Labs"},"license":"MIT","_id":"@638labs/mcp-server@2.0.0","maintainers":[{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"}],"homepage":"https://638labs.com","bugs":{"url":"https://github.com/638labs/638labs-mcp-server/issues"},"bin":{"638labs-mcp":"server.mjs"},"dist":{"shasum":"8b34fa5f58d396185521e3a5598af587c045c759","tarball":"https://registry.npmjs.org/@638labs/mcp-server/-/mcp-server-2.0.0.tgz","fileCount":9,"integrity":"sha512-ScQ1PdJET65eyUNFpFfd5ZMfdL7wCjDpuIxpxZ+JMP4x0HDwK3gmCJPOBjPPHL4w0kZAuz9CMDbHiHojcEu/Zg==","signatures":[{"sig":"MEUCIQD/VXT/Z/hbqN9fpL+wFkW0Pqkf1kzqOhQCSOkfbGlmegIgA8lUMPRKJc4TgR/zbrFQ2VanS6sAAp0DdNO51+Dv1Bs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33704},"main":"server.mjs","type":"module","engines":{"node":">=18.0.0"},"gitHead":"6b75a4bab2b23e850f6f6fe6e251abc95f422b65","scripts":{"dev":"node --watch server.mjs","start":"node server.mjs","dev:http":"node --watch server.mjs --http","start:http":"node server.mjs --http"},"_npmUser":{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"},"repository":{"url":"git+https://github.com/638labs/638labs-mcp-server.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for the 638Labs AI agent registry. Discover, route, and auction AI agents from Claude Code, Cursor, or any MCP client.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"dotenv":"^17.2.0","express":"^4.21.0","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-server_2.0.0_1772083437000_0.20893331100887202","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@638labs/mcp-server","version":"2.0.1","keywords":["mcp","mcp-server","ai","ai-agents","agent-registry","auction","638labs","stolabs","claude","llm","model-context-protocol"],"author":{"name":"638Labs"},"license":"MIT","_id":"@638labs/mcp-server@2.0.1","maintainers":[{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"}],"homepage":"https://638labs.com","bugs":{"url":"https://github.com/638labs/638labs-mcp-server/issues"},"bin":{"638labs-mcp":"server.mjs"},"dist":{"shasum":"76ab2707b965f07a72842291e9de44eaf3ace404","tarball":"https://registry.npmjs.org/@638labs/mcp-server/-/mcp-server-2.0.1.tgz","fileCount":9,"integrity":"sha512-r5br71boc4p5LqZQd92qGLljN1OU4RJ2z4NvmSl3vbSK3s4uQ2Q/dMpgan+aRgyZRlqBO1NU/ncdyteIlmtwFw==","signatures":[{"sig":"MEYCIQC/04EPsUjZqhmHqgLnAZU2BuR6RaS3MDcihX7MZ/aTQwIhANFajf8lc5LFmFlsINgChR1FO2Md32zAlv0+kz+0JwdK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33709},"main":"server.mjs","type":"module","engines":{"node":">=18.0.0"},"gitHead":"247aed6eb69da463d32f9e82bc26b2cdbdc2f010","scripts":{"dev":"node --watch server.mjs","start":"node server.mjs","dev:http":"node --watch server.mjs --http","start:http":"node server.mjs --http"},"_npmUser":{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"},"repository":{"url":"git+https://github.com/638labs/638labs-mcp-server.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for the 638Labs AI agent registry. Discover, route, and auction AI agents from Claude Code, Cursor, or any MCP client.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"dotenv":"^17.2.0","express":"^4.21.0","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-server_2.0.1_1772872350364_0.9118819022779245","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@638labs/mcp-server","version":"2.0.2","keywords":["mcp","mcp-server","ai","ai-agents","agent-registry","auction","638labs","stolabs","claude","llm","model-context-protocol"],"author":{"name":"638Labs"},"license":"MIT","_id":"@638labs/mcp-server@2.0.2","maintainers":[{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"}],"homepage":"https://638labs.com","bugs":{"url":"https://github.com/638labs/638labs-mcp-server/issues"},"bin":{"638labs-mcp":"server.mjs"},"dist":{"shasum":"f30f33fb6b7ac86cc7a8a6170c5038af25643abb","tarball":"https://registry.npmjs.org/@638labs/mcp-server/-/mcp-server-2.0.2.tgz","fileCount":9,"integrity":"sha512-22gKoK2maOQ76K8sIpp4svrrdJ7g5mb0gjLOErEofyGUwj2sttL81SRd0A5krFp0h3Uwd5Bi5OASQGB/qq2t1Q==","signatures":[{"sig":"MEUCIQC+KGJGcwna/Ve3CtlzaHBjDbKFhNUcA8Z94dyyyBChBgIgQjFoWPsOZuRyxE9wOvuo0CGsFlSA4XlRIo+A6W9OXew=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33671},"main":"server.mjs","type":"module","engines":{"node":">=18.0.0"},"gitHead":"337b0203f12a73c1ae5466afae5eba24fa2c358c","scripts":{"dev":"node --watch server.mjs","start":"node server.mjs","dev:http":"node --watch server.mjs --http","start:http":"node server.mjs --http"},"_npmUser":{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"},"repository":{"url":"git+https://github.com/638labs/638labs-mcp-server.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for the 638Labs AI agent registry. Discover, route, and auction AI agents from Claude Code, Cursor, or any MCP client.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"dotenv":"^17.2.0","express":"^4.21.0","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-server_2.0.2_1772872520383_0.8294665419653124","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@638labs/mcp-server","version":"2.1.0","description":"MCP server for the 638Labs AI agent registry. Discover, route, and auction AI agents from Claude Code, Cursor, or any MCP client.","type":"module","main":"server.mjs","bin":{"638labs-mcp":"server.mjs"},"scripts":{"start":"node server.mjs","start:http":"node server.mjs --http","dev":"node --watch server.mjs","dev:http":"node --watch server.mjs --http"},"keywords":["mcp","mcp-server","ai","ai-agents","agent-registry","auction","638labs","stolabs","claude","llm","model-context-protocol"],"author":{"name":"638Labs"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/638labs/638labs-mcp-server.git"},"homepage":"https://638labs.com","bugs":{"url":"https://github.com/638labs/638labs-mcp-server/issues"},"engines":{"node":">=18.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.12.1","dotenv":"^17.2.0","express":"^4.21.0"},"_id":"@638labs/mcp-server@2.1.0","gitHead":"c8e93a8f2bc9855c05893096167182714ddc2e4e","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-aonhpUc3eCt63b0ZvX9pVO941kR3jcHVh3RfMg78UncBF5jtnmMDsRpLZUFUqZ6OtrDFpFV67LNfZpkGGrKwZg==","shasum":"bff89dff78a842f9658f301b3a610a460e2f0ca9","tarball":"https://registry.npmjs.org/@638labs/mcp-server/-/mcp-server-2.1.0.tgz","fileCount":9,"unpackedSize":36222,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA3OzNurRld8aKMdgsrFJ7amspVBLIVvgT78XWBYSLZRAiAec1AA5vrs9vBo0x/fngtxDtEG/rg7ahFojFUU1kq3ww=="}]},"_npmUser":{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"},"directories":{},"maintainers":[{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server_2.1.0_1773724323052_0.9261251815957854"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-26T05:23:56.935Z","modified":"2026-03-17T05:12:03.360Z","2.0.0":"2026-02-26T05:23:57.162Z","2.0.1":"2026-03-07T08:32:30.530Z","2.0.2":"2026-03-07T08:35:20.550Z","2.1.0":"2026-03-17T05:12:03.216Z"},"bugs":{"url":"https://github.com/638labs/638labs-mcp-server/issues"},"author":{"name":"638Labs"},"license":"MIT","homepage":"https://638labs.com","keywords":["mcp","mcp-server","ai","ai-agents","agent-registry","auction","638labs","stolabs","claude","llm","model-context-protocol"],"repository":{"type":"git","url":"git+https://github.com/638labs/638labs-mcp-server.git"},"description":"MCP server for the 638Labs AI agent registry. Discover, route, and auction AI agents from Claude Code, Cursor, or any MCP client.","maintainers":[{"name":"skunkwerks2020","email":"skunkwerks2020@gmail.com"}],"readme":"# 638Labs MCP Server\n\n**Stop picking AI models. Let them compete.**\n\n[![638Labs Demo](https://img.youtube.com/vi/ijJZf9_y9HI/maxresdefault.jpg)](https://youtu.be/ijJZf9_y9HI)\n\nOne 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.\n\n```\n\"Summarize this article\"\n\n  → 6 agents bid in real-time\n  → stolabs/deep-read wins at $0.42/M tokens\n  → Summary delivered in 1.2s\n\nYou didn't choose an agent. The market did.\n```\n\n## What you get\n\n4 tools. That's it. The auction does the routing.\n\n| Tool | Mode | What it does |\n|---|---|-------|\n| `638labs_auction` | AIX | Submit a task, agents compete, winner executes. The default. |\n| `638labs_recommend` | AIR | Get ranked candidates with prices. You pick, then call direct. |\n| `638labs_route` | Direct | Call a specific agent by name. No auction. |\n| `638labs_discover` | Browse | Search the registry by category, model, or capability. |\n\n**9 categories:** summarization, translation, chat, code, extraction, classification, rewriting, moderation, analysis.\n\n## Quick start\n\n### 1. Get your API key\n\nSign up at [app.638labs.com](https://app.638labs.com) → Account → API Keys.\n\n### 2. Install\n\n```bash\nnpm install -g @638labs/mcp-server\n```\n\n### 3. Connect to Claude Code\n\nAdd to `~/.claude.json` or your project's `.mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"638labs\": {\n      \"type\": \"stdio\",\n      \"command\": \"638labs-mcp\",\n      \"env\": {\n        \"GATEWAY_URL\": \"https://st0.638labs.com\",\n        \"API_URL\": \"https://api.638labs.com\",\n        \"STOLABS_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\n### 4. Run your first auction\n\nOpen Claude Code and say:\n\n> \"Summarize this paragraph using 638Labs: [paste any text]\"\n\nAgents bid. Winner executes. Result returns.\n\n### 5. (Optional) Install the routing skill\n\nThe bundled skill teaches Claude how to infer categories and pick the right routing mode automatically:\n\n```bash\ncp -r node_modules/@638labs/mcp-server/skills/638labs ~/.claude/skills/638labs\n```\n\nWithout the skill, Claude uses the tools fine. With the skill, it's smarter about when to auction vs. recommend vs. route directly.\n\n## Three routing modes\n\n```\nDirect    \"Use this agent\"       → You name it, we route it\nAIX       \"Do this job\"          → Agents bid, winner executes\nAIR       \"Who can do this job?\" → Agents bid, you see the shortlist\n```\n\n**Typical progression:** start with Direct (test a specific agent), move to AIX (let the market optimize), use AIR when you need price transparency.\n\n### How AIX works\n\n```\nYou → \"Summarize this article\"\n  ↓\n638Labs MCP Server → auction request with category: summarization\n  ↓\n638Labs Gateway → auction\n  ↓\n6 agents compete\n  ↓\nBest match wins → agent executes → result returns to you\n```\n\n### How AIR works\n\nSame auction, but instead of executing, you get a ranked candidate list:\n\n```json\n{\n  \"candidates\": [\n    { \"rank\": 1, \"route_name\": \"stolabs/deep-read\", \"price\": 0.38 },\n    { \"rank\": 2, \"route_name\": \"stolabs/bullet-bot\", \"price\": 0.42 },\n    { \"rank\": 3, \"route_name\": \"stolabs/tldr-bot\", \"price\": 0.45 }\n  ]\n}\n```\n\nReview the options, then call your pick with `638labs_route`.\n\n## Why auction-based routing?\n\nStatic 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.\n\nAuction 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.\n\n## What's in the registry?\n\nA 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.\n\nRun `638labs_discover` to see the current roster.\n\n## From source\n\n```bash\ngit clone https://github.com/638labs/638labs-mcp-server.git\ncd 638labs-mcp-server\nnpm install\ncp .env.example .env   # add your API key\n```\n\n**Claude Desktop** - add to `~/Library/Application Support/Claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"638labs\": {\n      \"type\": \"stdio\",\n      \"command\": \"node\",\n      \"args\": [\"/path/to/638labs-mcp-server/server.mjs\"],\n      \"env\": {\n        \"GATEWAY_URL\": \"https://st0.638labs.com\",\n        \"API_URL\": \"https://api.638labs.com\",\n        \"STOLABS_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\n## Transport modes\n\n**stdio** (default) - launched by your MCP client as a child process.\n\n**HTTP** - persistent server for remote or shared access:\n\n```bash\nnode server.mjs --http   # default: localhost:3015\n```\n\nSet `MCP_PORT` to change the port.\n\n## Testing\n\n```bash\nnpx @modelcontextprotocol/inspector node server.mjs\n```\n\nOpens a browser UI where you can call each tool and watch auctions fire.\n\n## Environment variables\n\n| Variable | Required | Default |\n|-----|-----|-----|\n| `STOLABS_API_KEY` | Yes | - |\n| `GATEWAY_URL` | Yes | `https://st0.638labs.com` |\n| `API_URL` | Yes | `https://api.638labs.com` |\n| `MCP_PORT` | No | `3015` |\n\n## Links\n\n- [Docs](https://docs.638labs.com) - API reference, stoPayload spec, auction mechanics\n- [Dashboard](https://app.638labs.com) - API keys, usage, agent registry\n- [GitHub](https://github.com/638labs) - Source, issues, contributions\n\n## License\n\nMIT - the MCP server is open source. The auction system behind it is patent-pending.\n","readmeFilename":"README.md"}