Agent skill · Backend & API

mcp-integration

This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.

Anthropic33,591★ · +352/wk · 2 repos on radarProfile →
claude-codeApache-2.0
Install
npx skills add anthropics/claude-plugins-official --skill mcp-integration --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 7
SKILL.md size: 12 KB
Bundled scripts: none
Version: 0.1.0
Path: plugins/plugin-dev/skills/mcp-integration/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 33,027 · +241 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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: ```json { "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: ```json { "name": "my-plugin", "version": "1.0.0", "mcpServers": { "plugin-api": { "command": "${CLAUDE_PLUGIN_ROOT}/servers/api-server", "args": ["--port", "8080"

What's inside
Steps it walks through
  1. Overview
  2. MCP Server Configuration Methods
  3. Method 1: Dedicated .mcp.json (Recommended)
  4. Method 2: Inline in plugin.json
  5. MCP Server Types
  6. stdio (Local Process)
  7. SSE (Server-Sent Events)
  8. HTTP (REST API)
  9. WebSocket (Real-time)
  10. Environment Variable Expansion
  11. MCP Tool Naming
  12. Using MCP Tools in Commands
  13. Lifecycle Management
  14. Authentication Patterns
Ships with 6 files
  • examples/http-server.json
  • examples/sse-server.json
  • examples/stdio-server.json
  • references/authentication.md
  • references/server-types.md
  • references/tool-usage.md
Commands it runs
claude --debug
More from claude-plugins-official
All skills →
About this skill
What does the mcp-integration skill do?

This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.

How do I install it?

Run `npx skills add anthropics/claude-plugins-official --skill mcp-integration --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From anthropics/claude-plugins-official, a repository with 33,027 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going