
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
What it does
- Covers two bundling methods: a dedicated
.mcp.jsonat plugin root and an inlinemcpServersfield inplugin.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 themcp__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 -yInstalls 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- Command Development7.7K
- Build Mcp Server7.6K
- Writing Hookify Rules7.6K
- Plugin Structure7.6K
- Plugin Settings7.5K
- Build Mcp App7.4K
- Build Mcpb7.1K
- Math Olympiad4.9K
- Configure4.7K
- Access4.7K
- Session Report4.6K
- M5 Onboard3.8K
- Cardputer Buddy3.8K
- Example Skill213
- Frontend Design19.1K
- Claude Md Improver15K
- Claude Automation Recommender11.5K
- Playground8.9K
- Skill Creator8.6K
- Agent Development8.1K
- Skill Development8K
- Hook Development7.8K
Similar to Mcp Integration
More Skill & Plugin Building
mcp-builderanthropics/skills143.3K installsGuide for building MCP servers that let LLMs call external APIs through well-designed, agent-friendly tools.
mcp-hubclaude-office-skills/skills4.7K installsCurated access to MCP servers for filesystems, databases, APIs, and document tools through Claude.
mcp-setupyeachan-heo/oh-my-claudecode634 installsGuided setup for popular MCP servers that add web search, file system access, and GitHub integration to Claude Code.
build-mcp-serveranthropics/claude-plugins-official7.6K installsGuided design of MCP servers, starting with use-case discovery and deployment choice before any scaffolding.