Answer: Declare the MCP server in `.mcp.json` at the plugin root, in the same shape as a project `.mcp.json`. You can also omit the `mcpServers` wrapper and put the server at the top level of the file. Status: Confirmed Entry: tool/claude-code/integrations/add-mcp-server-to-plugin Revision: 1 Digest: sha256:4f5bb956a91f92e5 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:59Z Last changed: 2026-11-13T03:04:59Z Last verified: 2026-11-20T12:22:57Z Next check: 2026-11-21T12:22:57Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config file | .mcp.json | [1] | 2026-11-20 example server name | db | [1] | 2026-11-20 server name in /mcp | plugin:my-plugin:db | [1] | 2026-11-20 validate command | claude plugin validate | [1] | 2026-11-20 minimum version for validate | v2.1.281 | [1] | 2026-11-20 minimum version for --config | v2.1.285 | [1] | 2026-11-20 Sources: [1] Anthropic. "Add components to a plugin". https://code.claude.com/docs/en/plugins/components.md Role: primary. Accessed: 2026-11-20T12:22:57Z Quote: "Declare it in `.mcp.json` at the plugin root" (Supports: config file) Quote: "This `.mcp.json` declares one server named `db`" (Supports: example server name) Quote: "run `/mcp` to confirm the server appears as `plugin:my-plugin:db`" (Supports: server name in /mcp) Quote: "`claude plugin validate` checks `.mcp.json`" (Supports: validate command) Quote: "Requires Claude Code v2.1.281 or later." (Supports: minimum version for validate) Quote: "Requires Claude Code v2.1.285 or later" (Supports: minimum version for --config) Published: 2026-11-20T02:52:52Z Snapshot SHA-256: 1ea4367112bf1ab73bd954ed6ee6bebb411d4a4dde3081f89bed44ba55a21a04 (captured 2026-11-13T12:12:25Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T12:12:26Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:22:57Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:22:57Z Last attempt: 2026-11-20T12:22:57Z Notes and limitations: Extracted automatically from a single official source (section "MCP servers"). Related: https://latestn.com/tool/claude-code/integrations/add-remote-http-mcp-server How do I add a remote HTTP MCP server to Claude Code? https://latestn.com/tool/claude-code/integrations/add-verify-mcp-server How do I add and verify an MCP server in Claude Code? https://latestn.com/tool/claude-code/integrations/attribute-actions-end-users How do I attribute Claude Agent SDK telemetry actions to end users? https://latestn.com/tool/claude-code/install-and-setup/wsl-session-requirements What are the requirements to run a Claude Code Desktop session in WSL? https://latestn.com/tool/claude-code/integrations/add-language-without-plugin How do I add code intelligence for a language that has no official Claude Code plugin? https://latestn.com/tool/claude-code/integrations/add-mcp-server How do I add an MCP server to Claude Code Agent SDK in code or from a config file? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:04:59Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/integrations/add-mcp-server-to-plugin/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/integrations/add-mcp-server-to-plugin POST: https://latestn.com/dispute/tool/claude-code/integrations/add-mcp-server-to-plugin with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/integrations/add-mcp-server-to-plugin?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add an MCP server to a Claude Code plugin? Revision 1, last verified 2026-11-20T12:22:57Z. https://latestn.com/tool/claude-code/integrations/add-mcp-server-to-plugin (accessed 2026-11-21T09:59:59Z). @misc{LatestN_tool_claude_code_integrations_add_mcp_server_to_plugin_r1, title = {How do I add an MCP server to a Claude Code plugin?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/integrations/add-mcp-server-to-plugin}}, note = {Revision 1; digest sha256:4f5bb956a91f92e5; last verified 2026-11-20T12:22:57Z; accessed 2026-11-21T09:59:59Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/integrations/add-mcp-server-to-plugin