Skip to content
Back to skills

Collection

ASecurity

Converts MCP servers to Claude Skills with 90%+ context savings using progressive disclosure pattern. Supports automatic detection and on-demand conversion.

  • 24 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 8, 2026
testingpythongobashtestinggitdocumentation

Works with

  • mcp

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-44d68d4b/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-44d68d4b)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mcp-converter
description: Converts MCP servers to Claude Skills with 90%+ context savings using progressive disclosure pattern. Supports automatic detection and on-demand conversion.
allowed-tools: read, write, bash, grep, glob
version: 1.0
best_practices:
  - Convert MCP servers with 10+ tools
  - Keep critical tools (1-5) as MCP
  - Use automatic detection for new MCP servers
  - Validate generated Skills before installation
error_handling: graceful
streaming: supported
---

# MCP-to-Skill Converter Skill

## Identity

MCP-to-Skill Converter - Transforms MCP servers into Claude Skills using progressive disclosure to achieve 90%+ context savings while maintaining full functionality.

## Capabilities

- **MCP Server Introspection**: Analyze MCP servers to discover tools and capabilities
- **Skill Generation**: Generate complete Skill structure (SKILL.md, executor.py, config)
- **Progressive Disclosure**: Create Skills with metadata-only loading (~100 tokens)
- **Automatic Detection**: Monitor and detect new MCP servers for conversion
- **Validation**: Validate generated Skills before installation
- **Installation**: Install converted Skills to user's Skills directory

## The Problem

MCP servers load all tool definitions into context at startup:
- 20+ tools = 30-50k tokens consumed immediately
- Context fills before Claude does any work
- Hard to scale beyond ~100 tools
- Most tools unused in each conversation

## The Solution

Convert MCP servers to Skills with progressive disclosure:
- **Startup**: ~100 tokens (metadata only)
- **When used**: ~5k tokens (full instructions)
- **Executing**: 0 tokens (runs externally)
- **Savings**: 90%+ context reduction

## How It Works

1. **Introspection**: Connect to MCP server and discover all tools
2. **Analysis**: Calculate token usage and conversion eligibility
3. **Generation**: Create Skill structure with progressive disclosure
4. **Validation**: Verify Skill structure and functionality
5. **Installation**: Install to `~/.claude/skills/`

## Usage Patterns

### On-Demand Conversion

**When to Use**:
- You have an MCP server with 10+ tools
- Context space is critical
- Most tools aren't used in every conversation
- You want maximum context efficiency

**How to Invoke**:
```
"Convert the github MCP server to a Skill"
"Convert all MCP servers with more than 10 tools"
"Convert the custom-server MCP to a Skill"
```

**What It Does**:
- Reads MCP server configuration
- Introspects server to discover tools
- Generates Skill structure
- Validates and installs Skill

### Automatic Detection

**When Enabled**:
- Monitor `.claude/.mcp.json` for changes
- Detect new MCP servers
- Analyze tool count and token usage
- Auto-convert based on rules

**Configuration**:
```yaml
auto_convert:
  enabled: true
  threshold:
    tool_count: 10
    estimated_tokens: 5000
  exceptions:
    - github  # Keep as MCP
    - memory  # Keep as MCP
```

## Skill Structure

Generated Skills follow this structure:

```
skill-name/
├── SKILL.md          # Metadata and instructions (~100 tokens)
├── executor.py       # Dynamic MCP tool execution
└── config.json       # MCP server configuration
```

### SKILL.md (Progressive Disclosure)

**Metadata Only** (~100 tokens):
- Skill name and description
- Tool categories
- When to use guidance
- Quick reference

**Full Instructions** (~5k tokens, loaded when used):
- Complete tool documentation
- Usage examples
- Error handling
- Best practices

### executor.py

Handles MCP tool calls dynamically:
- Connects to MCP server
- Executes tool calls
- Returns results
- Handles errors

## Integration

### With Tool Search

Skills work alongside Tool Search:
- **Tool Search**: Semantic discovery of tools
- **Skills**: On-demand tool loading with minimal context
- **Combined**: Optimal context usage for large tool libraries

### With Skill Builder

Uses Skill Builder plugin for:
- Validation of generated Skills
- Template-based generation
- Testing and verification
- Installation management

### With Marketplace

Integrates with superpowers-marketplace:
- Install marketplace plugins
- Auto-detect MCP servers in plugins
- Convert plugin MCP servers to Skills
- Manage plugin ecosystem

## Best Practices

### When to Convert

**Convert to Skill When**:
- MCP server has 10+ tools
- Most tools unused in each conversation
- Context space is critical
- Tools are independent

**Keep as MCP When**:
- 1-5 tools (minimal context impact)
- Complex OAuth flows required
- Persistent connections needed
- Cross-platform compatibility critical

### Critical Tools to Keep as MCP

Keep these as MCP (always loaded):
- Core file operations: `read_file`, `write_file`, `search_code`
- Essential integrations: `create_pull_request`, `get_issue`
- Frequently used: `take_screenshot`, `navigate_page`

### Hybrid Approach

**Best Strategy**: Use both MCP and Skills
- **MCP**: Core tools (1-5 tools, always loaded)
- **Skills**: Extended toolset (10+ tools, on-demand)
- **Tool Search**: Discovery and semantic matching

## Examples

### Example 1: Convert GitHub MCP

```bash
# On-demand conversion
"Convert the github MCP server to a Skill"

# Result: Creates ~/.claude/skills/github/
# - SKILL.md (100 tokens metadata)
# - executor.py (dynamic tool calls)
# - config.json (MCP configuration)
```

### Example 2: Batch Conversion

```bash
# Convert multiple MCP servers
"Convert all MCP servers with more than 10 tools to Skills"

# Analyzes all MCP servers
# Converts eligible servers
# Installs all generated Skills
```

### Example 3: Automatic Detection

```yaml
# .claude/skills/mcp-converter/conversion_rules.yaml
auto_convert:
  enabled: true
  threshold:
    tool_count: 10
  exceptions:
    - github
    - memory
```

## Error Handling

**Common Issues**:
- MCP server not responding: Check configuration and environment variables
- Tool introspection fails: Verify MCP server is accessible
- Skill generation errors: Check templates and validation
- Installation fails: Verify Skills directory permissions

**Recovery**:
- Retry with verbose logging
- Validate MCP configuration
- Check Skill Builder integration
- Review conversion rules

## Context Savings

**Before (MCP)**:
```
20 tools = 30k tokens always loaded
Context available: 170k / 200k = 85%
```

**After (Skills)**:
```
20 skills = 2k tokens metadata
When 1 skill active: 7k tokens
Context available: 193k / 200k = 96.5%
```

## Dependencies

- `mcp` Python package (for MCP server introspection)
- Skill Builder plugin (for validation)
- Existing MCP configuration (`.claude/.mcp.json`)

## Related Skills

- **tool-search**: Semantic tool discovery
- **marketplace-manager**: Plugin installation and management
- **memory-manager**: Context persistence

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.