MTContext for LangChain
io.github.mtcontext/mtcontext
Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.
client:LangChain
transport:streamable-http
Install MTContext in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mtcontext": {
"transport": "streamable_http",
"url": "https://mcp.mtcontext.com/mcp/v1",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs