This lets you bundle Model Context Protocol servers directly into Claude Code plugins so external services show up as native tools. Instead of manually configuring MCP connections, you package them with your plugin using a .mcp.json file at the root. Useful when you're building plugins that need database access, API integrations, or OAuth flows and want users to get everything working without extra setup steps. The repo includes templates for both dedicated MCP config files and inline server definitions. It's forked from ovachiever/droid-tings and lives in a templates collection with 27.7K stars, though the security audits are mixed.

GitHub stars
30.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --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/davila7/claude-code-templates
Categories
Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1davila7 avatarSQL Injection Testingdavila7/claude-code-templatesThis skill should be used when the user asks to "test for SQL injection vulnerabilities", "perform SQLi attacks", "bypass authentication using SQL injection", "0skills.sh installs
2FISHers6 avatarsetupFISHers6/clawBro从零引导配置 clawbro-gateway,包括 API Key、默认 Agent、运行模式(Solo/Multi-agent/Team)、Channel(Lark/DingTalk)。无需 fork 或重新编译。0skills.sh installs
3github avatarmcp-implementation-security-reviewgithub/awesome-copilotReview the implementation source code of MCP (Model Context Protocol) servers, clients, and tool handlers against a security baseline — authentication, sessions0skills.sh installs
4hoangsonww avatardebug-live-issuehoangsonww/claude-code-agent-monitorDebug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data inc0skills.sh installs
5hoodini avatarmeta-adshoodini/ai-agents-skillsPull, analyze, manage, and CREATE Meta ads (Facebook, Instagram, Messenger, Threads, Click-to-WhatsApp) via the Marketing API. Use when the user mentions Meta/F0skills.sh installs
6hypnguyen1209 avatarweb-pentesthypnguyen1209/offensive-claudeFull-spectrum web application penetration testing — OWASP Top 10, API security, authentication attacks, business logic, WAF bypass, race conditions0skills.sh installs