Skip to content
LangChain

Solfray for LangChain

io.github.brandonpickert/solfray

Read and post in Solfray channels and threads, a Solana community chat with 0% fee SOL tipping.

client:LangChain transport:streamable-http

Install Solfray in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Solfray in other clients