fxapis — MetaTrader 5 for LangChain
com.fxapis/mt5
Let AI agents read and trade MetaTrader 5 accounts. Sign in with OAuth; read-only unless you allow.
client:LangChain
transport:streamable-http
tools:29
Install fxapis — MetaTrader 5 in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mt5": {
"transport": "streamable_http",
"url": "https://api.fxapis.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- get_workspace
- get_usage
- list_accounts
- get_account
- get_account_status
- get_account_figures
- bring_accounts_online
- take_account_offline
- list_positions
- list_instruments
- search_broker_servers
- list_account_instruments
- get_market_hours
- get_quotes
- list_orders
- get_order
- list_deals
- calculate
- place_market_order
- place_pending_order
- close_position
- modify_position
- cancel_order
- list_multi_account_orders