{"id":596457,"date":"2025-09-05T15:47:16","date_gmt":"2025-09-05T14:47:16","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=phpstorm&#038;p=596457"},"modified":"2025-09-10T15:41:19","modified_gmt":"2025-09-10T14:41:19","slug":"connect-mcp-servers-to-junie-in-phpstorm","status":"publish","type":"phpstorm","link":"https:\/\/blog.jetbrains.com\/fr\/phpstorm\/2025\/09\/connect-mcp-servers-to-junie-in-phpstorm","title":{"rendered":"Connect MCP Servers to Junie in PhpStorm"},"content":{"rendered":"\n<p>The <strong>Model Context Protocol (MCP)<\/strong> is an open standard introduced by <a href=\"https:\/\/docs.anthropic.com\/en\/docs\/mcp\" data-type=\"link\" data-id=\"https:\/\/docs.anthropic.com\/en\/docs\/mcp\" target=\"_blank\" rel=\"noopener\">Anthropic<\/a>. Think of it as a USB-C port for AI: a consistent way to plug the AI models your AI agent uses into specific tools and data sources. <\/p>\n\n\n\n<p>You can connect <a href=\"https:\/\/www.jetbrains.com\/junie\/\" target=\"_blank\" rel=\"noopener\">Junie<\/a>, the AI coding agent by JetBrains, to a wide variety of <a href=\"https:\/\/github.com\/modelcontextprotocol\/servers?tab=readme-ov-file#-third-party-servers\" target=\"_blank\" rel=\"noopener\">officially provided or community-built MCP servers<\/a>, or build your own MCP server using one of the available SDKs \u2013 including the <a href=\"https:\/\/thephp.foundation\/blog\/2025\/09\/05\/php-mcp-sdk\" target=\"_blank\" rel=\"noopener\">brand-new MCP PHP SDK<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">About the MCP PHP SDK<\/h2>\n\n\n\n<p>MCP SDKs are lightweight frameworks that handle the protocol details so that developers can focus on the application functionality that AI agents will use.<\/p>\n\n\n\n<p>The <a href=\"https:\/\/github.com\/modelcontextprotocol\/php-sdk\" target=\"_blank\" rel=\"noopener\">MCP PHP SDK<\/a> is an official MCP SDK built as a joint effort by <strong>the <\/strong><a href=\"https:\/\/thephp.foundation\/\" target=\"_blank\" rel=\"noopener\"><strong>PHP Foundation<\/strong><\/a><strong>, Anthropic\u2019s MCP team, and <\/strong><a href=\"https:\/\/symfony.com\/\" target=\"_blank\" rel=\"noopener\"><strong>Symfony<\/strong><\/a>. The goal of the project is to provide a <strong>framework-agnostic<\/strong>, production-ready reference implementation that the PHP ecosystem can rely on. For details about using MCP PHP SDK or contributing to it, see <a href=\"https:\/\/github.com\/modelcontextprotocol\/php-sdk\" target=\"_blank\" rel=\"noopener\"><strong>modelcontextprotocol\/php-sdk<\/strong><\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Junie and the MCP<\/h2>\n\n\n\n<p>Whether you are building your own MCP server or using an existing one, here\u2019s how to make it work with the <a href=\"https:\/\/www.jetbrains.com\/junie\/\" target=\"_blank\" rel=\"noopener\">Junie AI coding agent<\/a> in PhpStorm:<\/p>\n\n\n\n<ol>\n<li><strong>Make sure that the MCP server can be accessed and started. <\/strong><br>The specific method for starting an MCP server depends on the server\u2019s implementation \u2013 please refer to the MCP server&#8217;s documentation for instructions.<br><\/li>\n\n\n\n<li><strong>Configure Junie in PhpStorm to connect. <\/strong><br>To add the MCP server to Junie, press <em>\u21e7Shift<\/em> twice to open the search window and search for &#8220;MCP Settings&#8221;. On the <em>MCP Settings<\/em> page, you can see the list of connected servers and add or edit JSON configurations for the MCP servers in the <code>~\/.junie\/mcp.json<\/code> file.<br><br><img decoding=\"async\" loading=\"lazy\" width=\"2560\" height=\"1440\" class=\"wp-image-597167\" style=\"width: 1280px;\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/mcp_settings_junie.png\" alt=\"\"><br>To configure an MCP server at the project level, manually add an <code>mcp.json<\/code> file with your desired server configurations to the <code>.junie\/mcp<\/code> folder in the project root.<br><br>To view the list of actions that Junie can perform through a configured MCP server, locate the server in the <em>MCP Settings<\/em> list and expand the <em>Status<\/em> drop-down.<br><br><img decoding=\"async\" loading=\"lazy\" width=\"2560\" height=\"1446\" class=\"wp-image-597178\" style=\"width: 1280px;\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/view_available_mcp_ser_tools.png\" alt=\"\"><br>For example, with the <a href=\"https:\/\/boost.laravel.com\/installed\" target=\"_blank\" rel=\"noopener\"><strong>Laravel Boost MCP server<\/strong><\/a>, Junie gets useful tools for working with Laravel projects, such as listing Artisan commands, routes, or config files, reading logs, querying databases, or searching versioned documentation.<br><br>This is where the MCP shines: It bridges the gap between LLMs and dynamic, framework- and project-specific context and data.<br><\/li>\n\n\n\n<li><strong>Benefit from improved context when using Junie.&nbsp;<\/strong><br>When running a prompt, Junie analyzes what commands registered with the configured MCP servers are relevant and executes them through the respective MCP server.<br><br><img decoding=\"async\" loading=\"lazy\" width=\"2564\" height=\"1454\" class=\"wp-image-597189\" style=\"width: 1280px;\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/laravel-boost-junie.png\" alt=\"\"><\/li>\n<\/ol>\n\n\n\n<p>The Junie coding agent keeps evolving. Join the conversation in our <a href=\"https:\/\/jb.gg\/junie\/web\" target=\"_blank\" rel=\"noopener\">Junie Discord community<\/a> and help shape what\u2019s next for Junie.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A new chapter for MCP servers in PHP<\/h2>\n\n\n\n<p>The official <a href=\"https:\/\/github.com\/modelcontextprotocol\/php-sdk\" target=\"_blank\" rel=\"noopener\">MCP PHP SDK<\/a> is more than just another SDK for creating MCP servers. Rather, it marks a significant contribution of the PHP community to the AI ecosystem, boosting PHP\u2019s role as a language for creating AI tools.\u00a0<\/p>\n\n\n\n<p>The MCP PHP SDK maintainers encourage PHP developers to submit their MCP integrations for PHP frameworks and tools \u2013 Laravel, Symfony, WordPress, custom APIs, and more \u2013 to be listed in the <a href=\"https:\/\/github.com\/modelcontextprotocol\/php-sdk\" target=\"_blank\" rel=\"noopener\">SDK&#8217;s GitHub repo<\/a>.<\/p>\n","protected":false},"author":1413,"featured_media":597269,"comment_status":"closed","ping_status":"closed","template":"","categories":[2347],"tags":[8759,8785],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/phpstorm\/596457"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/phpstorm"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/types\/phpstorm"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/users\/1413"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/comments?post=596457"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/phpstorm\/596457\/revisions"}],"predecessor-version":[{"id":598743,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/phpstorm\/596457\/revisions\/598743"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/media\/597269"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/media?parent=596457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/categories?post=596457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/tags?post=596457"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/fr\/wp-json\/wp\/v2\/cross-post-tag?post=596457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}