content/skills/developer-tools-integrations/mcp-to-skill/SKILL.md
Convert MCP (Model Context Protocol) servers to Claude Code Skills. Use when: (1) User wants to convert an MCP server project to a skill (2) User mentions "MCP to skill", "convert MCP", "MCP 转 skill" (3) User has an MCP server codebase and wants to make it a reusable skill (4) User wants to analyze MCP server structure for skill creation (5) User says "MCP project is too hard to install" or "share MCP tools with others" (6) User wants to package MCP tools for non-technical users (7) User asks "how to distribute MCP tools" or "make MCP portable" Supports TypeScript/JavaScript and Python MCP servers. Handles Tools, Resources, and Prompts.
npx skillsauth add bahayonghang/my-claude-code-settings mcp-to-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Convert MCP servers into Claude Code Skills for easier distribution and usage.
Run the analysis script to extract tool/resource/prompt definitions:
python3 scripts/analyze_mcp.py /path/to/mcp-project --pretty
The script outputs JSON with: tools, resources, prompts, mcp_sdks, dependencies.
For manual analysis, inspect these key files:
package.json / pyproject.toml — dependencies and entry pointsrc/index.ts / main.py — server setup, tool/resource/prompt registrationMap all three MCP primitives:
| MCP Primitive | Skill Equivalent |
|---------------|------------------|
| Tool | scripts/ executable or instruction section |
| Resource | references/ markdown file (static) or script (dynamic) |
| Prompt | Workflow instruction section in SKILL.md |
For the complete mapping table and conversion patterns, see references/MAPPING.md.
For each MCP tool, pick the right pattern:
scripts/tool_name.pyDecision: Can it run standalone? → A or B. Is it trivial? → B. Needs server state? → C.
For detailed pattern descriptions and examples, see references/MAPPING.md.
For real-world conversion case studies, see references/EXAMPLES.md.
{skill-name}/
├── SKILL.md # Core instructions
├── scripts/
│ └── {tool_name}.{ext} # Pattern A tool scripts
├── references/
│ └── {topic}.md # MCP Resources → reference docs
└── config/
└── secrets.example.md # Required env vars / API keys
---
name: {skill-name}
description: |
{Original MCP server description}. Use when:
(1) {Primary use case from tool descriptions}
(2) {Secondary use case}
---
# {Skill Name}
{Brief description}
## Prerequisites
{Setup: permissions, API keys, runtime requirements}
Required environment variables: (list from MCP server's .env / config)
## Tools
### {Tool Name}
{Description, usage, parameters, example}
config/secrets.example.md listing all required env vars with descriptionsreferences/MAPPING.md § "Secrets & Environment Variables" for patternsBefore packaging, run through this checklist:
name, description with triggers)references/ fileschmod +x) and tested standaloneconfig/secrets.example.md exists if env vars are neededTest the skill by:
development
Use only when the user explicitly asks for swarm, subagents, parallel agents, dynamic workflow, multi-agent orchestration, 多智能体编排, or when the task truly needs coordinated research plus implementation plus review plus verification packets. Do not use for ordinary code review, planning-only work, single-line bugfixes, routine audits, or migrations unless orchestration is requested or at least two independent workflow dimensions are present.
development
Run a code quality review focused on maintainability, structure, abstraction quality, file growth, branching complexity, boundary cleanliness, and refactoring opportunities. Use when the user asks for code quality review, code review, maintainability review, architecture quality review, PR code quality feedback, 代码质量审查, 代码质量 review, 可维护性审查, 架构质量审查, or review comments about code structure. Do not use for pure security review, formatting-only review, performance profiling, or implementation tasks unless the user also asks for a code quality review.
development
Plan-first brainstorming workflow that turns an idea into an approved Markdown implementation plan by default. Use when the user wants to brainstorm, design, scope, or plan a feature/spec before implementation. Spark explores project context, asks only blocking questions, writes the plan under the project root's .plannings/YYYY-MM-DD-feature-slug.md path, self-reviews it, and waits for user approval. Create an HTML or visual plan/spec only when the user explicitly asks for HTML, browser-viewable, or visual output; save the paired .html beside the Markdown plan.
development
Run a code quality review focused on maintainability, structure, abstraction quality, file growth, branching complexity, boundary cleanliness, and refactoring opportunities. Use when the user asks for code quality review, code review, maintainability review, architecture quality review, PR code quality feedback, 代码质量审查, 代码质量 review, 可维护性审查, 架构质量审查, or review comments about code structure. Do not use for pure security review, formatting-only review, performance profiling, or implementation tasks unless the user also asks for a code quality review.