内容
<p align="center">
<a href="https://three.ws"><img src="https://three.ws/three-ws-mcp-icon.svg" alt="three.ws" width="88" height="88"></a>
</p>
<h1 align="center">@three-ws/marketplace-mcp</h1>
<p align="center"><strong>从任何AI代理浏览three.ws代理市场和技能目录。</strong></p>
<p align="center">
<a href="https://www.npmjs.com/package/@three-ws/marketplace-mcp"><img alt="npm" src="https://img.shields.io/npm/v/@three-ws/marketplace-mcp?logo=npm&color=cb3837"></a>
<img alt="license" src="https://img.shields.io/npm/l/@three-ws/marketplace-mcp?color=3b82f6">
<img alt="node" src="https://img.shields.io/node/v/@three-ws/marketplace-mcp?color=339933&logo=node.js">
<a href="https://registry.modelcontextprotocol.io/?q=io.github.nirholas"><img alt="MCP Registry" src="https://img.shields.io/badge/MCP%20Registry-io.github.nirholas-0ea5e9"></a>
<a href="https://three.ws"><img alt="three.ws" src="https://img.shields.io/badge/built%20by-three.ws-000"></a>
</p>
---
> 一个 [模型上下文协议](https://modelcontextprotocol.io) 服务器,允许任何AI助手通过stdio浏览和发现three.ws市场的代理。搜索和分页已发布的代理,深入了解某个代理的详细信息,并探索可重用的技能目录 — 所有这些都来自公共的three.ws API。
无需API密钥,无需签名者,无需付款 — 每次调用都直接访问公共的`/api/marketplace`和`/api/skills`端点。创建或发布代理和技能是HTTP API的*身份验证写入路径*;此服务器仅公开浏览/发现功能。
## 安装
```bash
npm install @three-ws/marketplace-mcp
```
或使用`npx`运行(无需安装):
```bash
npx @three-ws/marketplace-mcp
```
## 快速入门
**Claude 代码**,一行:
```bash
claude mcp add marketplace -- npx -y @three-ws/marketplace-mcp
```
**Claude Desktop / Cursor**(`claude_desktop_config.json` 或 `mcp.json`):
```json
{
"mcpServers": {
"marketplace": {
"command": "npx",
"args": ["-y", "@three-ws/marketplace-mcp"]
}
}
}
```
使用MCP检查器检查界面:
```bash
npx -y @modelcontextprotocol/inspector npx @three-ws/marketplace-mcp
```
## 工具
| 工具 | 类型 | 功能 |
| ------------------- | --------- | ---------------------------------------------------------------------------------------------------- |
| `browse_agents` | 只读 | 搜索和分页代理市场 — 按类别和查询过滤,排序,分页。 |
| `agent_detail` | 只读 | 按ID获取已发布的代理(系统提示,功能,作者,评分,技能价格,头像)。 |
| `agent_categories` | 只读 | 列出代理类别及其发布的代理数量,以及总计。 |
| `browse_skills` | 只读 | 搜索和分页技能目录 — 按查询和类别过滤,排序,分页。 |
| `skill_categories` | 只读 | 列出至少有一个公开技能的技能类别,每个类别都有一个slug,标签和计数。 |
### 输入参数
**`browse_agents`** — `category`(可选slug),`q`(可选自由文本),`sort`(`recommended` | `recent` | `popular` | `top_rated`,默认为`recommended`),`limit`(1–48,默认为24),`cursor`(可选分页游标)。
**`agent_detail`** — `id`(必需:代理的UUID,从`browse_agents`卡片中获取)。
**`agent_categories`** — 无参数。
**`browse_skills`** — `q`(可选自由文本),`category`(可选slug),`sort`(`popular` | `new` | `az`,默认为`popular`),`limit`(1–50,默认为20),`cursor`(可选分页游标)。
**`skill_categories`** — 无参数。
## 示例
```jsonc
// browse_agents
> { "q": "代码审查", "sort": "top_rated", "limit": 3 }
{
"ok": true,
"items": [
{
"id": "a1b2c3d4-…",
"name": "代码审查员",
"description": "检查代码差异中的错误和样式。",
"category": "编程",
"tags": ["代码", "审查"],
"rating_avg": 4.8,
"rating_count": 22,
"views_count": 1340,
"forks_count": 41,
"thumbnail_url": "https://…",
"avatar_glb_url": "https://…"
}
],
"next_cursor": "3"
}
```
将`next_cursor`作为`cursor`传递以获取下一页。
## 要求
- **Node.js >= 20.**
- 可以访问`https://three.ws`(或您自己的`THREE_WS_BASE`)。
### 环境变量
| 变量 | 必需 | 默认 |
| --------------------- | -------- | ------------------ |
| `THREE_WS_BASE` | 否 | `https://three.ws` |
| `THREE_WS_TIMEOUT_MS` | 否 | `20000` |
## 链接
- 首页:https://three.ws
- 更新日志:https://three.ws/changelog
- 问题:https://github.com/nirholas/three.ws/issues
- 许可证:Apache-2.0 — 见 [LICENSE](./LICENSE)
---
<p align="center">
<sub>
three.ws SDK套件的一部分 — 3D AI代理,链上身份和代理支付。<br/>
<a href="https://three.ws">网站</a> · <a href="https://three.ws/changelog">更新日志</a> · <a href="https://github.com/nirholas/three.ws">GitHub</a>
</sub>
</p>
## 许可证
Copyright © 2026 nirholas. All rights reserved.
该软件是专有软件 — 见 [LICENSE](./LICENSE)。未经版权所有者明确书面许可,不得授予任何权利。