{"id":15460,"date":"2026-08-04T08:15:11","date_gmt":"2026-08-04T08:15:11","guid":{"rendered":"https:\/\/www.vpsforextrader.com\/?post_type=how-to&#038;p=15460"},"modified":"2026-08-04T08:15:11","modified_gmt":"2026-08-04T08:15:11","slug":"26-how-to-disable-the-mcp-server-in-mt5-fix-bind-error","status":"publish","type":"how-to","link":"https:\/\/www.vpsforextrader.com\/de\/how-to\/26-how-to-disable-the-mcp-server-in-mt5-fix-bind-error\/","title":{"rendered":"26. How to Disable the MCP Server in MT5? (Fix Bind Error)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you&#8217;ve opened MetaTrader 5 and seen a <strong>bind error on 127.0.0.1:22346<\/strong>, it&#8217;s almost always caused by MT5&#8217;s built-in <strong>MCP (Model Context Protocol) server<\/strong>, a feature added as part of MT5&#8217;s AI integration that lets external AI agents connect to your terminal. When multiple MT5 terminals try to run this server at the same time, they compete for the same local port and throw a bind error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Causes the 127.0.0.1:22346 Bind Error?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MT5&#8217;s internal MCP server listens locally at:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">http:\/\/127.0.0.1:22346\/mcp<\/mark><\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you run more than one MT5 terminal on the same VPS, each terminal tries to bind to this same port. Only one can succeed, and the others log a bind error referencing <em>127.0.0.1:22346<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The fix is to disable the MCP server in every terminal that doesn&#8217;t specifically need AI agent access.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Disable the Internal MCP Server in MT5?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Follow these steps in each MT5 terminal where AI access isn&#8217;t required:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open<strong> Tools \u2192 Options<\/strong> in the MT5 terminal menu.<\/li>\n\n\n\n<li><strong>Select the MCP tab.<\/strong><\/li>\n\n\n\n<li>Untick<strong> &#8222;Enable internal server.&#8220;<\/strong> This is the exact option name shown on MT5&#8217;s official settings screen.<\/li>\n\n\n\n<li>Click<strong> OK<\/strong> to save the change.<\/li>\n\n\n\n<li><strong>Restart the MT5 terminal<\/strong> for the change to take effect.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"740\" src=\"https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/1.32129-1024x740.png\" alt=\"\" class=\"wp-image-15462\" style=\"width:716px;height:auto\" srcset=\"https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/1.32129-1024x740.png 1024w, https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/1.32129-300x217.png 300w, https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/1.32129-768x555.png 768w, https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/1.32129.png 1160w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"833\" src=\"https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/Server-Charts-Trade-Experts-CPU-Events-Notficasons-Emal-Al-Assistant-MOPCommunty-1024x833.png\" alt=\"\" class=\"wp-image-15463\" style=\"aspect-ratio:1.2293057715174243;width:716px;height:auto\" srcset=\"https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/Server-Charts-Trade-Experts-CPU-Events-Notficasons-Emal-Al-Assistant-MOPCommunty-1024x833.png 1024w, https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/Server-Charts-Trade-Experts-CPU-Events-Notficasons-Emal-Al-Assistant-MOPCommunty-300x244.png 300w, https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/Server-Charts-Trade-Experts-CPU-Events-Notficasons-Emal-Al-Assistant-MOPCommunty-768x625.png 768w, https:\/\/www.vpsforextrader.com\/wp-content\/uploads\/2026\/08\/Server-Charts-Trade-Experts-CPU-Events-Notficasons-Emal-Al-Assistant-MOPCommunty.png 1490w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once restarted, that terminal will no longer attempt to open a listener on port 22346, which resolves the bind conflict.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Will Disabling MCP Affect Trading or Expert Advisors?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">No. Disabling the internal MCP server does not affect normal trading or usage of Expert Advisors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It only disables MT5&#8217;s MCP interface &#8211; channel used by AI agents to interact with the terminal. Everything related to order execution, EA logic, and trade copying continues to work exactly as before.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong><em>127.0.0.1:22346 bind error<\/em><\/strong> is a simple port conflict, it happens when MT5&#8217;s internal MCP server tries to claim a port that&#8217;s already in use. Disabling &#8222;Enable internal server&#8220; on MT5 terminal clears the error with zero impact on trading. The setting only controls AI agent access to the terminal, so turning it off is safe for any MT5 instance that doesn&#8217;t need that connection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve opened MetaTrader 5 and seen a bind error on 127.0.0.1:22346, it&#8217;s almost always caused by MT5&#8217;s built-in MCP (Model Context Protocol) server, a feature added as part of MT5&#8217;s AI integration that lets external AI agents connect to your terminal. When multiple MT5 terminals try to run this server at the same time, [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":15461,"template":"","meta":{"_acf_changed":false},"class_list":["post-15460","how-to","type-how-to","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vpsforextrader.com\/de\/wp-json\/wp\/v2\/how-to\/15460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpsforextrader.com\/de\/wp-json\/wp\/v2\/how-to"}],"about":[{"href":"https:\/\/www.vpsforextrader.com\/de\/wp-json\/wp\/v2\/types\/how-to"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpsforextrader.com\/de\/wp-json\/wp\/v2\/users\/9"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vpsforextrader.com\/de\/wp-json\/wp\/v2\/media\/15461"}],"wp:attachment":[{"href":"https:\/\/www.vpsforextrader.com\/de\/wp-json\/wp\/v2\/media?parent=15460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}