
Mcp Integration
This is your bridge between Claude Code plugins and external services through the Model Context Protocol. It handles four connection types: stdio for local processes, SSE for OAuth-enabled cloud services, HTTP for REST APIs, and WebSocket for real-time streams. The skill walks you through bundling MCP servers with your plugin, either in a dedicated .mcp.json or inline in plugin.json, complete with environment variable expansion using ${CLAUDE_PLUGIN_ROOT} for portability. Tools get auto-prefixed as mcp__plugin_name_server__tool_name, which matters when you're setting up allowed-tools in command frontmatter. The documentation is thorough on authentication patterns and lifecycle management, though you'll want to be careful with token handling and avoid wildcard tool permissions.
- skills.sh installs
- 7.5K
- GitHub stars
- 46.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add anthropics/claude-plugins-official --skill mcp-integration --agent claude-codeInstalls into .claude/skills of the current project.
Files
MCP Integration for Claude Code Plugins
Overview
Model Context Protocol (MCP) enables Claude Code plugins to integrate with external services and APIs by providing structured tool access. Use MCP integration to expose external service capabilities as tools within Claude Code.
Key capabilities:
- Connect to external services (databases, APIs, file systems)
- Provide 10+ related tools from a single service
- Handle OAuth and complex authentication flows
- Bundle MCP servers with plugins for automatic setup
MCP Server Configuration Methods
Plugins can bundle MCP servers in two ways:
Method 1: Dedicated .mcp.json (Recommended)
Create .mcp.json at plugin root:
{
"database-tools": {
"command": "${CLAUDE_PLUGIN_ROOT}/servers/db-server",
"args": ["--config", "${CLAUDE_PLUGIN_ROOT}/config.json"],
"env": {
"DB_URL": "${DB_URL}"
}
}
}
Benefits:
- Clear separation of concerns
- Easier to maintain
- Better for multiple servers
Method 2: Inline in plugin.json
Add mcpServers field to plugin.json:
Sponsors
Details
- Repository
- github.com/anthropics/claude-plugins-official
- Categories
- Backend & APIs, AI & Agent Building
- First seen
- May 16, 2026
More from anthropics/claude-plugins-official
All 24- Command Development7.4K
- Writing Hookify Rules7.4K
- Build Mcp Server7.4K
- Plugin Structure7.3K
- Plugin Settings7.3K
- Build Mcp App7.1K
- Build Mcpb6.9K
- Math Olympiad4.7K
- Configure4.5K
- Access4.5K
- Session Report4.3K
- M5 Onboard3.5K
- Cardputer Buddy3.5K
- Stripe Best Practices1.4K
- Example Skill208
- Frontend Design18.4K
- Claude Md Improver14.2K
- Claude Automation Recommender10.7K
- Playground8.6K
- Skill Creator8.3K
- Agent Development7.9K
- Skill Development7.7K
- Hook Development7.5K