Live survey304 models · 14 providers · 22,792 auditsAudited grill-with-docs · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Mcp Builder

skill · LeastBit/Claude_skills_zh-CNLicence not declaredAudited 19 Oct 2026 · source adadc22120ab

★ 594pushed 273 days ago
✓SAFEGrade B · 89/100 · 19 Oct 2026 · adadc22
594repo stars · whole LeastBit/Claude_skills_zh-CN

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit adadc22120ab and found no filesystem, network or shell access and no hard-coded secrets. What it does: 构建高质量 MCP(模型上下文协议)服务器的指南,使 LLM 能够通过精心设计的工具与外部服务交互。在使用 Python (FastMCP) 或 Node/TypeScript (MCP SDK) 构建 MCP 服务器以集成外部 API 或服务时使用。

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Mcp Builder (LeastBit/Claude_skills_zh-CN)”. Retrieved 19 Oct 2026. https://modelsatlas.com/skills/leastbit/mcp-builder

6 skills are called “Mcp Builder”. You are viewing LeastBit/Claude_skills_zh-CN.

and 1 more with this name.

Trust audit

Audit 0.4.1 · source read 19 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium1 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 16,667 of 17,602 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesNot pinnedSome versions float
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codePASS1
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (1)

LOWSupply chainsupply.unpinned · scripts/requirements.txt
F-08 Supply chainCWE-829 · CWE-1357Layer L1
anthropic, mcp
Why
2 requirement(s) not pinned with ==
Fix
pin exact versions

Audit 0.4.1 · source sha adadc22120ab · 19 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • PublisherLeastBit GitHub userOwner of the repository this skill is read from
  • Source folderLeastBit/Claude_skills_zh-CN/skills/mcp-builderThe exact folder we audited
  • LicenceNot declaredAs the repository states it
  • Commit pinned for this verdictadadc22120abA new audit runs when the source changes
  • Repository statusNot archivedLast push 273 days ago
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: 构建高质量 MCP(模型上下文协议)服务器的指南,使 LLM 能够通过精心设计的工具与外部服务交互。在使用 Python (FastMCP) 或 Node/TypeScript (MCP SDK) 构建 MCP 服务器以集成外部 API 或服务时使用。

---
name: mcp-builder
description: 构建高质量 MCP(模型上下文协议)服务器的指南,使 LLM 能够通过精心设计的工具与外部服务交互。在使用 Python (FastMCP) 或 Node/TypeScript (MCP SDK) 构建 MCP 服务器以集成外部 API 或服务时使用。
license: 完整条款见 LICENSE.txt
---

# MCP 服务器开发指南

## 概述

创建 MCP(模型上下文协议)服务器,使 LLM 能够通过精心设计的工具与外部服务交互。MCP 服务器的质量取决于它能多好地使 LLM 完成实际任务。

---

# 流程

## 🚀 高级工作流程

创建高质量的 MCP 服务器包含四个主要阶段:

### 阶段一:深入研究与规划

#### 1.1 理解现代 MCP 设计

**API 覆盖 vs. 工作流工具:**
在全面的 API 端点覆盖与专用工作流工具之间取得平衡。工作流工具对于特定任务可能更方便,而全面覆盖则给予代理灵活组合操作的能力。不同客户端的性能表现各异——某些客户端受益于结合基本工具的代码执行,而另一些则更适合使用高级工作流。当不确定时,优先考虑全面的 API 覆盖。

**工具命名与可发现性:**
清晰、描述性的工具名称有助于代理快速找到正确的工具。使用一致的前缀(例如 `github_create_issue`、`github_list_repos`)和面向动作的命名。

**上下文管理:**
代理受益于简洁的工具描述以及过滤/分页结果的能力。设计返回聚焦、相关数据的工具。某些客户端支持代码执行,这可以帮助代理高效地过滤和处理数据。

**可操作的错误消息:**
错误消息应引导代理找到解决方案,提供具体的建议和下一步操作。

#### 1.2 学习 MCP 协议文档

**浏览 MCP 规范:**

从站点地图开始查找相关页面:`https://modelcontextprotocol.io/sitemap.xml`

然后使用 `.md` 后缀获取特定页面的 markdown 格式(例如 `https://modelcontextprotocol.io/specification/draft.md`)。

需要查阅的关键页面:
- 规范概述和架构
- 传输机制(流式 HTTP、stdio)
- 工具、资源和提示定义

#### 1.3 学习框架文档

**推荐技术栈:**
- **语言**:TypeScript(高质量 SDK 支持,在许多执行环境中兼容性良好,如 MCPB。此外 AI 模型擅长生成 TypeScript 代码,得益于其广泛使用、静态类型和良好的 lint 工具)
- **传输**:远程服务器使用流式 HTTP,采用无状态 JSON(相比有状态会话和流式响应,更易于扩展和维护)。本地服务器使用 stdio。

**加载框架文档:**

- **MCP 最佳实践**:[📋 查看最佳实践](./reference/mcp_best_practices.md) - 核心指南

**TypeScript(推荐):**
- **TypeScript SDK**:使用 WebFetch 加载 `https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md`
- [⚡ TypeScript 指南](./reference/node_mcp_server.md) - TypeScript 模式和示例

**Python:**
- **Python SDK**:使用 WebFetch 加载 `https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md`
- [🐍 Python 指南](./reference/python_mcp_server.md) - Python 模式和示例

#### 1.4 规划实现

**理解 API:**
查阅服务的 API 文档以识别关键端点、认证要求和数据模型。根据需要使用网络搜索和 WebFetch。

**工具选择:**
优先考虑全面的 API 覆盖。列出要实现的端点,从最常用的操作开始。

---

### 阶段二:实现

#### 2.1 设置项目结构

参阅特定语言指南了解项目设置:
- [⚡ TypeScript 指南](./reference/node_mcp_server.md) - 项目结构、package.json、tsconfig.json
- [🐍 Python 指南](./reference/python_mcp_server.md) - 模块组织、依赖项

#### 2.2 实现核心基础设施

创建共享工具:
- 带认证的 API 客户端
- 错误处理辅助函数
- 响应格式化(JSON/Markdown)
- 分页支持

#### 2.3 实现工具

对于每个工具:

**输入模式:**
- 使用 Zod(TypeScript)或 Pydantic(Python)
- 包含约束和清晰的描述
- 在字段描述中添加示例

**输出模式:**
- 尽可能为结构化数据定义 `outputSchema`
- 在工具响应中使用 `structuredContent`(TypeScript SDK 特性)
- 帮助客户端理解和处理工具输出

**工具描述:**
- 功能的简洁摘要
- 参数描述
- 返回类型模式

**实现:**
- 对 I/O 操作使用 async/await
- 使用可操作的消息进行适当的错误处理
- 在适用的地方支持分页
- 使用现代 SDK 时同时返回文本内容和结构化数据

**注解:**
- `readOnlyHint`:true/false
- `destructiveHint`:true/false
- `idempotentHint`:true/false
- `openWorldHint`:true/false

---

### 阶段三:审查与测试

#### 3.1 代码质量

审查以下方面:
- 无重复代码(DRY 原则)
- 一致的错误处理
- 完整的类型覆盖
- 清晰的工具描述

#### 3.2 构建与测试

**TypeScript:**
- 运行 `npm run build` 验证编译
- 使用 MCP Inspector 测试:`npx @modelcontextprotocol/inspector`

**Python:**
- 验证语法:`python -m py_compile your_server.py`
- 使用 MCP Inspector 测试

参阅特定语言指南了解详细的测试方法和质量检查清单。

---

### 阶段四:创建评估

实现 MCP 服务器后,创建全面的评估来测试其有效性。

**加载 [✅ 评估指南](./reference/evaluation.md) 获取完整的评估指南。**

#### 4.1 理解评估目的

使用评估来测试 LLM 能否有效地使用您的 MCP 服务器回答真实、复杂的问题。

#### 4.2 创建 10 个评估问题

要创建有效的评估,请遵循评估指南中概述的流程:

1. **工具检查**:列出可用工具并了解其功能
2. **内容探索**:使用只读操作探索可用数据
3. **问题生成**:创建 10 个复杂、真实的问题
4. **答案验证**:自己解答每个问题以验证答案

#### 4.3 评估要求

确保每个问题:
- **独立**:不依赖于其他问题
- **只读**:只需要非破坏性操作
- **复杂**:需要多次工具调用和深度探索
- **真实**:基于人类实际关心的用例
- **可验证**:单一、明确的答案,可通过字符串比较验证
- **稳定**:答案不会随时间改变

#### 4.4 输出格式

创建具有以下结构的 XML 文件:

```xml
<evaluation>
  <qa_pair>
    <question>查找关于以动物代号命名的 AI 模型发布的讨论。有一个模型需要使用 ASL-X 格式的特定安全级别。以一种斑点野猫命名的模型被确定为什么数字 X?</question>
    <answer>3</answer>
  </qa_pair>
<!-- 更多 qa_pairs... -->
</evaluation>
```

---

# 参考文件

## 📚 文档库

在开发过程中根据需要加载这些资源:

### 核心 MCP 文档(首先加载)
- **MCP 协议**:从 `https://modelcontextprotocol.io/sitemap.xml` 的站点地图开始,然后使用 `.md` 后缀获取特定页面
- [📋 MCP 最佳实践](./reference/mcp_best_practices.md) - 通用 MCP 指南,包括:
  - 服务器和工具命名约定
  - 响应格式指南(JSON vs Markdown)
  - 分页最佳实践
  - 传输选择(流式 HTTP vs stdio)
  - 安全和错误处理标准

### SDK 文档(在阶段 1/2 期间加载)
- **Python SDK**:从 `https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md` 获取
- **TypeScript SDK**:从 `https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md` 获取

### 特定语言实现指南(在阶段 2 期间加载)
- [🐍 Python 实现指南](./reference/python_mcp_server.md) - 完整的 Python/FastMCP 指南,包括:
  - 服务器初始化模式
  - Pydantic 模型示例
  - 使用 `@mcp.tool` 注册工具
  - 完整的工作示例
  - 质量检查清单

- [⚡ TypeScript 实现指南](./reference/node_mcp_server.md) - 完整的 TypeScript 指南,包括:
  - 项目结构
  - Zod 模式模式
  - 使用 `server.registerTool` 注册工具
  - 完整的工作示例
  - 质量检查清单

### 评估指南(在阶段 4 期间加载)
- [✅ 评估指南](./reference/evaluation.md) - 完整的评估创建指南,包括:
  - 问题创建指南
  - 答案验证策略
  - XML 格式规范
  - 示例问题和答案
  - 使用提供的脚本运行评估

Excerpt, first 4,670 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit adadc22

Download folder ↗
pip install -r scripts/requirements.txt
pip install anthropic mcp

Commands as the repository documents them: shown, never run by us. Our verdict covers commit adadc22120ab only.

Works in

The author has not said which agents this skill supports, and we have not tested it in any.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source adadc22120ab

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/leastbit/mcp-builder/badge.svg)](https://modelsatlas.com/skills/leastbit/mcp-builder/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Similar skills

Brand Guidelines✓SAFE

LeastBit/Claude_skills_zh-CN

将 Anthropic 官方品牌颜色和字体应用于任何可能需要 Anthropic 视觉风格的作品。适用于品牌颜色或样式指南、视觉格式化或公司设计标准的场景。

★ 594Grade B
Canvas Design✓SAFE

LeastBit/Claude_skills_zh-CN

使用设计哲学创作精美的 .png 和 .pdf 格式视觉艺术作品。当用户要求创作海报、艺术品、设计作品或其他静态作品时,应使用此技能。创作原创视觉设计,切勿复制现有艺术家的作品以避免版权侵权。

★ 594Grade B
Doc Coauthoring✓SAFE

LeastBit/Claude_skills_zh-CN

引导用户通过结构化的工作流程来协作撰写文档。当用户想要撰写文档、提案、技术规格说明、决策文档或类似的结构化内容时使用。这个工作流程帮助用户高效地传递上下文信息、通过迭代优化内容,并验证文档对读者是否有效。当用户提到撰写文档、创建提案、起草规格说明或类似的文档任务时触发。

★ 594Grade B
Docx✓SAFE

LeastBit/Claude_skills_zh-CN

全面的文档创建、编辑和分析功能,支持修订追踪、批注、格式保留和文本提取。当 Claude 需要处理专业文档(.docx 文件)时使用:(1) 创建新文档,(2) 修改或编辑内容,(3) 处理修订追踪,(4) 添加批注,或其他任何文档任务

★ 594Grade B
Frontend Design✓SAFE

LeastBit/Claude_skills_zh-CN

创建独特的、生产级别的高质量前端界面。当用户要求构建网页组件、页面、作品、海报或应用程序时使用此技能(例如网站、落地页、仪表盘、React 组件、HTML/CSS 布局,或对任何网页 UI 进行样式美化)。生成富有创意、精致的代码和 UI 设计,避免千篇一律的 AI 审美。

★ 594Grade B
Pdf✓SAFE

LeastBit/Claude_skills_zh-CN

全面的 PDF 操作工具包,用于提取文本和表格、创建新 PDF、合并/拆分文档以及处理表单。当 Claude 需要填写 PDF 表单或以编程方式大规模处理、生成或分析 PDF 文档时使用。

★ 594Grade B

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/leastbit/mcp-builder/badge.svg)](https://modelsatlas.com/skills/leastbit/mcp-builder/)

Questions about Mcp Builder

What does the Mcp Builder skill do?
Anthropics/skills中文学习版本 来自:https://github.com/anthropics/skills
Is Mcp Builder safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Mcp Builder access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (adadc22120ab), read on 2026-10-19. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.