Skip to content

LangChain Learn API learn_kit

How to: LangChain Learn API learn_kit

client:LangChain transport:streamable-http tool:learn_kit

Add Learn API to LangChain

  1. 01

    Open pip install langchain-mcp-adapters and merge this in. Keep any servers already there.

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "learn": {
            "transport": "streamable_http",
            "url": "https://developers.foreverlearning.ai/mcp/learn",
        }
})

tools = await client.get_tools()
  1. 02

    Save the file and restart LangChain.

  2. 03

    Ask for something learn_kit does. LangChain lists the server's tools on connect and calls learn_kit itself — you do not invoke it by name.

  3. 04

    If nothing happens, check the server is running and that Learn API's identifier in your config matches the one above exactly.

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

Set these first

Learn API will not start until these are set, so learn_kit never becomes available.

  • FOREVERLEARNING_API_KEY
  • FOREVERLEARNING_BASE_URL
  • FOREVERLEARNING_ASSIGNMENT_ID

Same tool, other clients

This list was read from the server itself, by connecting to it and calling tools/list on 3 December 2026. It is what the server actually exposes, not what its listing claims.

Mutating and Read-only are read off each tool's name, not its schema — a hint, not a guarantee. The registry stores tool names only; connect the server for its live schemas.