---
title: "Capabilities - MCP and AI - MetaTrader 5のヘルプ"
description: "There are three MCP servers that provide tools: terminal MCP server — provides MetaTrader 5 Terminal's tools for placing and... - Capabilities - MCP and AI - MetaTrader 5のヘルプ"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/ja/terminal/help/mcp_and_ai/capabilities"
---

[MetaTrader 5のヘルプ](https://www.metatrader5.com/ja/terminal/help) → [MCP and AI](https://www.metatrader5.com/ja/terminal/help/mcp_and_ai) → Capabilities

# Tools and Operations Supported by MCP Servers

There are three MCP servers that provide tools:

- terminal MCP server — provides MetaTrader 5 Terminal's tools for placing and managing orders, getting account data, controlling UI elements, and more.
- marketdata MCP server — provides [MetaTrader.com's](https://www.metatrader.com/) market data, news, economic calendars, events, and related information.
- metaeditor MCP server — provides MetaEditor's tools for algorithm development and complex file operations.

The capabilities exposed by MetaTrader 5 MCP servers are constantly increasing. Therefore, the most effective way to find out the available tools is by asking the agent.

## Getting the List of MCP Tools [#](#getting_mcp_tools_list)

- If you are using the built-in AI Assistant, send this prompt:

Provide a table of all the tools you can access.

- If you are using a third-party agent or app (e.g. Claude Code or Codex), ensure the MetaTrader app is running, then send this prompt:

Using MetaTrader MCP servers, provide a table of all the tools you can access.

> The list of tools may include MetaEditor functionality if the MetaEditor app is running. The contents may also vary depending on your [configuration](https://www.metatrader5.com/ja/terminal/help/mcp_and_ai/configuration) for trading, web access, and shell operations.

## List of MCP Tools [#](#full_mcp_tools_list)

The following tools are available:

| Category | Tool | Purpose |
| --- | --- | --- |
| Market data (terminal server) | ```<br>marketdata_symbol_search<br>``` | Search instruments by ticker, company name, or description |
| ```<br>marketdata_symbol_get<br>``` | Get symbol profile: quotes, market metadata, company info |  |
| ```<br>marketdata_symbol_history<br>``` | Get OHLCV bars (1h, 4h, 1d, 1w, 1mo) over a time range |  |
| ```<br>marketdata_symbol_income_statement<br>``` | Get a symbol's annual or quarterly income statement (revenue, EPS, net income…) |  |
| ```<br>marketdata_symbol_news<br>``` | Get the latest news headlines for a symbol, filtered by provider/window |  |
| ```<br>marketdata_symbol_holdings<br>``` | Get the holdings saved in project data for a symbol |  |
| Trading (terminal server) | ```<br>trade_send_market_order<br>``` | Place a buy/sell market order (optional stop loss and take profit) |
| ```<br>trade_send_pending_order<br>``` | Place a pending order (buy/sell limit/stop/stop-limit, expiry) |  |
| ```<br>trade_modify_sl_tp<br>``` | Modify stop loss or take profit on a position or pending order |  |
| ```<br>trade_close_single_position<br>``` | Close one position by ticket |  |
| ```<br>trade_close_by_position<br>``` | Close two opposite positions (close-by) |  |
| ```<br>trade_delete_order<br>``` | Delete a pending order |  |
| Symbols and Market Watch (terminal server) | ```<br>get_marketwatch_symbols<br>``` | List symbols in Market Watch with trading conditions |
| ```<br>add_marketwatch_symbol<br>``` | Add a symbol to Market Watch |  |
| ```<br>remove_marketwatch_symbol<br>``` | Remove a symbol from Market Watch |  |
| Quotes and price history (terminal server) | ```<br>get_chart_history<br>``` | Get historical candles (OHLCV) for a symbol/period/date range |
| ```<br>get_chart_ticks_history<br>``` | Get historical tick data (bid/ask/volume) |  |
| Chart management (terminal server) | ```<br>list_open_charts<br>``` | List open charts with attached indicators/EAs |
| ```<br>chart_open<br>``` | Open a chart by symbol and period (M1…MN1) |  |
| ```<br>chart_close<br>``` | Close a chart by ID |  |
| ```<br>chart_apply_template<br>``` | Apply a template (.tpl) to a chart |  |
| ```<br>chart_add_indicator<br>``` | Add an indicator to a chart |  |
| ```<br>chart_remove_indicator<br>``` | Remove an indicator from a chart |  |
| ```<br>chart_get_indicator_state<br>``` | Returns the configuration and current runtime state of an indicator attached to a chart, including its inputs and visible buffer values ordered from oldest to newest (last element is the newest value and represents the last visible chart bar). For shifted plots, the last element may correspond to a future display position rather than the last market bar. Identify the indicator by the exact case-sensitive short_name and zero-based subwindow number from list_open_charts. |  |
| ```<br>list_available_indicators<br>``` | List built-in and custom indicators |  |
| ```<br>get_indicator_parameters<br>``` | Get all the settings of an indicator, including current input parameters |  |
| Account/portfolio management (terminal server) | ```<br>get_trading_account_info<br>``` | Get account balance, equity, margin, leverage, type |
| ```<br>get_trading_open_positions<br>``` | Get current open positions and pending orders |  |
| ```<br>get_trading_history_orders<br>``` | Get historical orders and deals (prices, volumes, profit, commissions) |  |
| ```<br>get_trading_history_positions<br>``` | Get historical positions reconstructed from deals |  |
| Expert Advisors and Scripts (terminal server) | ```<br>list_available_expert_advisors<br>``` | List built-in and custom EAs (all/expert/script/service) |
| ```<br>get_expert_advisor_parameters<br>``` | Get all the settings of an Expert Advisor, including current input parameters |  |
| ```<br>get_script_parameters<br>``` | Get all the settings of a script, including current input parameters |  |
| ```<br>chart_add_expert<br>``` | Add an Expert Advisor to a chart |  |
| ```<br>chart_remove_expert<br>``` | Remove an Expert Advisor from a chart |  |
| ```<br>chart_add_script<br>``` | Add a script to a chart |  |
| Strategy testing (terminal server) | ```<br>tester_run_backtest<br>``` | Start a backtest with a tester .ini configuration file (and optional .set inputs) |
| ```<br>tester_run_optimization<br>``` | Start an optimization using a prepared configuration and, optionally, a .set file containing optimization ranges. |  |
| ```<br>tester_get_status<br>``` | Get progress/status of a running tester job |  |
| ```<br>tester_prepare_config<br>``` | Create or update the Strategy Tester .ini configuration file. It defines:<br><br>- Expert Advisor/program path<br>- Symbol and timeframe<br>- Start and end dates<br>- Tick model: every tick, real ticks, M1 OHLC, open prices, or mathematical calculations<br>- Deposit, currency, leverage, and execution delay<br>- Backtest or optimization mode<br>- Genetic optimization<br>- Optimization criterion<br>- Forward-testing mode and date<br>- Profit-in-pips mode |  |
| ```<br>tester_prepare_inputs<br>``` | Create or update the EA’s .set input-parameter file. Parameters use native MT5 SET syntax:<br><br>- Fixed value: Lots=0.1<br>- Optimization range: Lots=0.1\|\|0.01\|\|0.01\|\|1.0\|\|Y<br>- Disabled optimization: Lots=0.1\|\|0.01\|\|0.01\|\|1.0\|\|N |  |
| ```<br>tester_get_configuration<br>``` | Return the Strategy Tester configuration associated with a specific test or optimization run |  |
| ```<br>tester_wait<br>``` | Wait for a tester job to finish |  |
| ```<br>tester_stop<br>``` | Stop an active backtest or optimization |  |
| ```<br>tester_get_report<br>``` | Retrieve or saves the report for a completed run |  |
| Journals (terminal server) | ```<br>get_terminal_journal<br>``` | Get information from the [platform journal](https://www.metatrader5.com/ja/terminal/help/start_advanced/journal) |
| ```<br>get_expert_journal<br>``` | Get information from the [experts journal](https://www.metatrader5.com/ja/terminal/help/start_advanced/journal) |  |
| ```<br>get_tester_journal<br>``` | Get information from the [strategy tester journal](https://www.metatrader5.com/ja/terminal/help/algotrading/tester_journal) |  |
| General tools | ```<br>shell<br>``` | Execute a shell command in the current directory |
| ```<br>tree<br>``` | List a directory tree with line counts |  |
| ```<br>write<br>``` | Create or overwrite a file (creates parent directories) |  |
| ```<br>edit<br>``` | Edit a file by find-and-replace |  |
| ```<br>read_image<br>``` | Read or load an image from a local path or URL for inspection |  |
| Environment and workspace (terminal server, metaeditor server) | ```<br>get_workspace_info<br>``` | Get workspace metadata, paths, compiler information, and permissions |
| ```<br>get_time_information<br>``` | Get UTC/local/server time, DST status, time offset |  |
| MQL5 development (metaeditor server) | ```<br>create_new_file<br>``` | Create a new workspace file with content & overwrite control |
| ```<br>create_new_folder<br>``` | Create a new workspace folder |  |
| ```<br>delete_file<br>``` | Delete a workspace file |  |
| ```<br>write_file<br>``` | Replace full file content |  |
| ```<br>write_binary_file<br>``` | Write binary data (hex input) |  |
| ```<br>replace_text_in_file<br>``` | Replace literal text while preserving the rest |  |
| ```<br>build_project<br>``` | Run full project build pipeline (status, diagnostics, outputs) |  |
| ```<br>compile_file<br>``` | Compile a single MQL5 source file (with defines/includes/targets) |  |
| ```<br>syntax_check<br>``` | Syntax-only validation without producing artifacts |  |
| ```<br>format_source_code<br>``` | Auto-format MQL5 source according to MetaQuotes style rules |  |
| ```<br>find_files_by_glob<br>``` | Find files and directories matching a glob pattern |  |
| ```<br>find_files_by_name_keyword<br>``` | Find files by filename fragment |  |
| ```<br>list_directory<br>``` | List files and directories with traversal depth |  |
| ```<br>search_text<br>``` | Run literal text search across workspace files |  |
| ```<br>search_regex<br>``` | Run a PCRE2 regular-expression search across workspace files |  |
| ```<br>send_web_request<br>``` | Send outbound HTTP/HTTPS requests (GET/POST/etc.), bodies, and file output |  |
| ```<br>read_file<br>``` | Read text or bytes from a file with automatic encoding detection |  |
| ```<br>read_file_by_lines<br>``` | Read selected line ranges from a file |  |
| ```<br>read_binary_file<br>``` | Read raw binary bytes with offsets |  |
| ```<br>open_file_in_editor<br>``` | Open a file in MetaEditor with a caret position |  |
| ```<br>list_open_documents<br>``` | List open editor documents with modification and Git status |  |

## In this section

- [Configuration](https://www.metatrader5.com/ja/terminal/help/mcp_and_ai/configuration)
- Capabilities
- [Examples](https://www.metatrader5.com/ja/terminal/help/mcp_and_ai/practical_examples)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/ja/terminal/help", "name": "MetaTrader 5のヘルプ"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/ja/terminal/help/mcp_and_ai", "name": "MCP and AI"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/ja/terminal/help/mcp_and_ai/capabilities", "name": "Capabilities"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Capabilities", "acceptedAnswer": { "@type": "Answer", "text": "There are three MCP servers that provide tools: terminal MCP server — provides MetaTrader 5 Terminal&#39;s tools for placing and managing orders..." } }] }
```
