# 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. Source: https://skillsagentes.com/skills/anthropics/claude-code/mcp-integration Repository: https://github.com/anthropics/claude-code Author: anthropics License: not specified Updated: hace 9 meses Context cost: 110 tok installed, 3.1k tok once triggered, 11.7k tok with every bundled file Bundle: 7 files, 46 KB Permissions requested: none declared ## Install ```bash npx -y skills add anthropics/claude-code --skill mcp-integration --agent claude-code ``` ## What it does - Guía la configuración de servidores MCP en plugins de Claude Code mediante .mcp.json o mcpServers en plugin.json - Explica los tipos de servidor stdio, SSE, HTTP y WebSocket con ejemplos de configuración - Documenta el naming de herramientas MCP y cómo pre-allow tools en allowed-tools - Cubre autenticación OAuth y por token, manejo de errores y buenas prácticas de seguridad ## Use it when - El usuario pide 'add MCP server' o 'integrate MCP' - Se necesita configurar MCP en un plugin o usar .mcp.json - Se va a conectar un servicio externo vía Model Context Protocol - Se discuten tipos de servidor MCP (SSE, stdio, HTTP, WebSocket) ## What triggers it - "Añade un servidor MCP a mi plugin" - "Configura .mcp.json para conectar con una API externa" - "Quiero integrar MCP con autenticación OAuth en mi plugin de Claude Code" ## Before you install - Requiere tener un plugin de Claude Code y, según el tipo de servidor, un binario local, URL del servicio o credenciales/tokens de autenticación. - Environment: API_KEY, API_TOKEN, CLAUDE_PLUGIN_ROOT, DB_URL, MY_API_KEY, TOKEN ## Files - SKILL.md — 12 KB - examples/http-server.json — 502 B - examples/sse-server.json — 413 B - examples/stdio-server.json — 686 B - references/authentication.md — 10 KB - references/server-types.md — 10 KB - references/tool-usage.md — 11 KB ## SKILL.md Not reproduced here. Read it at https://github.com/anthropics/claude-code/blob/main/plugins/plugin-dev/skills/mcp-integration/SKILL.md --- Skills Agentes — https://skillsagentes.com/skills/anthropics/claude-code/mcp-integration