MCP Integration

Configure MCP servers in Claude Code plugins via .mcp.json or plugin.json.

Updated Dec 20, 2025
One-click install
npx skills add https://github.com/escarface/gestionSaredigital --skill mcp-integration-escarface
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: MCP Integration
Source: https://github.com/escarface/gestionSaredigital/tree/main/.claude/skills/mcp-integration
Command: npx skills add https://github.com/escarface/gestionSaredigital --skill mcp-integration-escarface

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides guidance and practical configuration patterns for integrating Model Context Protocol (MCP) servers into Claude Code plugins, enabling external tool access and seamless inter-service communication.

Core Features & Use Cases

  • Configuration patterns: Setup MCP via .mcp.json or plugin.json with multiple server types (stdio, SSE, HTTP, WebSocket).
  • Security & authentication: OAuth-based, token-based, and environment-driven credential handling.
  • Tool discovery & usage: Clear naming conventions and in-command /mcp and tool usage guidelines.
  • Use Case: A developer adds an external data service to a Claude plugin and exposes 10+ tools for automation and orchestration.

Quick Start

Create a sample .mcp.json at the plugin root and verify tools appear with the /mcp command, then start using the MCP tools in your commands.

Frequently Asked Questions about MCP Integration

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

FAQPage Schema
How do I integrate MCP servers with Claude Code plugins?

MCP server integration with Claude Code plugins requires configuring .mcp.json or plugin.json at your plugin root with server details (stdio, SSE, HTTP, or WebSocket), then verifying tool discovery via the /mcp command to expose external service tools.

What authentication methods work with MCP server integration?

MCP integration supports OAuth-based, token-based, and environment-driven credential handling. Environment variables expand automatically within configuration, enabling secure credential management across stdio, SSE, HTTP, and WebSocket server types.

Can I connect multiple MCP servers to a single Claude Code plugin?

Yes, .mcp.json and plugin.json support multiple server configurations. Each server type (stdio, SSE, HTTP, WebSocket) connects independently with automatic lifecycle management, tool naming conventions, and unified tool discovery through the /mcp command.

What's the quickest way to start using MCP tools in Claude Code?

Create a .mcp.json file at your plugin root with your MCP server configuration, run the /mcp command to verify tool discovery, then begin calling the exposed tools directly within your plugin commands.

Do I need different configurations for stdio versus HTTP MCP servers?

Configuration differs by server type—stdio uses process spawning, while HTTP and WebSocket use network endpoints. Both .mcp.json and plugin.json support all types with environment variable expansion and automatic lifecycle management for each.

What security practices should I follow for MCP server integration?

Use environment variables for credentials, avoid hardcoding tokens, apply OAuth and token-based authentication patterns, validate external service endpoints, and manage server lifecycle automatically to prevent credential exposure and unauthorized access.