mcp-to-plugin

Convert MCP Servers into Claude Code Plugins with Keychain credential migration.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/PsychQuant/psychquant-claude-plugins --skill mcp-to-plugin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-to-plugin
Source: https://github.com/PsychQuant/psychquant-claude-plugins/tree/main/plugins/mcp-tools/skills/mcp-to-plugin
Command: npx skills add https://github.com/PsychQuant/psychquant-claude-plugins --skill mcp-to-plugin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of transforming existing MCP Servers into robust Claude Code Plugins, enhancing security, portability, and functionality.

Core Features & Use Cases

  • Secure Credential Management: Migrates sensitive API keys and secrets from plaintext ~/.claude.json to the macOS Keychain.
  • Plugin Structure Generation: Automatically creates the necessary directory structure, plugin.json, .mcp.json, wrapper scripts, and hooks for a new Claude Code Plugin.
  • Use Case: You have a custom MCP Server for interacting with a specific API, currently configured in ~/.claude.json. This Skill will convert it into a shareable, secure Claude Code Plugin, complete with Keychain integration and automated binary downloads.

Quick Start

Convert the MCP server named 'my-mcp-server' into a new Claude Code Plugin.

Frequently Asked Questions about mcp-to-plugin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert an MCP Server to a Claude Code Plugin?

You can convert an MCP Server to a Claude Code Plugin by automating the generation of wrapper scripts, hooks, and configuration files, transforming the server into a self-contained and shareable plugin structure.

How do I secure API keys stored in my Claude configuration file?

To secure API keys stored in plaintext configurations, you can migrate sensitive credentials from the Claude configuration file directly into the macOS Keychain for secure credential management.

Can I use macOS Keychain to manage secrets for Claude Code Plugins?

Yes, macOS Keychain can be used to manage secrets for Claude Code Plugins by migrating sensitive API keys and credentials away from plaintext files into the secure Keychain environment.

What is the best way to make MCP Servers portable for Claude Code?

The best way to make MCP Servers portable is to convert them into self-contained Claude Code Plugins, which automatically generates the necessary directory structure, wrapper scripts, and configuration files for sharing.

What limitations exist when configuring MCP Servers directly in Claude?

Configuring MCP Servers directly in Claude presents challenges related to credential exposure in plaintext files, limited portability, and feature restrictions that are resolved by converting to a plugin architecture.

What files are needed to build a Claude Code Plugin?

Building a Claude Code Plugin requires a specific directory structure containing a plugin.json file, an .mcp.json configuration, wrapper scripts, and hooks to ensure proper functionality and integration.