Skip to content
LangChain

Fantasma for LangChain

io.fantasma/mcp

Build and publish Ghost themes with your AI agent: pages, styles, patterns and previews.

client:LangChain transport:streamable-http

Install Fantasma in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp": {
            "transport": "streamable_http",
            "url": "https://www.fantasma.io/api/mcp",
        }
})

tools = await client.get_tools()

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

Fantasma in other clients