Skip to content
LangChain

Primary Source Commodities for LangChain

io.github.sawftware-apps/commodities-sh

Primary-source commodities data for AI agents — EIA, FRED, CFTC, USDA, USGS via x402 on Base.

client:LangChain transport:streamable-http tools:11

Install Primary Source Commodities in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "commodities-sh": {
            "transport": "streamable_http",
            "url": "https://api.commodities.sh/api/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

Primary Source Commodities in other clients