anthropics avatar

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-code

Installs 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
1aws avatarconnecting-to-data-sourceaws/agent-toolkit-for-awsCreate and troubleshoot AWS Glue connections to JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS), Redshift, Snowflake, and BigQuery. Gathers connecti7.2Kskills.sh installs
2vercel avatarvercel-clivercel/vercelDeploy, manage, inspect, and troubleshoot Vercel projects from the command line. Use for Vercel deployments, build failures, projects and teams, environment var7.2Kskills.sh installs
3aws avatarstoring-and-querying-vectorsaws/agent-toolkit-for-awsStore and query vector embeddings using Amazon S3 Vectors, a cost-effective long-term vector storage service with its own API namespace (s3vectors). Triggers on7Kskills.sh installs
4aws avataringesting-into-data-lakeaws/agent-toolkit-for-awsImport data into the AWS data lake from S3 files, local uploads, JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS, Aurora), Amazon Redshift, Snowflake7Kskills.sh installs
5github avatarcreate-web-formgithub/awesome-copilotCreate robust, accessible web forms with best practices for HTML structure, CSS styling, JavaScript interactivity, form validation, and server-side processing. 7Kskills.sh installs
6aws avatarconfiguring-vpc-endpoints-for-private-aws-service-accessaws/agent-toolkit-for-awsConfigures VPC endpoints (interface and gateway) for private AWS service access using AWS PrivateLink. Use when setting up secure private connectivity to S3, Dy6.8Kskills.sh installs