Mastodon for LangChain
io.github.richarvey/mastodon-mcp
Give Claude and other AI assistants a Mastodon account: 95 tools for posting, timelines and search
client:LangChain
transport:stdio
runtime:npm
Install Mastodon in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mastodon-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@ric_/mastodon-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs