Token导航 LogoToken导航TokenDH.com
MCP To Skills logo
开发工具stdio官方级别未说明来源级核验

MCP To Skills

MCP Server

将MCP服务器配置自动转换为Claude Code技能的工具,支持从npm或PyPI获取源代码并生成技能文件和脚本。

工具数

0

提示词数

0

GitHub Stars

2

资源数

0
开发工具PythonClaudeClaude DesktopClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

fakoli

提供方

fakoli

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install mcp-to-skills

详细介绍

mcp-to-skills

Convert MCP (Model Context Protocol) servers into Claude Code skills.

![CI](https://github.com/fakoli/mcp-to-skills/actions/workflows/ci.yml) ](https://badge.fury.io/py/mcp-to-skills) ![Python 3.11+](https://www.python.org/downloads/) ![License: MIT](https://opensource.org/licenses/MIT)

Overview

mcp-to-skills automatically converts MCP server configurations into Claude Code skills by:

  1. Fetching package source code from npm or PyPI
  2. Analyzing the source with Claude to extract tool definitions
  3. Generating skill files with documentation and wrapper scripts

Installation

pip install mcp-to-skills

Or with uv:

uv pip install mcp-to-skills

Quick Start

1. Set up your API key

export ANTHROPIC_API_KEY="sk-ant-..."

Or add it to a .env file (see Environment Variables below).

2. List your MCP servers

mcp-to-skills list

3. Convert a server to a skill

mcp-to-skills convert --mcp sqlite --claude

4. Use the generated skill

uv run ~/.claude/skills/sqlite/scripts/read_query.py --query "SELECT * FROM users"

Commands

mcp-to-skills list [CONFIG_PATH]

List MCP servers in a configuration file.

# Auto-detect config
mcp-to-skills list

# Explicit path
mcp-to-skills list /path/to/config.json

mcp-to-skills convert [CONFIG_PATH] [OPTIONS]

Convert MCP server(s) to Claude Code skills.

OptionDescription
--mcp, -mConvert only this server by name
--output, -oOutput directory (default: ./skills)
--claudeOutput to ~/.claude/skills/
--cursorOutput to ~/.cursor/skills/
--dry-run, -nPreview without writing files
# Convert specific server
mcp-to-skills convert --mcp filesystem

# Convert all servers to Claude Code
mcp-to-skills convert --claude

# Preview output
mcp-to-skills convert --dry-run

Configuration

The CLI auto-detects configuration files from:

  • ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
  • ~/.config/claude/claude_desktop_config.json (Linux)
  • ./mcp-servers.json (current directory)

Supported Formats

Claude Desktop format:

{
  "mcpServers": {
    "sqlite": {
      "command": "uv",
      "args": ["run", "mcp-server-sqlite", "--db", "/data/app.db"]
    }
  }
}

Flat format:

{
  "sqlite": {
    "command": "uv",
    "args": ["run", "mcp-server-sqlite"]
  }
}

Output

For each MCP server, mcp-to-skills generates:

skills/sqlite/
├── SKILL.md           # Skill manifest with documentation
└── scripts/
    ├── read_query.py  # PEP 723 wrapper scripts
    ├── write_query.py
    └── list_tables.py

SKILL.md

Contains:

  • Frontmatter with name and description
  • Tool documentation with parameters
  • Environment variable requirements
  • Usage examples

Wrapper Scripts

Python scripts with:

  • PEP 723 inline dependencies (works with uv run)
  • argparse CLI interface
  • JSON output option (--json)
  • Error handling

Requirements

  • Python 3.11+
  • ANTHROPIC_API_KEY environment variable
  • npm (for npm-based MCP servers)
  • pip (for Python-based MCP servers)

Environment Variables

mcp-to-skills automatically loads environment variables from .env files:

  1. ~/.env - Global environment file in your home directory
  2. .env - Local environment file in the current directory

Local .env takes precedence over the global one.

Example .env File

# ~/.env or ./.env
ANTHROPIC_API_KEY=sk-ant-...

MCP servers can also specify environment variables in their config using the env key. See examples/ for more configurations.

Documentation

SectionDescription
Getting StartedInstallation and first conversion
ConfigurationConfig file formats
ExamplesSample MCP server configurations
CLI ReferenceComplete command docs
ArchitectureTechnical design
TroubleshootingCommon issues

Development

# Clone and install
git clone https://github.com/fakoli/mcp-to-skills.git
cd mcp-to-skills
uv sync --dev

# Run tests
uv run pytest

# Type check
uv run pyright src/

# Lint
uv run ruff check src/

See CONTRIBUTING.md for contribution guidelines.

License

MIT

目录标签

目录标签

开发工具PythonClaude代码转换本地部署自动化工具ClaudeCodeMCP服务器

支持客户端

Claude DesktopClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

api-key

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdioapi-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP