Skip to content
LangChain

CNN Fear & Greed Index for LangChain

io.github.wildsurfer/cnnfag

CNN's Fear & Greed index for the US stock market: score, rating, indicators and daily history.

client:LangChain transport:stdio runtime:oci

Install CNN Fear & Greed Index in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "cnnfag": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "ghcr.io/wildsurfer/cnnfag:2.2.0"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

CNN Fear & Greed Index in other clients