Skip to content
LangChain

Narwhal for LangChain

com.narwhalapi/mcp

One API and MCP server for financial and economic data: markets, economics, companies and more.

client:LangChain transport:streamable-http

Install Narwhal in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp": {
            "transport": "streamable_http",
            "url": "https://api.narwhalapi.com/mcp",
        }
})

tools = await client.get_tools()

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

Narwhal in other clients