New advertisers: 50% off your first month with code FIRSTMONTHSee slots
anthropics avatar

Mcp Integration

Guidance for connecting external services to Claude Code plugins through Model Context Protocol servers.

skills.sh installs
7.7K
GitHub stars
47.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers two bundling methods: a dedicated .mcp.json at plugin root and an inline mcpServers field in plugin.json
  • Documents four server types, stdio, SSE, HTTP, and WebSocket, with configuration examples and authentication behavior for each
  • Explains ${CLAUDE_PLUGIN_ROOT} and user environment variable expansion, plus the mcp__plugin_<plugin>_<server>__<tool> naming scheme
  • Enforces a least-privilege pattern by pre-allowing specific MCP tools in command frontmatter and requiring HTTPS or WSS connections

Install

$ npx -y skills add anthropics/claude-plugins-official --skill mcp-integration -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

Details

Repository
github.com/anthropics/claude-plugins-official
Category
Skill & Plugin Building
First seen
May 16, 2026

More from anthropics/claude-plugins-official

All 23

Similar to Mcp Integration

More Skill & Plugin Building