matplotlibnet for LangChain
io.github.xkqg/matplotlibnet
Renders MatPlotLibNet charts to PNG, SVG or PDF from a JSON spec an AI agent writes.
client:LangChain
transport:stdio
runtime:nuget
Install matplotlibnet in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"matplotlibnet": {
"transport": "stdio",
"command": "dnx",
"args": ["MatPlotLibNet.Mcp", "--yes"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs