Skip to content
LangChain

Mastodon for LangChain

io.github.pipeworx-io/mastodon

Mastodon MCP — public Mastodon data via mastodon.social (no auth required)

client:LangChain transport:streamable-http

Install Mastodon in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mastodon": {
            "transport": "streamable_http",
            "url": "https://gateway.pipeworx.io/mastodon/mcp",
        }
})

tools = await client.get_tools()

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

Mastodon in other clients